/* 
  Nexus Infinity - Landing Page Styles
  Focus: Visual Hierarchy, Spacing, and Premium UI
*/

:root {
  /* Palette */
  --color-bg-base: #E6E6FA;
  --color-bg-alt: #f1f5f9;

  --color-primary: #6366f1; /* Electric Indigo */
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;

  --color-text: #0f172a; /* Deep Slate - Headings */
  --color-text-body: #475569; /* Body optimized for reading */
  --color-text-muted: #64748b;

  --color-surface: #ffffff;
  --color-border: #e2e8f0;

  /* Typography */
  --font-base: "Inter", system-ui, -apple-system, sans-serif;
  --tracking-tight: -0.05em;
  --tracking-normal: -0.01em;
  --leading-tight: 1.1;
  --leading-relaxed: 1.7;

  /* Spacing System */
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radii */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows - Layered for Depth */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-md:
    0 10px 15px -3px rgba(15, 23, 42, 0.08),
    0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-body);
  line-height: var(--leading-relaxed);
  background-color: var(--color-bg-base);
  /* Background Mesh */
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-4);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 800px;
}

.section-padding {
  padding: var(--space-16) 0;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-highlight {
  color: var(--color-primary);
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 99px; /* Pill shape for modern feel */
  padding: 0 var(--space-8);
  height: 56px; /* Larger hit area */
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
  letter-spacing: var(--tracking-normal);
}

.btn--primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  background: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: white;
}

.btn--text {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  height: auto;
  font-weight: 600;
}

.btn--text:hover {
  text-decoration: underline;
}

.btn--block-mobile {
  width: 100%;
}

@media (min-width: 768px) {
  .btn--block-mobile {
    width: auto;
  }
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Header */
.header {
  position: fixed; /* Fixed for constant access */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-4) 0;
  transition: all 0.3s;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.04em;
}

.header__nav {
  display: none;
  gap: var(--space-8);
}

.header__link {
  font-weight: 500;
  color: var(--color-text-body);
  font-size: 0.95rem;
}

.header__link:hover {
  color: var(--color-primary);
}

.header__cta {
  display: none;
  height: 44px;
  padding: 0 var(--space-6);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .header__nav,
  .header__cta {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding-top: calc(80px + var(--space-12)); /* Account for fixed header */
  padding-bottom: var(--space-16);
  position: relative;
}

.hero__container {
  display: grid;
  gap: var(--space-12);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--color-text);
}

.hero__headline span.text-highlight {
  color: var(--color-primary);
  position: relative;
  white-space: nowrap;
}

/* Underline effect for 'Floripa' */
.hero__headline span.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(99, 102, 241, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.hero__subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-body);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.hero__trust {
  margin-top: var(--space-6);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  perspective: 1500px;
}

.hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease-out;
  border: 4px solid white;
}

.hero__img:hover {
  transform: rotateY(0) rotateX(0);
}

@media (min-width: 900px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* Social Proof */
.social-proof {
  padding: var(--space-8) 0;
  background: white;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.social-proof__label {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Social Proof Slider */
.logo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Mask for fading edges */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  gap: 80px; /* Increased Gap */
  width: max-content;
  animation: scroll 25s linear infinite; /* Faster animation */
}

.logo-item img {
  height: 60px; /* Premium Size Desktop */
  width: auto;
  /* Original Colors - No Filters */
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
  display: block;
}

/* Mobile Size */
@media (max-width: 768px) {
  .logo-item img {
    height: 45px;
    gap: 40px;
  }
}

.logo-item:hover img {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Halfway point */
}

/* Pause on Hover (CSS Fallback) */
.logo-track:hover {
  animation-play-state: paused;
}

/* Features: Bento Grid */
.features {
  background-color: var(--color-bg-base);
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bento-grid {
  display: grid;
  gap: var(--space-6);
}

/* Global Radius Update */
:root {
  --radius-lg: 32px;
  --radius-md: 16px; 
}

/* Bento Card Refinement */
.bento-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.bento-card--large {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.bento-card__icon img {
  width: 64px;
  height: auto;
  margin-bottom: var(--space-6);
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.2));
}

.bento-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.bento-card__desc {
  font-size: 1rem;
  color: var(--color-text-body);
  flex-grow: 1;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 Column Grid */
    gap: var(--space-6);
  }

  /* Feature 1: Span Full Width (Top) */
  .bento-card:nth-child(1) {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
  }
  
  .bento-card:nth-child(1) .bento-card__icon img {
    width: 140px;
    margin-bottom: 0;
  }
  
  /* Feature 2 & 3: Naturally take 1 column each on next row */
  .bento-card:nth-child(2),
  .bento-card:nth-child(3) {
    grid-column: span 1;
  }
}

/* Pricing Grid */
.pricing {
  position: relative;
  overflow: hidden;
}

/* Background gradient blob for pricing */
.pricing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.03) 0%,
    transparent 60%
  );
  z-index: -1;
}

.pricing-toggle {
  background: white;
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-sm);
}

.pricing-toggle__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.badge-save {
  background: #dbeafe; /* Blue tint */
  color: var(--color-primary);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
  margin-left: 4px;
}

.pricing__grid {
  display: grid;
  gap: var(--space-6);
  align-items: stretch;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
  transform: scale(1.02); /* Slight prominence */
}

@media (max-width: 899px) {
  .pricing-card--featured {
    transform: none;
  }
}

.pricing-card__tag {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  margin: var(--space-4) 0;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
}

.pricing-card__price .currency {
  font-size: 1.5rem;
  font-weight: 600;
}
.pricing-card__price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.pricing-card__price .period {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-left: 4px;
}

.pricing-card__features {
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-card__features li {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.95rem;
}

/* Checkmark style */
.pricing-card__features li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 900;
  background: rgba(99, 102, 241, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

@media (min-width: 900px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center; /* Center featured card vertically if scales */
  }
  .pricing-card--featured {
    padding: var(--space-12) var(--space-8); /* Taller */
  }
}

/* FAQ */
.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: white;
}

.accordion__trigger {
  width: 100%;
  text-align: left;
  padding: var(--space-6);
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--color-text);
}

.accordion__trigger:hover {
  background-color: var(--color-bg-base);
}

.accordion__icon {
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.accordion__content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Footer */
/* Footer */
.footer {
  background-color: #0f172a;
  color: white;
  padding-top: var(--space-12);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: white;
}

.footer__text {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.footer__title {
  color: white;
  margin-bottom: var(--space-6);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer__links a {
  color: #94a3b8;
  display: block;
  margin-bottom: var(--space-3);
  transition: all 0.2s;
}

.footer__links a:hover {
  color: white;
  transform: translateX(4px);
}

/* Social Icons */
.footer__socials {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.social-icon:hover {
  background: rgba(99, 102, 241, 0.1); /* Primary tint */
  color: white;
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Footer Bottom */
.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer__bottom-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer__credits {
  font-weight: 500;
}

.dev-link {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.dev-link:hover {
  color: white;
  text-decoration: underline;
}

/* Animation Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* UI Refinements (Feedback) */

/* Hero Text Contrast */
.hero__headline .text-highlight {
  text-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  font-weight: 800; /* Extra weight */
}

/* Image Grain (Anti-AI) */
.hero__img-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 10;
  mix-blend-mode: overlay;
}

/* Sticky Header Scroll State */
.header {
  background: transparent; /* Start transparent */
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.header.header--scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
}

/* Pricing Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-price {
  animation: fadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bento Hover Physics */
.bento-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.bento-card:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

/* Accordion Icon Animation */
.accordion__trigger .accordion__icon {
  transition: transform 0.3s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg); /* Turns + into x approximately, or visual rotation */
}

