/* =====================================================
   AUTOMATEX — Full Responsive Design System
   Breakpoints: 1200 / 900 / 640 / 400
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Fira+Code:wght@400;500&display=swap');

/* ─── Design Tokens ──────────────────────────────── */
:root {
  --bg:        #030307;
  --bg1:       #09090f;
  --bg2:       #0f0f18;
  --bg3:       #15151f;
  --line:      rgba(255,255,255,0.07);
  --line-hi:   rgba(82,255,168,0.32);
  --white:     #f0f0f8;
  --muted:     #6e6e88;
  --dim:       #3a3a52;

  --green:     #52ffa8;
  --green-dim: rgba(82,255,168,0.08);
  --green-glow:0 0 60px rgba(82,255,168,0.18);
  --blue:      #4df0ff;
  --blue-dim:  rgba(77,240,255,0.08);
  --gold:      #ffc84a;
  --gold-dim:  rgba(255,200,74,0.08);
  --red:       #ff5370;
  --red-dim:   rgba(255,83,112,0.08);

  --f-head:    'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;
  --f-mono:    'Fira Code', monospace;

  --r:         6px;
  --r-lg:      12px;
  --nav-h:     60px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  /* Fluid section padding */
  --sp:        clamp(56px, 8vw, 96px);
  --sp-sm:     clamp(36px, 5vw, 64px);
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; }

/* Noise grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* ─── Fluid Typography ───────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }
p  { color: var(--muted); font-weight: 300; }

/* ─── Layout ─────────────────────────────────────── */
.wrap      { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.section   { padding: var(--sp) 0; position: relative; }
.section-sm{ padding: var(--sp-sm) 0; position: relative; }

/* ─── Color Helpers ──────────────────────────────── */
.c-green { color: var(--green); }
.c-blue  { color: var(--blue); }
.c-gold  { color: var(--gold); }
.c-red   { color: var(--red); }
.c-white { color: var(--white); }
.c-muted { color: var(--muted); }
.tc      { text-align: center; }

/* ─── Section Label ──────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.label::before { content: '//'; color: var(--muted); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: clamp(11px, 2vw, 14px) clamp(20px, 3vw, 28px);
  font-family: var(--f-body); font-size: clamp(0.83rem, 1.5vw, 0.92rem); font-weight: 600;
  border-radius: var(--r); cursor: pointer; text-decoration: none;
  border: none; transition: all 0.25s var(--ease);
  white-space: nowrap; min-height: 44px; /* touch-friendly */
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }

.btn-primary  { background: var(--green); color: var(--bg); font-weight: 700; }
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(82,255,168,0.35); }
.btn-outline  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.16); }
.btn-outline:hover  { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-lg  { padding: clamp(13px,2vw,17px) clamp(24px,4vw,36px); font-size: clamp(0.88rem,1.6vw,0.96rem); }
.btn-sm  { padding: 9px 18px; font-size: 0.8rem; min-height: 38px; }
.btn-full{ width: 100%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; font-family: var(--f-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; border-radius: 20px; font-weight: 500; white-space: nowrap;
}
.badge-green { background: var(--green-dim); color: var(--green); border: 1px solid rgba(82,255,168,0.2); }
.badge-blue  { background: var(--blue-dim);  color: var(--blue);  border: 1px solid rgba(77,240,255,0.2); }
.badge-gold  { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(255,200,74,0.2); }
.badge-red   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(255,83,112,0.2); }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px,3vw,32px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-hi); transform: translateY(-4px); box-shadow: var(--green-glow); }
.card:hover::after { opacity: 1; }

/* ─── Navigation ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(3,3,7,0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(3,3,7,0.98); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1160px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}
.nav-logo {
  font-family: var(--f-head); font-size: clamp(1.25rem,3vw,1.5rem);
  font-weight: 800; color: var(--white); text-decoration: none;
  letter-spacing: -0.02em; flex-shrink: 0;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex; gap: clamp(18px, 2.5vw, 32px); list-style: none;
}
.nav-links a {
  font-size: clamp(0.8rem,1.2vw,0.875rem); font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--green);
  transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
  min-width: 44px; min-height: 44px; /* touch target */
  align-items: center; justify-content: center;
}
.nav-ham span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(3,3,7,0.98); backdrop-filter: blur(20px);
  z-index: 199; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none;
}
.nav-mobile.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--f-head); font-size: clamp(1.8rem,5vw,2.4rem);
  font-weight: 700; color: var(--white); text-decoration: none;
  transition: color 0.2s; padding: 6px 0;
}
.nav-mobile a:hover { color: var(--green); }
.nav-mobile .btn { margin-top: 8px; min-width: 200px; }

/* ─── Ticker ─────────────────────────────────────── */
.ticker {
  overflow: hidden; background: var(--bg1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.ticker-inner { display: flex; gap: 56px; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-item  { display: flex; align-items: center; gap: 9px; flex-shrink: 0; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.ticker-item .dot { color: var(--green); font-size: 0.45rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Page Hero ──────────────────────────────────── */
.page-hero {
  padding: clamp(96px,12vw,140px) 0 clamp(48px,6vw,80px);
  border-bottom: 1px solid var(--line);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero-glow {
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: min(600px, 90vw); height: 200px;
  background: radial-gradient(ellipse, rgba(82,255,168,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1    { color: var(--white); margin-bottom: 16px; }
.page-hero .sub  { max-width: min(520px, 90vw); margin: 0 auto; font-size: clamp(0.92rem,1.8vw,1.05rem); }

/* ─── Divider ────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--line); }

/* ─── Orbs ───────────────────────────────────────── */
.orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }

/* ─── Bar ────────────────────────────────────────── */
.bar-wrap { background: var(--bg3); border-radius: 4px; height: 4px; margin-top: 8px; }
.bar-fill { height: 4px; border-radius: 4px; width: 0; transition: width 1.2s var(--ease); }

/* ─── Feature List ───────────────────────────────── */
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(0.82rem,1.4vw,0.88rem); color: var(--muted); }
.feat-list li::before { content: '→'; color: var(--green); flex-shrink: 0; line-height: 1.65; }

/* ─── CTA Banner ─────────────────────────────────── */
.cta-band {
  background: var(--bg1); border: 1px solid var(--line-hi);
  border-radius: var(--r-lg); padding: clamp(36px,6vw,72px) clamp(24px,5vw,56px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: min(500px, 90vw); height: 300px;
  background: radial-gradient(ellipse, rgba(82,255,168,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; position: relative; }
.cta-band p  { max-width: min(460px,90vw); margin: 0 auto 32px; position: relative; font-size: clamp(0.9rem,1.6vw,1rem); }
.cta-btns    { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ─── Grid System ────────────────────────────────── */
/* Fluid 2-col — collapses at 640px */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,3vw,32px); }
/* Fluid 3-col — collapses at 900px */
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.5vw,24px); }
/* Fluid 4-col — collapses at 900px */
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px,2vw,20px); }

/* ─── Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Highlight Box ──────────────────────────────── */
.hl-box {
  background: rgba(82,255,168,0.04); border: 1px solid rgba(82,255,168,0.12);
  border-radius: var(--r-lg); padding: clamp(18px,3vw,28px) clamp(20px,4vw,32px);
  display: flex; align-items: flex-start; gap: 16px; margin-top: 28px;
}
.hl-box p { color: var(--white); font-size: clamp(0.88rem,1.5vw,0.97rem); }

/* ─── Footer ─────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: clamp(48px,6vw,64px) 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(28px,4vw,48px);
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.86rem; max-width: 260px; margin-top: 13px; }
.footer-social   { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--muted); font-size: 0.86rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted);
}
.footer-motto { font-family: var(--f-mono); font-size: 0.65rem; color: var(--green); letter-spacing: 0.14em; }

/* ─── Spacing Utils ──────────────────────────────── */
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 14px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 44px; }
.mb-xl { margin-bottom: 68px; }
.mt-xs { margin-top: 8px; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 44px; }
.mt-xl { margin-top: 68px; }

/* ─── TABLE OVERFLOW ─────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 540px; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════ */

/* ── Tablet landscape / small desktop ≤ 1100px ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet ≤ 900px ── */
@media (max-width: 900px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section       { padding: clamp(44px, 7vw, 72px) 0; }

  /* Nav: hide links, show hamburger */
  .nav-links            { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-ham              { display: flex; }
}

/* ── Large mobile ≤ 640px ── */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-btns  { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { width: 100%; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn-group .btn { width: 100%; }
}

/* ── Small mobile ≤ 420px ── */
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .badge { font-size: 0.6rem; padding: 3px 9px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
