:root {
  --bg: #060c0d;
  --bg-2: #0c1517;
  --card: rgba(16, 28, 31, 0.72);
  --line: rgba(241, 238, 230, 0.09);
  --ink: #f1eee6;
  --mute: #8b9898;
  --volt: #d4ff3a;
  --petrol: #0f3b40;
  --chrome: linear-gradient(180deg, #ffffff 0%, #a7b0b3 46%, #eef2f3 54%, #6f797c 100%);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(15, 59, 64, 0.55), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(241, 238, 230, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
em { font-style: normal; color: var(--volt); }
s { color: var(--mute); text-decoration-thickness: 2px; }
.volt { color: var(--volt); }

/* --- top + nav --- */
.topbar {
  text-align: center; font-size: 14px; font-weight: 500; padding: 9px 16px;
  background: var(--volt); color: #0b1314;
}
.topbar s { color: rgba(11, 19, 20, .55); }
.topbar .volt { color: var(--volt); background: #0b1314; padding: 1px 7px; border-radius: 5px; }
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--max); margin: 0 auto; padding: 16px 20px;
  backdrop-filter: blur(14px);
}
.nav nav { display: flex; gap: 22px; flex: 1; font-size: 15px; color: var(--mute); }
.nav nav a { text-decoration: none; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 19px/1 var(--display); letter-spacing: 0.02em;
}
.logo i { font-style: normal; color: var(--volt); margin-left: -10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--volt), 0 6px 18px rgba(212,255,58,.18);
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--volt); color: #0b1314; text-decoration: none;
  font: 600 16px/1 var(--body);
  box-shadow: 0 10px 40px -10px rgba(212, 255, 58, 0.55);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(212, 255, 58, 0.75); }
.btn s { color: rgba(11, 19, 20, .55); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-xs { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--volt) inset; }

/* --- hero --- */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px 20px 40px; text-align: center; }
.kicker {
  display: inline-block; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--volt); padding: 8px 12px; border-radius: 8px; background: rgba(212,255,58,.07);
  border: 1px solid rgba(212,255,58,.18);
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.08; letter-spacing: -0.03em; }
h1 { font-size: clamp(34px, 6.2vw, 92px); line-height: 1.12; margin: 30px 0 24px; }

/* announcement badge (21st.dev style) */
.ann {
  display: inline-flex; align-items: center; gap: 12px; padding: 5px 16px 5px 5px;
  border-radius: 999px; text-decoration: none; font-size: 14px; position: relative;
  background: rgba(241, 238, 230, .04);
  box-shadow: 0 0 0 1px rgba(241, 238, 230, .12) inset, 0 8px 30px -12px rgba(212, 255, 58, .35);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, background .3s;
}
.ann:hover { background: rgba(241, 238, 230, .07); box-shadow: 0 0 0 1px rgba(212, 255, 58, .45) inset, 0 8px 30px -10px rgba(212, 255, 58, .5); }
.ann-tag {
  padding: 5px 10px; border-radius: 999px; background: var(--volt); color: #0b1314;
  font: 700 12px/1 var(--display); letter-spacing: .02em;
}
.ann-text {
  font-weight: 500;
  background: linear-gradient(110deg, var(--mute) 35%, var(--ink) 50%, var(--mute) 65%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
}
.ann-text { white-space: nowrap; }
.ann-arrow { color: var(--mute); transition: transform .3s, color .3s; }
.ann:hover .ann-arrow { transform: translateX(3px); color: var(--volt); }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.pill {
  display: inline-block; vertical-align: middle; width: 1.2em; height: .8em; border-radius: 999px;
  overflow: hidden; margin: 0 .08em; transform: translateY(-.08em) rotate(-3deg);
  box-shadow: 0 0 0 2px rgba(241,238,230,.18), 0 10px 30px -10px rgba(0,0,0,.6);
}
.pill-wide { width: 1.85em; transform: translateY(-.08em) rotate(2deg); }
.pill img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.lead { max-width: 620px; margin: 0 auto; color: var(--mute); font-size: 19px; }

.stage {
  position: relative; margin: 48px auto 0; border-radius: 28px; overflow: hidden;
  min-height: 560px; display: grid; place-items: end center;
  box-shadow: 0 0 0 1px var(--line), 0 -30px 80px -30px rgba(212,255,58,.25);
}
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,13,.05) 30%, rgba(6,12,13,.92)); }
.float {
  position: absolute; z-index: 2; width: 260px; padding: 14px; text-align: left;
  border-radius: 16px; background: var(--card); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0,0,0,.35);
  animation: bob 6s ease-in-out infinite;
}
.float-left { left: 24px; top: 28px; transform: rotate(-3deg); }
.float-right { right: 24px; top: 46px; transform: rotate(3deg); animation-delay: -3s; }
.float-head { display: flex; justify-content: space-between; font: 500 13px/1 var(--body); margin-bottom: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(212,255,58,.12); color: var(--volt); }
.float code { display: block; font: 400 12.5px/1.5 var(--mono); color: #cfd6d6; margin-bottom: 12px; }
@keyframes bob { 50% { translate: 0 -8px; } }

.countdown { position: relative; z-index: 2; padding: 0 20px 40px; }
.clock { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 16px 0 8px; }
.clock div { display: grid; }
.clock b { font: 800 clamp(34px, 6vw, 80px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.clock span { font: 500 12px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.clock i { font: 800 clamp(28px, 5vw, 64px)/1 var(--display); color: var(--mute); font-style: normal; }
.clock-note { color: var(--mute); font-size: 15px; margin-bottom: 20px; }

/* --- sections --- */
section { scroll-margin-top: 80px; }
.section-head { max-width: var(--max); margin: 0 auto 32px; padding: 0 20px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 64px); max-width: 680px; }
.section-head p { max-width: 380px; color: var(--mute); }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

.gallery-wrap { padding: 110px 0 40px; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; padding: 0 20px 24px; cursor: grab;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { position: relative; flex: 0 0 auto; width: min(560px, 82vw); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.gallery figure.tall { width: min(320px, 60vw); aspect-ratio: 9/16; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--card); backdrop-filter: blur(10px); font-size: 13px; color: var(--mute);
}
.gallery figcaption b { display: block; color: var(--ink); font: 700 14px/1.3 var(--display); margin-bottom: 2px; text-transform: uppercase; }
.gallery figure::before {
  content: "AI-generated"; position: absolute; z-index: 1; top: 12px; left: 12px; font: 500 11px/1 var(--mono);
  padding: 6px 8px; border-radius: 6px; background: rgba(6,12,13,.6); color: var(--volt);
}

.duo { max-width: var(--max); margin: 70px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.person { display: flex; gap: 22px; align-items: center; padding: 20px; border-radius: 24px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.person img { width: 148px; height: 148px; border-radius: 18px; object-fit: cover; flex: none; }
.person h3 { font-size: 38px; margin: 12px 0 8px; }
.person p:not(.kicker) { color: var(--mute); font-size: 15px; }
.person-bumi { background: linear-gradient(135deg, rgba(15,59,64,.6), var(--bg-2)); }

.lessons, .vault, .pricing { padding: 90px 0 40px; }
.accordion { max-width: var(--max); margin: 0 auto; padding: 0 20px; list-style: none; display: grid; gap: 10px; }
.lesson { border-radius: var(--radius); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.lesson button {
  width: 100%; display: flex; align-items: center; gap: 22px; padding: 20px 22px; text-align: left;
  background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
}
.lesson .no { font: 500 13px/1 var(--mono); color: var(--volt); flex: none; width: 74px; }
.lesson .t { font: 600 clamp(15px, 1.6vw, 20px)/1.3 var(--display); text-transform: uppercase; flex: 1; }
.lesson .plus { font-size: 26px; color: var(--mute); transition: transform .3s; }
.lesson.open .plus { transform: rotate(45deg); color: var(--volt); }
.lesson .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.lesson.open .body { grid-template-rows: 1fr; }
.lesson .body > div { overflow: hidden; padding: 0 22px 0 118px; color: var(--mute); }
.lesson.open .body > div { padding-bottom: 22px; }
.lesson h4 { margin: 14px 0 6px; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--volt); }
.lesson ul { padding-left: 18px; }

.cards { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/9; object-fit: cover; }
.card div { padding: 18px; display: grid; gap: 10px; }
.card h3 { font-size: 17px; line-height: 1.3; }
.card p { color: var(--mute); font-size: 14px; }
.card .code { font: 500 12px/1 var(--mono); color: var(--volt); }

.plans { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 30px 26px; border-radius: 24px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 22px; }
.plan .price { font: 800 46px/1.1 var(--display); letter-spacing: -0.03em; }
.plan .price s { font-size: 22px; font-weight: 600; }
.plan ul { list-style: none; display: grid; gap: 8px; color: var(--mute); flex: 1; }
.plan li::before { content: "→ "; color: var(--volt); }
.plan-main { background: linear-gradient(160deg, var(--petrol), var(--bg-2) 70%); box-shadow: 0 0 0 1px rgba(212,255,58,.45), 0 30px 80px -30px rgba(212,255,58,.35); transform: translateY(-10px); }
.badge { position: absolute; top: -12px; left: 26px; padding: 6px 10px; border-radius: 8px; background: var(--volt); color: #0b1314; font: 600 12px/1 var(--body); }

.signup { max-width: 720px; margin: 80px auto; padding: 48px 28px; text-align: center; border-radius: 28px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.signup h2 { font-size: clamp(28px, 4.4vw, 50px); margin-bottom: 14px; }
.signup > p { color: var(--mute); margin-bottom: 26px; }
.signup form { display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; }
.signup input[type=email] {
  padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; outline: none;
}
.signup input[type=email]:focus { border-color: var(--volt); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; font-size: 13px; color: var(--mute); align-items: flex-start; }
.consent input { accent-color: var(--volt); margin-top: 3px; }
.form-msg { grid-column: 1 / -1; font-size: 14px; min-height: 1.4em; }

.footer { max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px; display: grid; gap: 10px; color: var(--mute); font-size: 14px; border-top: 1px solid var(--line); }

/* --- reveal on load --- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal:nth-child(2) { animation-delay: .12s; }
.reveal:nth-child(3) { animation-delay: .24s; }
.reveal:nth-child(4) { animation-delay: .38s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .float { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- mobile --- */
@media (max-width: 860px) {
  .ann { font-size: 12.5px; gap: 8px; }
  .ann-tag { font-size: 11px; }
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .float { display: none; }
  .stage { min-height: 460px; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; }
  .duo, .cards, .plans { grid-template-columns: 1fr; }
  .plan-main { transform: none; }
  .person img { width: 104px; height: 104px; }
  .person h3 { font-size: 30px; }
  .lesson .body > div { padding-left: 22px; }
  .lesson .no { width: auto; }
  .signup form { grid-template-columns: 1fr; }
}
