/* =========================================================
   SEVEN ARENA — main.css
   Variables, reset, typography, layout, section structure
   ========================================================= */

:root {
  /* Surfaces */
  --bg:        #0A1929;
  --bg-2:      #0F2740;
  --bg-3:      #13304D;
  --bg-card:   rgba(255,255,255,.025);
  --bg-card-hover: rgba(255,255,255,.045);

  /* Lines / dividers */
  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --line-mint:   rgba(78,217,176,.32);

  /* Brand */
  --mint:       #4ED9B0;
  --mint-2:     #2DBD92;
  --mint-soft:  #88E8C8;
  --mint-glow:  rgba(78,217,176,.35);
  --mint-glow-2: rgba(78,217,176,.18);
  --navy:       #1F3A5F;
  --gold:       #F0C674;

  /* Text */
  --text:        #E2E8F0;
  --text-strong: #F5F8FB;
  --text-muted:  #94A3B8;
  --text-dim:    #64748B;

  /* States */
  --danger:  #F87171;
  --warn:    #FBBF24;
  --ok:      #4ED9B0;

  /* Type */
  --font-display: 'Anton', 'Arial Narrow Bold', sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadow */
  --sh-card:  0 12px 40px -16px rgba(0,0,0,.55);
  --sh-lift:  0 28px 80px -24px rgba(0,0,0,.7);
  --sh-mint:  0 20px 60px -16px var(--mint-glow);

  /* Motion */
  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-base: 320ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);

  /* Section padding */
  --pad-section: clamp(80px, 10vw, 140px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }

::selection { background: var(--mint); color: var(--bg); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =========================================================
   Background decorations (fixed, behind everything)
   ========================================================= */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: .45;
}
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
}
.bg-glow--top {
  top: -200px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--mint-glow-2), transparent 70%);
}
.bg-glow--mid {
  top: 40%;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(31,58,95,.35), transparent 70%);
}
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,.012) 3px,
    rgba(255,255,255,.012) 4px
  );
}

/* Bring real content above decorations */
header.nav, main, footer { position: relative; z-index: 2; }

/* =========================================================
   Section base
   ========================================================= */
section {
  padding: var(--pad-section) 0;
  position: relative;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mint);
  text-transform: uppercase;
  margin: 0 0 24px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;          /* Anton is single weight */
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-transform: uppercase;
  margin: 0 0 28px 0;
  max-width: 22ch;
}
.section__title .accent {
  color: var(--mint);
  display: block;
}
.section__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 64px 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 24px 0 32px;
}
.hero__title-line {
  display: block;
  white-space: nowrap;
}
.hero__title .accent {
  color: var(--mint);
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 36px;
}
.hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-bottom: 44px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero__stats::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 60px; height: 1px;
  background: var(--mint);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual */
.hero__visual {
  position: relative;
  height: 600px;
  perspective: 1400px;
}

/* Hero product imagery — floating shots */
.hero-shot {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
  height: auto;
  will-change: transform;
}

/* Back layer — dashboard (browser frame) */
.hero-shot--dash {
  top: 6%;
  left: -6%;
  width: 102%;
  max-width: 720px;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,.5)) drop-shadow(0 0 50px rgba(78,217,176,.08));
  animation: float-dash 7.5s ease-in-out infinite;
  z-index: 1;
}

/* Front layer — phone with QR card (CENTER, overlapping dashboard) */
.hero-shot--phone {
  bottom: -12%;
  left: 28%;
  width: 40%;
  max-width: 290px;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.7)) drop-shadow(0 0 60px rgba(78,217,176,.16));
  animation: float-phone 5.5s ease-in-out 0.6s infinite;
  z-index: 3;
  transform-origin: bottom center;
}

/* Top right — viajes activos card (RIGHT side) */
.hero-shot--card {
  top: -4%;
  right: -8%;
  width: 38%;
  max-width: 260px;
  filter: drop-shadow(0 20px 36px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(78,217,176,.10));
  animation: float-card 6.5s ease-in-out 1.2s infinite;
  z-index: 2;
}

@keyframes float-dash {
  0%, 100% { transform: translateY(0)    rotate(0); }
  50%      { transform: translateY(-10px) rotate(0); }
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0)    translateX(0); }
  50%      { transform: translateY(-16px) translateX(2px); }
}
@keyframes float-card {
  0%, 100% { transform: translateY(0)   translateX(0); }
  50%      { transform: translateY(-12px) translateX(-4px); }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual {
    height: clamp(320px, 55vw, 500px);
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-shot--dash  { width: 100%; left: 0; max-width: none; }
  .hero-shot--phone { width: 36%; left: 30%; bottom: -10%; }
  .hero-shot--card  { width: 34%; right: -2%; top: -4%; }
}
@media (max-width: 560px) {
  .hero-shot--phone { width: 30%; left: 32%; }
  .hero-shot--card  { width: 30%; right: 0; }
}

/* =========================================================
   STATS BAR (after hero)
   ========================================================= */
.stats {
  padding: 70px 0 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0%, var(--mint-glow-2), transparent 60%);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

/* =========================================================
   PAIN
   ========================================================= */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
@media (max-width: 880px) {
  .pain__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   MODULES
   ========================================================= */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 16px;
}
@media (max-width: 1100px) { .modules__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .modules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .modules__grid { grid-template-columns: 1fr; } }

/* =========================================================
   BENTO FEATURES
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 22px;
}
.bento__cell--lg { grid-column: span 3; grid-row: span 2; }
.bento__cell--gps { grid-column: span 3; }
.bento__cell--portals { grid-column: span 3; }
.bento__cell--ai { grid-column: span 2; }
.bento__cell--csv { grid-column: span 4; }
.bento__cell--dash { grid-column: span 6; grid-row: span 2; }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento__cell--lg, .bento__cell--dash { grid-column: span 4; }
  .bento__cell--gps, .bento__cell--portals { grid-column: span 2; }
  .bento__cell--ai { grid-column: span 2; }
  .bento__cell--csv { grid-column: span 4; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__cell, .bento__cell--lg, .bento__cell--dash,
  .bento__cell--gps, .bento__cell--portals,
  .bento__cell--ai, .bento__cell--csv { grid-column: span 1; grid-row: auto; min-height: 260px; }
}

/* =========================================================
   HOW
   ========================================================= */
.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
@media (max-width: 900px) { .how__steps { grid-template-columns: 1fr; } }

/* =========================================================
   PORTALS
   ========================================================= */
.portals__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 16px;
}
@media (max-width: 1100px) { .portals__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .portals__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .portals__grid { grid-template-columns: 1fr; } }

/* =========================================================
   AUDIENCES
   ========================================================= */
.audiences {
  padding: 90px 0;
  background:
    linear-gradient(180deg, transparent, var(--bg-2) 50%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audiences__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

/* =========================================================
   DEMO (form section)
   ========================================================= */
.demo {
  padding-top: var(--pad-section);
  padding-bottom: var(--pad-section);
  background:
    radial-gradient(ellipse at 80% 30%, var(--mint-glow-2), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(31,58,95,.3), transparent 55%);
}
.demo__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .demo__inner { grid-template-columns: 1fr; gap: 48px; }
}
.demo__perks {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}
.demo__perks .check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(78,217,176,.12);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { text-align: center; }
.faq .section__title { margin-left: auto; margin-right: auto; max-width: 22ch; }
.faq__list {
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  text-align: left;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 60px;
}
.footer__brand img { opacity: .9; }
.footer__tag {
  margin-top: 18px;
  color: var(--text-muted);
  max-width: 28ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 15px;
}
.footer__col a:hover { color: var(--mint); }
.footer__base {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer__base-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__base small { color: var(--text-dim); }
.footer__site { font-family: var(--font-mono); letter-spacing: .04em; }
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
