:root {
  --black: #050505;
  --night: #070b1a;
  --night-2: #0b1024;
  --white: #ffffff;
  --muted: #a0a7b4;
  --muted-2: #727987;
  --blue: #3366ff;
  --violet: #8b5cff;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.085);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 14% 10%, rgba(51, 102, 255, 0.22), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(139, 92, 255, 0.18), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(51, 102, 255, 0.10), transparent 38%),
    linear-gradient(180deg, #050505 0%, #070b1a 54%, #050505 100%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.08));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), rgba(0,0,0,.08));
}

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 108px 0; }
.compact-section { padding-top: 44px; }
.section-heading { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin: 0; text-align: left; }
.section-heading p,
.project-card p,
.collab-card p,
.final-card p { margin-top: 18px; }

h1, h2, h3 { letter-spacing: -0.055em; text-wrap: balance; }
h1 { max-width: 840px; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .91; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.5rem); line-height: .98; }
h3 { font-size: 1.35rem; line-height: 1.1; }
p { color: var(--muted); line-height: 1.72; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 22px rgba(51, 102, 255, .9);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 850;
  white-space: nowrap;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 18px 50px rgba(51,102,255,.27); }
.btn-primary:hover { box-shadow: 0 24px 70px rgba(51,102,255,.38); }
.btn-secondary { background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); backdrop-filter: blur(18px); }
.btn-secondary:hover { border-color: rgba(51,102,255,.55); background: rgba(51,102,255,.10); }
.button-row,
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button-row.center { justify-content: center; }
.text-link { display: inline-flex; align-items: center; margin-top: 22px; color: #fff; font-weight: 850; }
.text-link::after { content: "→"; margin-left: 8px; color: var(--blue); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .22s ease, border-color .22s ease, backdrop-filter .22s ease;
}
.site-header.is-scrolled { background: rgba(5,5,5,.74); border-color: var(--border); backdrop-filter: blur(22px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 0 auto; font-weight: 950; letter-spacing: -.04em; font-size: 1.02rem; }
.brand img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.footer-brand img { width: 42px; height: 42px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); color: rgba(255,255,255,.68); font-size: .9rem; font-weight: 700; min-width: 0; }
.desktop-nav a { white-space: nowrap; transition: color .2s ease; }
.desktop-nav a:hover { color: #fff; }
.header-cta { flex: 0 0 auto; }
.burger {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}
.burger span { width: 18px; height: 2px; border-radius: 99px; background: #fff; transition: transform .22s ease; }
.burger.is-active span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-active span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { display: none; }

.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 150px; overflow: hidden; }
.compact-hero { min-height: auto; padding-top: 150px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .84fr); align-items: center; gap: clamp(44px, 7vw, 88px); }
.hero-content,
.hero-visual,
.newsletter-panel,
.two-col > * { min-width: 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.045);
  font-size: .84rem;
  font-weight: 750;
}

.visual-card,
.flow-card,
.project-card,
.collab-card,
.final-card,
.newsletter-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 10%, rgba(51,102,255,.20), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(139,92,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(10,16,35,.92), rgba(5,5,5,.95));
  box-shadow: var(--shadow);
}
.visual-card::before,
.flow-card::before,
.project-card::before,
.collab-card::before,
.final-card::before,
.newsletter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), transparent 90%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.88), transparent 90%);
  pointer-events: none;
}
.visual-card { padding: clamp(22px, 3vw, 34px); }
.visual-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.visual-head span,
.mini-label {
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.visual-head strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  font-size: .78rem;
  font-weight: 800;
}
.signal-list { position: relative; z-index: 1; display: grid; gap: 12px; }
.signal-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.055); }
.signal-item.active { border-color: rgba(51,102,255,.42); background: rgba(51,102,255,.12); }
.signal-item span { color: var(--blue); font-size: .78rem; font-weight: 950; }
.signal-item strong { display: block; font-size: 1rem; }
.signal-item small { display: block; margin-top: 6px; color: var(--muted-2); font-size: .86rem; }
.bars { position: relative; z-index: 1; height: 72px; display: flex; align-items: end; gap: 7px; margin-top: 26px; }
.bars i { width: 100%; min-width: 5px; border-radius: 999px; background: linear-gradient(to top, var(--blue), var(--violet), #fff); opacity: .75; animation: wave 1.8s ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 36%; animation-delay: 0s; } .bars i:nth-child(2) { height: 62%; animation-delay: .1s; }
.bars i:nth-child(3) { height: 44%; animation-delay: .2s; } .bars i:nth-child(4) { height: 84%; animation-delay: .3s; }
.bars i:nth-child(5) { height: 56%; animation-delay: .4s; } .bars i:nth-child(6) { height: 96%; animation-delay: .5s; }
.bars i:nth-child(7) { height: 42%; animation-delay: .6s; } .bars i:nth-child(8) { height: 76%; animation-delay: .7s; }
.bars i:nth-child(9) { height: 50%; animation-delay: .8s; } .bars i:nth-child(10) { height: 68%; animation-delay: .9s; }
@keyframes wave { from { transform: scaleY(.62); opacity: .45; } to { transform: scaleY(1); opacity: .95; } }

.two-col { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(34px, 6vw, 78px); align-items: start; }
.align-center { align-items: center; }
.card-grid { display: grid; gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card,
.social-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.info-card:hover,
.social-card:hover { transform: translateY(-4px); border-color: rgba(51,102,255,.38); background: var(--card-strong); }
.card-index { display: inline-flex; margin-bottom: 46px; color: var(--blue); font-weight: 950; letter-spacing: .08em; }
.info-card p { margin-top: 14px; }

.flow-card { padding: clamp(22px, 3vw, 34px); }
.flow-row { position: relative; z-index: 1; display: grid; grid-template-columns: 48px minmax(90px, .65fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.flow-row:last-child { border-bottom: 0; }
.flow-row span { color: var(--blue); font-weight: 950; }
.flow-row strong { color: #fff; }
.flow-row p { margin: 0; color: var(--muted-2); }

.project-card,
.collab-card,
.final-card,
.newsletter-panel { padding: clamp(26px, 4vw, 44px); }
.project-card h3 { margin-top: 16px; font-size: clamp(2.2rem, 4vw, 4rem); }
.final-card { text-align: center; max-width: 980px; margin-inline: auto; }
.final-card .eyebrow { justify-content: center; }
.collab-card .btn { margin-top: 24px; }

.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.social-card { min-height: 190px; display: grid; align-content: end; }
.social-card img { position: absolute; top: 26px; right: 26px; width: 34px; height: 34px; object-fit: contain; opacity: .9; }
.social-card span { color: var(--muted-2); font-weight: 800; }
.social-card strong { margin-top: 8px; font-size: 1.28rem; }

.newsletter-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr); gap: clamp(34px, 6vw, 76px); align-items: center; }
.newsletter-panel { scroll-margin-top: 120px; padding: clamp(16px, 2vw, 24px); }
.tally-frame { position: relative; z-index: 1; width: 100%; min-height: 560px; border: 0; border-radius: 18px; background: transparent; display: block; }

.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: rgba(5,5,5,.38); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 34px; align-items: center; }
.footer-grid p { max-width: 360px; margin-top: 14px; font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.68); font-size: .9rem; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.05); }
.footer-socials img { width: 20px; height: 20px; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .desktop-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav {
    display: grid;
    gap: 6px;
    position: fixed;
    top: 82px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(5,5,5,.94);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-nav a { padding: 13px 14px; border-radius: 14px; color: rgba(255,255,255,.82); font-weight: 800; }
  .mobile-nav a:not(.btn) { background: rgba(255,255,255,.04); }
  .hero-grid,
  .newsletter-layout,
  .two-col { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-visual { max-width: 640px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 76px 0; }
  .compact-section { padding-top: 28px; }
  .compact-hero,
  .hero { padding-top: 128px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.1rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hero-actions,
  .button-row { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; white-space: normal; text-align: center; }
  .card-grid.four,
  .social-grid { grid-template-columns: 1fr; }
  .info-card,
  .social-card { min-height: auto; }
  .card-index { margin-bottom: 30px; }
  .flow-row { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .flow-row p { grid-column: 2; }
  .tally-frame { min-height: 620px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand span { font-size: .96rem; }
  .brand img { width: 34px; height: 34px; }
  .hero-tags span { width: 100%; justify-content: center; }
  .visual-head { align-items: flex-start; flex-direction: column; }
  .newsletter-panel { padding: 12px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
