:root {
  --night: #0b0d0e;
  --night-2: #101416;
  --card: #15181a;
  --raised: #23282b;
  --line: #2b3134;
  --bright: #f4f6f5;
  --dim: #a3acae;
  --sun: #ffd23f;
  --on-sun: #241b00;
  --mint: #3fd07f;
  --sky: #59bfff;
  --peach: #ff8a4c;
  --aqua: #45d6c4;
  --pink: #ff8fa8;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--night);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 0.85rem;
}

.section-lede {
  color: var(--dim);
  max-width: 38ch;
  margin: 0.9rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--sun {
  background: var(--sun);
  color: var(--on-sun);
}

.btn--sun:hover {
  background: #ffe06a;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--bright);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--dim);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: linear-gradient(180deg, rgba(11, 13, 14, 0.92) 40%, rgba(11, 13, 14, 0));
  backdrop-filter: blur(8px);
}

.nav__brand img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--dim);
}

.nav__links a:hover {
  color: var(--bright);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  gap: 2rem;
  padding: 6.5rem var(--pad) 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(255, 210, 63, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(89, 191, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0d0e 0%, #121618 55%, #0b0d0e 100%);
}

.hero__glow {
  position: absolute;
  inset: auto 10% 20% auto;
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.18), transparent 65%);
  filter: blur(40px);
  animation: pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  grid-column: 1 / -1;
  grid-row: 1;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__mark {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin-bottom: 1.4rem;
  animation: mark-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  animation: rise 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__lede {
  margin: 1.1rem 0 0;
  color: var(--dim);
  max-width: 34ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  animation: rise 0.85s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.85s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__stage {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  animation: rise 1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 960px) {
  .hero {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 320px;
    max-width: calc(var(--max) + var(--pad) * 2);
    margin: 0 auto;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__stage {
    margin-top: 0;
    justify-self: end;
    align-self: center;
    width: 320px;
    grid-column: 2;
    grid-row: 1;
  }
}

.phone {
  position: relative;
  width: min(270px, 72vw);
  height: calc(min(270px, 72vw) * 2.155);
  margin: 0 auto;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  filter: drop-shadow(18px 36px 48px rgba(0, 0, 0, 0.55));
}

@media (min-width: 960px) {
  .phone {
    width: 280px;
    height: 604px;
    margin-left: auto;
    margin-right: 12px;
  }
}

.phone__frame {
  position: absolute;
  inset: 0;
  border-radius: 2.75rem;
  padding: 0.55rem;
  background:
    linear-gradient(160deg, #555b61 0%, #2a2e32 18%, #121416 42%, #0a0b0c 68%, #3a4046 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 0 3px #000,
    0 0 0 1px rgba(0, 0, 0, 0.55);
}

.phone__frame::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border-radius: 2.4rem;
  background: #000;
  pointer-events: none;
}

.phone__frame::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: 2.25rem;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0) 68%,
    rgba(255, 255, 255, 0.04) 100%
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}

.phone__screen {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 2.2rem;
  overflow: hidden;
  background: #0b0d0e;
  display: flex;
  flex-direction: column;
}

.phone__status {
  position: relative;
  z-index: 3;
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.72rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bright);
}

.phone__time {
  padding-left: 0.25rem;
}

.phone__island {
  width: 5.1rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.phone__island::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #1b3a55, #061018 70%);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
}

.phone__icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  color: var(--bright);
  padding-right: 0.15rem;
}

.phone__appbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 1rem 0.45rem;
  border-bottom: 1px solid rgba(43, 49, 52, 0.8);
}

.phone__appbar img {
  width: 44px;
  height: auto;
}

.phone__appbar span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.phone__btn {
  position: absolute;
  background: linear-gradient(180deg, #4a5056, #1c1f22);
  border-radius: 2px;
  z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone__btn--silent {
  left: -2px;
  top: 14%;
  width: 3px;
  height: 5%;
}

.phone__btn--vol-up {
  left: -2px;
  top: 22%;
  width: 3px;
  height: 8%;
}

.phone__btn--vol-down {
  left: -2px;
  top: 32%;
  width: 3px;
  height: 8%;
}

.phone__btn--power {
  right: -2px;
  top: 26%;
  width: 3px;
  height: 12%;
}

.feed {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 210, 63, 0.1), transparent 45%),
    #0b0d0e;
}

.q-card {
  position: absolute;
  inset: 0;
  padding: 0.55rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
  background: #0b0d0e;
}

.q-card--active {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}

.q-card--exit {
  opacity: 1;
  transform: translateY(-110%);
  z-index: 1;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease 0.35s;
}

.q-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.q-card__tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun);
  font-weight: 600;
}

.q-card__timer {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.q-card__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.q-card__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
}

.q-card__opts button {
  appearance: none;
  margin: 0;
  padding: 0.78rem 0.45rem;
  border-radius: 0.75rem;
  background: var(--raised);
  border: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bright);
  cursor: default;
}

.q-card__opts .is-right {
  border-color: rgba(63, 208, 127, 0.55);
  color: #8cf0b4;
  background: rgba(63, 208, 127, 0.12);
}

.phone__home {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.55rem;
  background: #0b0d0e;
}

.phone__home-bar {
  width: 34%;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(244, 246, 245, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .phone {
    transform: none;
  }
}

/* Sections */
.streak,
.progress,
.modes,
.exams,
.download {
  padding: 5.5rem var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.streak {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.streak h2,
.exams h2 {
  max-width: 18ch;
}

.streak .section-lede {
  text-align: center;
}

.streak__row {
  display: flex;
  gap: 0.55rem;
  margin-top: 2.25rem;
}

.streak__day {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dim);
  background: var(--card);
}

.streak__day.is-done {
  background: rgba(255, 210, 63, 0.15);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--sun);
}

.streak__day.is-today {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--on-sun);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18);
}

.streak__count {
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sun);
  font-size: 1rem;
  padding-top: 0.15rem;
}

.feature-list p {
  margin: 0;
  color: var(--dim);
  max-width: 48ch;
}

.mode-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .mode-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mode {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.mode::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.mode:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.mode p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.exams {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exams .section-lede {
  text-align: center;
}

.exam-marquee {
  width: 100vw;
  margin: 2.5rem 0 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.exam-marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.exam-marquee__track span {
  flex: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bright);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.download__panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 63, 0.16), transparent 55%),
    linear-gradient(180deg, #161a1c, #0f1213);
  border: 1px solid var(--line);
}

.download__mark {
  margin: 0 auto 1.25rem;
  width: 100px;
  height: auto;
}

.download__panel h2 {
  margin: 0 auto;
}

.download__panel p {
  color: var(--dim);
  margin: 0.85rem auto 0;
  max-width: 32ch;
}

.download__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--bright);
  color: var(--night);
  min-width: 11.5rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store:hover {
  transform: translateY(-2px);
}

.store small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.2;
}

.store span {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.15;
}

.store--soon {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--line);
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
}

.footer img {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer__admin {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.55;
}

.footer__admin a {
  color: var(--dim);
  text-decoration: none;
}

.footer__admin a:hover {
  color: var(--sun);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
