*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #0C0C0D;
  --bg2:      #111113;
  --bg3:      #17171A;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --text:     #F2F2F3;
  --text-sub: #888890;
  --text-dim: #444448;
  --lime:     #C8F135;
  --lime-dim: rgba(200,241,53,0.10);
  --white10:  rgba(255,255,255,0.06);
  --white20:  rgba(255,255,255,0.10);
  --radius:   20px;
  --radius-sm:12px;
  --font-head: 'Syne', sans-serif;
  --font-serif:'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 20px rgba(200,241,53,0.15); }
  50%     { box-shadow: 0 0 40px rgba(200,241,53,0.30); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.7); }
}
@keyframes scan {
  from { top: 0; }
  to   { top: 100%; }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.20s; }
.d4 { animation-delay: 0.30s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,13,0.80);
  backdrop-filter: blur(20px);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em;
  text-decoration: none;
}
.logo-sq {
  width: 28px; height: 28px;
  background: var(--lime);
  border-radius: 6px;
  display: grid; place-items: center;
}
.logo-sq svg { width: 14px; height: 14px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-sub); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-nav {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 8px;
  cursor: pointer; text-decoration: none;
  display: inline-block; transition: all 0.2s;
}
.btn-ghost-nav {
  color: var(--text-sub);
  background: none; border: 1px solid var(--border2);
}
.btn-ghost-nav:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn-lime {
  color: #0C0C0D;
  background: var(--lime);
  border: 1px solid var(--lime);
  animation: glow 3s ease-in-out infinite;
}
.btn-lime:hover { background: #d9ff50; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
#mobileMenu {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(12,12,13,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu a {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
}

/* ── TICKER ── */
.ticker-wrap {
  margin-top: 64px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  background: var(--bg2);
}
.ticker-track {
  display: flex; gap: 0;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-item {
  display: flex; align-items: center; gap: 16px;
  padding: 0 32px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticker-item span { color: var(--lime); font-weight: 500; }
.ticker-sep {
  width: 4px; height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* ── HERO ── */
.hero {
  padding: 72px 40px 48px;
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1320px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-left { flex: 1; padding-top: 8px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(56px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.hero-sub {
  font-size: 16px; font-weight: 400;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; }
.btn-primary-lg {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  color: #0C0C0D; background: var(--lime);
  border: none; border-radius: 10px;
  padding: 14px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  animation: glow 3s ease-in-out infinite;
}
.btn-primary-lg:hover { background: #d9ff50; transform: translateY(-2px); }
.btn-sec-lg {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: var(--text-sub);
  background: var(--white10);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 14px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-sec-lg:hover { color: var(--text); background: var(--white20); }
.hero-right {
  width: 340px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 4px;
}
.hero-stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.hero-stat-card:hover { border-color: var(--border2); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-val {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-val span { color: var(--lime); font-size: 32px; }
.stat-sub {
  font-size: 13px; color: var(--text-sub);
  margin-top: 4px;
}

/* ── BENTO GRID ── */
.bento-wrap {
  padding: 0 40px 40px;
  max-width: 1320px; margin: 0 auto;
  position: relative; z-index: 1;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.card-inner { padding: 28px; height: 100%; }

.c-main  { grid-column: span 5; grid-row: span 2; min-height: 380px; }
.c-chat  { grid-column: span 4; grid-row: span 2; min-height: 380px; }
.c-speed { grid-column: span 3; grid-row: span 1; min-height: 175px; }
.c-langs { grid-column: span 3; grid-row: span 1; min-height: 175px; }
.c-wide  { grid-column: span 7; grid-row: span 1; min-height: 200px; }
.c-stack { grid-column: span 5; grid-row: span 1; min-height: 200px; }
.c-cta   { grid-column: span 12; min-height: 160px; }

.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── CARD: MAIN ── */
.c-main .card-inner { display: flex; flex-direction: column; }
.c-main-title {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}
.c-main-title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--lime);
}
.c-main-desc {
  font-size: 14px; color: var(--text-sub);
  line-height: 1.65; margin-bottom: 28px;
}
.feature-list {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; margin-top: auto;
}
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-sub);
}
.feat-check {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 5px;
  background: var(--lime-dim);
  border: 1px solid rgba(200,241,53,0.2);
  display: grid; place-items: center;
  font-size: 10px; color: var(--lime);
}
.c-main::before {
  content: '';
  position: absolute; bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,241,53,0.08), transparent 70%);
  pointer-events: none;
}

/* ── CARD: CHAT ── */
.chat-ui { display: flex; flex-direction: column; height: 100%; }
.chat-header-ui {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.chat-avatar-ui {
  width: 30px; height: 30px;
  background: var(--lime);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; color: #0C0C0D; font-weight: 700;
}
.chat-user-info .name { font-size: 13px; font-weight: 600; color: var(--text); }
.chat-user-info .status {
  font-size: 11px; color: var(--lime);
  display: flex; align-items: center; gap: 4px;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s ease-in-out infinite;
}
.chat-messages { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px; line-height: 1.55;
}
.msg-ai {
  background: var(--white10);
  color: var(--text-sub);
  border-radius: 4px 14px 14px 14px;
  align-self: flex-start;
}
.msg-user {
  background: var(--lime);
  color: #0C0C0D;
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end; font-weight: 500;
}
.msg-time {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-dim);
  margin-top: 4px;
}
.chat-input-ui {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  background: var(--white10);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.chat-input-ui input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-head);
  font-size: 13px; color: var(--text-sub);
}
.chat-input-ui input::placeholder { color: var(--text-dim); }
.chat-send {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--lime);
  display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0;
}
.chat-send svg { width: 12px; height: 12px; }

.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,241,53,0.3), transparent);
  animation: scan 4s linear infinite;
  pointer-events: none;
}

/* ── CARD: SPEED ── */
.speed-num {
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.05em; line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}
.speed-num span { color: var(--lime); font-size: 32px; }
.speed-bar-wrap {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.speed-row { display: flex; align-items: center; gap: 8px; }
.speed-label {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-dim);
  width: 60px;
}
.speed-bar-bg {
  flex: 1; height: 4px;
  background: var(--white10);
  border-radius: 99px; overflow: hidden;
}
.speed-bar-fill {
  height: 100%; border-radius: 99px;
  background: var(--lime);
}

/* ── CARD: LANGS ── */
.lang-text {
  font-size: 13px; color: var(--text-sub);
  line-height: 1.5; margin-bottom: 4px;
}
.lang-text strong { color: var(--text); }
.lang-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lang-pill {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 400;
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  transition: all 0.2s;
}
.lang-pill:hover { border-color: var(--lime); color: var(--lime); }
.lang-pill.active {
  background: var(--lime-dim);
  border-color: rgba(200,241,53,0.3);
  color: var(--lime);
}

/* ── CARD: WIDE ── */
.wide-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.wide-title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  color: var(--lime);
}
.integrations-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; flex-wrap: wrap;
}
.integration-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--white10);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--text-sub);
  transition: all 0.2s;
}
.integration-chip:hover { border-color: var(--border2); color: var(--text); }
.chip-icon {
  width: 20px; height: 20px; border-radius: 4px;
  display: grid; place-items: center; font-size: 13px;
}
.plus-more {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-dim);
  margin-left: 4px;
}

/* ── CARD: STACK ── */
.testimonial-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px; line-height: 1.5;
  color: var(--text);
  margin: 16px 0 24px;
}
.testimonial-text strong {
  color: var(--lime); font-style: normal;
  font-family: var(--font-head); font-weight: 700;
}
.avatar-row { display: flex; align-items: center; }
.av {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--bg3);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: #0C0C0D;
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }
.av-1 { background: #C8F135; }
.av-2 { background: #60A5FA; }
.av-3 { background: #F472B6; }
.av-4 { background: #FB923C; }
.av-5 { background: #A78BFA; }
.av-count {
  margin-left: 12px;
  font-size: 13px; font-weight: 600; color: var(--text-sub);
}

/* ── CARD: CTA ── */
.c-cta {
  background: var(--lime) !important;
  border-color: transparent !important;
}
.c-cta:hover { transform: none !important; }
.c-cta .card-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.cta-title {
  font-size: 36px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  color: #0C0C0D;
  margin-bottom: 8px;
}
.cta-sub { font-size: 15px; color: rgba(12,12,13,0.55); }
.cta-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-dark {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700;
  color: var(--lime);
  background: #0C0C0D;
  border: none; border-radius: 10px;
  padding: 14px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  letter-spacing: -0.01em;
  transition: all 0.2s;
}
.btn-dark:hover { background: #1a1a1c; transform: translateY(-1px); }
.btn-outline-dark {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: rgba(12,12,13,0.65);
  background: none;
  border: 1.5px solid rgba(12,12,13,0.2);
  border-radius: 10px;
  padding: 14px 28px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.2s;
}
.btn-outline-dark:hover { border-color: rgba(12,12,13,0.4); color: #0C0C0D; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-logo-text { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-sub); }

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 900px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    gap: 32px;
  }
  .hero-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .bento { grid-template-columns: repeat(6, 1fr); }
  .c-main, .c-chat, .c-wide, .c-stack, .c-cta { grid-column: span 6; }
  .c-speed, .c-langs { grid-column: span 3; }

  .c-cta .card-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 560px) {
  nav { height: 56px; padding: 0 16px; }
  #mobileMenu { top: 56px; }
  .ticker-wrap { margin-top: 56px; }

  .hero { padding: 36px 16px 24px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-primary-lg, .btn-sec-lg { width: 100%; text-align: center; }

  .hero-right { grid-template-columns: 1fr; }

  .bento-wrap { padding: 0 16px 24px; }
  .bento { grid-template-columns: 1fr; }
  .c-main, .c-chat, .c-speed, .c-langs,
  .c-wide, .c-stack, .c-cta { grid-column: span 1; }

  .cta-right { flex-direction: column; width: 100%; }
  .btn-dark, .btn-outline-dark { width: 100%; text-align: center; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 16px;
  }
}
