/* ═══════════════════════════════════════════════
   SUPRAINNO — Design System
   Font: Space Grotesk
   ═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:          #0C0C0E;
  --bg-card:     #161619;
  --bg-card-alt: #111113;
  --accent:      #C8FF47;
  --accent-teal: #47FFCF;
  --text:        #F5F5F7;
  --text-muted:  #6E6E7A;
  --border:      rgba(255, 255, 255, 0.07);
  --font:        'Space Grotesk', sans-serif;

  /* spacing */
  --gutter: 120px;
  --section-py: 128px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────── */
.display {
  font-size: 96px; font-weight: 700;
  line-height: 1; letter-spacing: -2.4px;
}
h1, .h1 {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.4px;
}
h2, .h2 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
}
h3, .h3 {
  font-size: 24px; font-weight: 700;
  line-height: 1.375; letter-spacing: -0.6px;
}
h4, .h4 {
  font-size: 20px; font-weight: 700;
  line-height: 1.375; letter-spacing: -0.5px;
}
.body-l { font-size: 20px; font-weight: 400; line-height: 1.625; }
.body-m { font-size: 16px; font-weight: 400; line-height: 1.625; }
.body-s { font-size: 14px; font-weight: 400; line-height: 1.625; color: var(--text-muted); }
.caption {
  font-size: 12px; font-weight: 700;
  line-height: 1.333; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── LAYOUT ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 0.6px solid var(--border);
}

/* ── SECTION COMMON ──────────────────────────── */
section { padding: var(--section-py) 0; }
.section-header { margin-bottom: 64px; }
.section-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.section-heading { color: var(--text); margin-bottom: 0; }
.section-subtext { color: var(--text-muted); margin-top: 32px; max-width: 640px; }

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav__inner {
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  height: 72px; gap: 48px;
  max-width: 1440px; margin: 0 auto;
}
.nav__logo { flex-shrink: 0; }
.nav__logo-text {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--text);
}
.nav__links {
  display: flex; gap: 40px; margin-right: auto;
}
.nav__links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 24px; font-size: 14px; }
.nav__burger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav__mobile {
  display: none; padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--border);
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 20px; }
.nav__mobile-link { font-size: 20px; font-weight: 600; color: var(--text); }
.nav__mobile.is-open { display: block; }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .container {
  padding-top: 160px;
  padding-bottom: 80px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 0.6px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 40px;
}
.badge__dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; flex-shrink: 0;
}
.badge__label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.hero__headline {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 700; line-height: 1;
  letter-spacing: -2.4px;
  color: var(--text);
  margin-bottom: 40px;
}
.hero__headline--gradient {
  background: linear-gradient(20deg, var(--accent) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__body {
  font-size: 20px; font-weight: 400;
  line-height: 1.625; color: var(--text-muted);
  max-width: 560px; margin-bottom: 48px;
}
.hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}
.stats-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.stats-bar__group { display: flex; gap: 64px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: 32px; font-weight: 700; letter-spacing: -0.8px; color: var(--text); }
.stat__label { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.stats-bar__scroll {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.scroll-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  background: var(--bg);
}
.ticker__track {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker__track span {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted);
}
.ticker__dot { color: var(--accent) !important; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   WHY
   ══════════════════════════════════════════════ */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.why__text {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.why__quote {
  background: var(--bg-card);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 32px 40px;
  font-size: 16px; font-weight: 400; font-style: italic;
  color: var(--text-muted); line-height: 1.7;
  margin-top: 32px;
}
.why__image-wrap {
  width: 100%; aspect-ratio: 560/360;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 40px;
}
.why__image { width: 100%; height: 100%; object-fit: cover; }
.why__right-label { margin-bottom: 32px; }

/* ══════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════ */
.how { background: var(--bg-card-alt); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.step {
  padding: 40px;
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }
.step__number { margin-bottom: 40px; color: var(--accent); }
.step__title { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; color: var(--text); margin-bottom: 16px; }
.step__body { color: var(--text-muted); }

/* ══════════════════════════════════════════════
   DOMAINS
   ══════════════════════════════════════════════ */
.domains__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 16px; overflow: hidden;
}
.domain-card {
  background: var(--bg);
  padding: 40px;
}
.domain-card__image-wrap {
  width: 100%; aspect-ratio: 508/180;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 32px;
}
.domain-card__image { width: 100%; height: 100%; object-fit: cover; }
.domain-card__title { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; color: var(--text); margin-bottom: 16px; }
.domain-card__body { color: var(--text-muted); }

/* ══════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════ */
.projects { background: var(--bg-card-alt); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 16px; overflow: hidden;
}
.project-card { background: var(--bg); padding: 36px; }
.project-card__image-wrap {
  width: 100%; aspect-ratio: 313/160;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 24px;
}
.project-card__image { width: 100%; height: 100%; object-fit: cover; }
.project-card__status {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--accent);
  background: rgba(200, 255, 71, 0.1);
  border-radius: 999px; padding: 4px 12px;
  margin-bottom: 20px;
}
.project-card__title { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; margin-bottom: 12px; }
.project-card__body { color: var(--text-muted); margin-bottom: 24px; }
.project-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text);
  transition: color 0.2s;
}
.project-card__link:hover { color: var(--accent); }

/* ══════════════════════════════════════════════
   COMMUNITY
   ══════════════════════════════════════════════ */
.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.audience-group { margin-bottom: 48px; }
.audience-group__title { margin-bottom: 24px; }
.audience-item {
  display: flex; gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.audience-item:last-child { border-bottom: 1px solid var(--border); }
.audience-item__num {
  font-size: 14px; font-weight: 700;
  color: var(--text-muted); flex-shrink: 0;
  padding-top: 2px; min-width: 28px;
}
.audience-item__title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.audience-item__body { color: var(--text-muted); }

/* Word grid */
.community__right {
  display: flex; align-items: center; justify-content: center;
  position: sticky; top: 120px;
}
.word-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; width: 100%; max-width: 400px;
}
.word-tile {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  transition: all 0.25s;
}
.word-tile:hover { background: var(--bg-card); color: var(--text); border-color: rgba(255,255,255,0.15); }
.word-tile--accent {
  background: rgba(200, 255, 71, 0.08);
  border-color: rgba(200, 255, 71, 0.2);
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════ */
.cta-section {
  background: var(--bg-card-alt);
  text-align: center;
}
.cta-section__inner {
  display: flex; flex-direction: column;
  align-items: center;
}
.cta-section__logo {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 40px;
}
.cta-section__logo-text {
  font-size: 28px; font-weight: 700;
  color: var(--bg);
}
.cta-section .section-label { margin-bottom: 24px; }
.cta-section__heading {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 32px;
}
.cta-section__body {
  color: var(--text-muted); max-width: 500px;
  margin-bottom: 48px; text-align: center;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer__inner {
  display: flex; align-items: center; gap: 48px;
}
.footer__logo-text {
  font-size: 16px; font-weight: 700; color: var(--text);
}
.footer__nav {
  display: flex; gap: 40px; margin: 0 auto;
}
.footer__nav a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--text-muted); white-space: nowrap; }

/* ══════════════════════════════════════════════
   PLACEHOLDER IMAGE FALLBACKS
   ══════════════════════════════════════════════ */
.why__image-wrap:not(:has(img[src*=".jpg"])),
.domain-card__image-wrap:not(:has(img[src])),
.project-card__image-wrap:not(:has(img[src])) {
  background: linear-gradient(135deg, #161619 0%, #1e1e24 100%);
}
/* Gradient placeholder for missing images */
.why__image[src$="placeholder-team.jpg"]:not([src=""]),
.domain-card__image, .project-card__image {
  background: linear-gradient(135deg, #1a1a1f 0%, #25252e 100%);
  min-height: 160px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  :root { --gutter: 64px; }
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .step:nth-child(4) { border-top: 1px solid var(--border); }
  .why__grid { grid-template-columns: 1fr; gap: 48px; }
  .community__grid { grid-template-columns: 1fr; gap: 48px; }
  .community__right { position: static; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; --section-py: 80px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .stats-bar__scroll { display: none; }
  .stats-bar__group { gap: 32px; }
  .hero__headline { font-size: clamp(40px, 10vw, 60px); letter-spacing: -1.5px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; border-top: 1px solid var(--border); }
  .step:first-child { border-top: none; }
  .domains__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; gap: 24px; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .word-grid { max-width: 280px; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
