:root {
  /* Brand Colors */
  --bg-primary: #050505;
  --bg-secondary: #121212;
  --bg-card: #1A1A1A;

  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;

  /* Action Color (Softer Mint/Teal) */
  --action-primary: #00D084;
  --action-hover: #00B873;
  --action-glow: rgba(0, 208, 132, 0.15);

  /* Borders & UI */
  --border-color: #2A2A2A;
  --border-radius: 12px;

  /* Typography */
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mono-header {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  /* Instrument Serif looks great italicized */
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Fix specific headers to be normal instead of italic if desired */
.hero-title,
.flavor-title,
.section-title {
  font-style: normal;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.center-text {
  text-align: center;
}

.max-w {
  max-width: 600px;
  margin: 0 auto;
}

.mt-4 {
  margin-top: 4rem;
}

.base-bg {
  background-color: var(--bg-primary);
}

.dark-bg {
  background-color: var(--bg-secondary);
}

.section {
  padding: 8rem 0;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.section-badge.highlight {
  border-color: var(--action-primary);
  color: var(--action-primary);
  background: var(--action-glow);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--action-primary);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  /* Pill shape */
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--action-hover);
  box-shadow: 0 0 15px var(--action-glow);
}

.btn-ghost {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 99px;
  /* Pill shape */
  border: 1px solid var(--border-color);
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-blue {
  background-color: #2F80ED;
  /* Softer, slightly muted blue */
  color: #fff;
}

.btn-blue:hover {
  background-color: #2668C2;
  box-shadow: 0 0 15px rgba(47, 128, 237, 0.3);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-nav {
  padding: 0.6rem 1.2rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-nav:hover {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.ml-4 {
  margin-left: 1rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Fullscreen */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-fullscreen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 5%;
  margin-top: 5rem;
}

/* Hero */
.hero {
  padding: 12rem 5% 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 5.5rem;
  /* Adjusted slightly for Spanish translation length */
  line-height: 1.05;
  /* Tighter line-height for large text */
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-primary);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 3rem;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-cta {
  margin-bottom: 4rem;
}

.hero-visual {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rounded-image {
  border-radius: var(--border-radius);
}

.glass-effect {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Feature Split */
.feature-split {
  display: flex;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ft-block {
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
  opacity: 0.5;
  transition: all 0.3s;
}

.ft-block.active,
.ft-block:hover {
  opacity: 1;
  border-left-color: var(--action-primary);
}

.ft-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.ft-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-visual {
  flex: 1.2;
}

.feature-image {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--action-primary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
}

/* AI Intro Section (Part 1) */
.ai-intro-section {
  padding: 12rem 0;
  background-color: #000;
  /* Pure black for maximum contrast like Square */
}

.ai-intro-container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
}

.ai-intro-text {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
}

.ai-pulse-icon {
  width: 80px;
  height: 80px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.ai-pulse-icon:hover {
  border-color: var(--action-primary);
  color: var(--action-primary);
  box-shadow: 0 0 40px var(--action-glow);
}

/* AI Showcase Section (Part 2) */
.ai-showcase-section {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ai-showcase-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.ai-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-showcase-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.ai-text-block {
  max-width: 400px;
  margin-left: 5%;
  /* Align to left side */
  background: rgba(0, 0, 0, 0.4);
  /* Subtle readability backing just in case */
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-showcase-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  font-style: normal;
  margin-bottom: 1rem;
}

.ai-showcase-sub {
  font-size: 1.1rem;
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.ai-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.ai-link:hover {
  color: var(--action-primary);
  border-bottom-color: var(--action-primary);
}

.ai-link span {
  transition: transform 0.2s ease;
}

.ai-link:hover span {
  transform: translateX(4px);
}

/* CTA */
.cta {
  padding: 8rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0;
  background: var(--bg-card);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-links .col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h5 {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--action-primary);
}

/* Flavor Scatter Layout (Ride the wave) */
.overflow-hidden {
  overflow: hidden;
}

.py-10 {
  padding: 12rem 0;
  /* Extra padding for floating images */
}

.flavor-scatter-container {
  width: 100vw;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  height: 800px;
  /* Fixed height to allow absolute positioning of children */
  display: flex;
  align-items: center;
  justify-content: center;
}

.flavor-center {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  background: radial-gradient(circle, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0) 70%);
  /* Subtle dark glow behind text for readability */
  padding: 4rem;
}

.flavor-title {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.scatter-item {
  position: absolute;
  z-index: 5;
}

.scatter-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  filter: grayscale(20%) brightness(0.8);
  /* Slightly muted to make text pop */
}

.scatter-item:hover {
  z-index: 20;
}

.scatter-item:hover .scatter-img {
  transform: scale(1.1) translateY(-10px);
  box-shadow: 0 20px 60px var(--action-glow);
  border-color: var(--action-primary);
  filter: grayscale(0%) brightness(1.1);
}

/* Interactive Features Section */
.interactive-features-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.features-split-container {
  display: flex;
  min-height: 700px;
  max-width: 1400px;
  margin: 0 auto;
}

.features-left {
  flex: 1;
  padding: 4rem 5% 4rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.features-right {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-card);
  border-radius: 40px 0 0 40px;
  /* Curve the inner edge */
}

.feature-showcase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.feature-showcase.active {
  opacity: 1;
  visibility: visible;
}

.feature-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Accordion Styling */
.feature-accordion {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  cursor: pointer;
}

.accordion-item:first-child {
  border-top: 1px solid var(--border-color);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h4 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  transition: color 0.3s ease;
  margin: 0;
}

.accordion-icon {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease, margin-top 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.accordion-item.active .accordion-header h4 {
  color: var(--action-primary);
}

.accordion-item.active .accordion-icon {
  color: var(--action-primary);
}

.accordion-item.active .accordion-body {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.accordion-body p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 90%;
}

/* Scroll Animations */
.fade-up-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-fullscreen {
    height: auto;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-fullscreen-img {
    animation: none;
  }

  .feature-split {
    flex-direction: column;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .brain-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: flex;
    gap: 0.5rem;
  }

  .nav-actions .btn-ghost {
    display: none;
    /* Hide login text to save space */
  }

  .footer-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .scatter-item {
    position: static;
    margin-bottom: 2rem;
  }

  .scatter-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
  }

  .flavor-title {
    font-size: 2.5rem;
  }

  .flavor-scatter-container {
    height: auto;
    flex-direction: column;
    padding: 0 5%;
  }

  /* Interactive Features Responsive */
  .features-split-container {
    flex-direction: column;
  }

  .features-left {
    padding: 2rem 5%;
  }

  .features-right {
    min-height: 400px;
    border-radius: 0;
    margin-top: 2rem;
  }

  /* AI Sections Responsive */
  .ai-intro-section {
    padding: 6rem 0;
  }

  .ai-intro-text {
    font-size: 2rem;
  }

  .ai-pulse-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .ai-showcase-section {
    height: auto;
    min-height: 600px;
  }

  .ai-showcase-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 3rem 5%;
  }

  .ai-text-block {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    padding: 2rem;
  }

  .ai-showcase-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Tablet / Smaller Desktop Responsive */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 4rem;
  }
}