
:root {
  --bg: #1a0f1c;
  --bg-deep: #140b16;
  --surface: #251a2a;
  --surface-2: #2d2133;
  --border: rgba(214, 150, 210, 0.14);
  --border-strong: rgba(214, 150, 210, 0.28);
  --text: #f3e6f1;
  --text-muted: #b994b4;
  --text-dim: #8a6c88;
  --mauve: #d38bd0;
  --mauve-deep: #8f6aa0;
  --pink: #e48fb5;
  --coral: #c9524f;
  --green: #6fbf73;
  --header-bg: rgba(26, 15, 28, 0.82);
  --grad: linear-gradient(100deg, #8f6aa0 0%, #b3607f 55%, #c9524f 100%);
  --grad-text: linear-gradient(95deg, #d38bd0 0%, #e48fb5 50%, #f08a7a 100%);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border);
  --header-h: 68px;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(201, 82, 79, 0.10), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(143, 106, 160, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--pink); }
.eyebrow.light { color: rgba(255,255,255,.85); }
.eyebrow.light .dot { background: #fff; box-shadow: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--mauve); background: rgba(37, 26, 42, 0.5); }
.btn-ghost:hover { border-color: var(--mauve); background: var(--surface); }
.btn:active { transform: translateY(1px); }

.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 22px; border: 1px solid #dadce0; border-radius: 999px;
  background: #fff; color: #1f1f1f; font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 24px -10px rgba(228, 143, 181, 0.55);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(228, 143, 181, 0.75); }
.btn-google:active { transform: translateY(0); }
.btn-google:focus-visible { outline-offset: 4px; border-radius: 999px; }
.g-icon { width: 18px; height: 18px; flex: none; }
.btn-google-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-google-lg .g-icon { width: 20px; height: 20px; }
.google-signin-host {
  display: inline-flex; align-items: center; justify-content: center; width: 244px; padding: 0;
  border: 0; background: transparent; box-shadow: none; transition: none;
}
.google-signin-host.btn-google-lg { width: 280px; }
.google-signin-host:hover, .google-signin-host:active { transform: none; box-shadow: none; }


.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.menu-open { background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--mauve); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 4px 14px -4px rgba(228,143,181,.5); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; font-size: 13px; color: var(--text-muted); border-radius: var(--radius-sm); border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current] { color: var(--mauve); background: var(--surface); border-color: var(--border); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { appearance: none; width: 42px; height: 42px; display: grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--mauve); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--mauve); background: var(--surface-2); transform: translateY(-1px); }
.theme-toggle svg { display: block; }
.theme-toggle:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--mauve); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg-deep); padding: 28px 20px; display: flex; flex-direction: column; gap: 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 18px 4px; font-size: 22px; font-weight: 700; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu .btn-google { align-self: stretch; height: 52px; }
.mobile-menu .google-signin-host { width: 100%; }


.hero { position: relative; padding: 72px 0 110px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.geo { position: absolute; border: 1px solid var(--border-strong); }
.geo-circle { width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -80px; opacity: .5; }
.geo-diamond { width: 110px; height: 110px; left: 4%; bottom: 60px; transform: rotate(45deg); opacity: .5; }
.geo-square { width: 70px; height: 70px; right: 44%; top: 40px; transform: rotate(12deg); opacity: .35; }
.grid-dots { position: absolute; right: 6%; bottom: 40px; width: 160px; height: 100px; background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 14px 14px; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy { width: 100%; min-width: 0; max-width: 900px; margin-inline: auto; text-align: center; }
.hero-title { max-width: 720px; margin: 0 auto; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; color: var(--mauve); }
.hero-title-line { display: block; white-space: nowrap; }
.hero-sub { max-width: 620px; margin: 24px auto 34px; font-size: 15px; color: var(--text-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; list-style: none; margin: 36px 0 0; padding: 0; font-size: 12px; color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.hero-meta li + li::before { content: "/"; margin: 0 12px; color: var(--border-strong); }

.hero-visual { position: relative; }
.mock { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.window { overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.mock-bar p { margin: 0 0 0 10px; font-size: 11px; color: var(--text-dim); }
.mock-banner { padding: 22px 22px 20px; background: var(--grad); position: relative; }
.mock-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--mauve-deep) 0 25%, var(--coral) 25% 50%, var(--green) 50% 75%, var(--mauve) 75%); }
.mock-banner-title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.mock-banner-sub { margin: 4px 0 0; font-size: 11px; color: rgba(255,255,255,.85); }
.mock-body { padding: 18px 20px 22px; }
.mock-heading { margin: 16px 0 10px; padding-left: 10px; border-left: 2px solid var(--coral); font-size: 13px; color: var(--mauve); }

.year-tabs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-deep); font-size: 11px; }
.year-tabs span { padding: 5px 10px; border-radius: 4px; color: var(--text-dim); white-space: nowrap; }
.year-tabs .active { background: var(--grad); color: #fff; font-weight: 600; }

.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.subject-grid.tight { margin-top: 14px; }
.subject { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 14px 10px 14px 12px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--c, var(--mauve-deep)); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; color: var(--text); }
.subject i { font-style: normal; font-size: 8px; letter-spacing: .08em; padding: 3px 6px; border-radius: 3px; border: 1px solid var(--border-strong); color: var(--c, var(--mauve)); background: rgba(0,0,0,.2); }
.c-mauve { --c: #b07aa6; } .c-green { --c: var(--green); } .c-pink { --c: var(--pink); } .c-coral { --c: #f08a7a; }


.floating-chip b { display: block; color: var(--text); font-weight: 700; }
.floating-chip small { color: var(--text-dim); font-size: 10px; }



@keyframes drift { 50% { transform: translateY(-8px); } }

.section { position: relative; padding: 110px 0; }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-title { margin: 0; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--text); }
.section-sub { margin: 16px 0 0; color: var(--text-muted); font-size: 15px; }


.feature-list { display: flex; flex-direction: column; gap: 96px; }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature-index { font-size: 13px; color: var(--coral); font-weight: 700; }
.feature h3 { margin: 8px 0 14px; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.02em; color: var(--mauve); }
.feature-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.feature-title h3 { margin-right: 0; }
.feature-status { margin: 4px 0 10px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); font-size: 9px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.feature p { margin: 0; color: var(--text-muted); max-width: 440px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 13px; }
.ticks li { display: flex; gap: 10px; align-items: center; color: var(--text); }
.ticks li::before { content: ""; width: 14px; height: 1px; background: var(--grad); }
.panel { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 30px 60px -36px rgba(0,0,0,.8); display: grid; gap: 16px; transition: transform .4s var(--ease), border-color .3s; }
.panel::before { content: ""; position: absolute; top: -1px; right: -1px; width: 46px; height: 46px; border: 1px solid var(--border-strong); border-radius: 0 var(--radius) 0 50%; border-left: 0; border-bottom: 0; opacity: .6; }
.feature:hover .panel { transform: translateY(-4px); border-color: var(--border-strong); }

.test-head { display: flex; justify-content: space-between; align-items: center; }
.test-head small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.test-head b { font-size: 20px; color: var(--text); }
.timer { font-size: 11px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--pink); }
.test-progress { height: 4px; background: var(--bg-deep); border-radius: 4px; overflow: hidden; }
.test-progress span { display: block; height: 100%; width: var(--p); background: var(--grad); }
.test-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt { padding: 12px; text-align: center; font-size: 13px; font-weight: 700; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); }
.opt.selected { border-color: var(--pink); color: var(--text); box-shadow: inset 0 0 0 1px var(--pink); }

.files-panel { border-left: 3px solid var(--green); gap: 8px; }
.crumb { margin: 0 0 6px; justify-self: start; padding: 3px 10px; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); }
.file { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 12px; font-weight: 600; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.file::before { flex: none; width: 14px; height: 11px; content: ""; border-radius: 2px; }
.folder::before { background: #f2b84b; }
.pdf::before { width: 10px; height: 13px; background: var(--text-muted); }
.pdf i { margin-left: auto; font-style: normal; font-size: 10px; color: var(--mauve); letter-spacing: .06em; }


.crew { padding-top: 8px; }
.crew-group { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr; gap: clamp(24px, 4vw, 64px); padding: 48px 0; border-bottom: 1px solid var(--border-strong); }
.crew-group-head { align-self: start; }
.crew-group-head h3 { margin: 0 0 10px; color: var(--text); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; }
.crew-group-head p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.crew-grid { display: grid; gap: clamp(16px, 2.2vw, 32px); align-content: start; }
.crew-grid-founders { width: 100%; max-width: 620px; grid-template-columns: repeat(3, minmax(0, 190px)); justify-self: center; justify-content: center; gap: 20px; }
.crew-grid-team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.crew-grid-team .crew-member:nth-child(even) { margin-top: clamp(0px, 3vw, 40px); }
.crew-member { min-width: 0; margin: 0; }
.crew-portrait { position: relative; height: clamp(160px, 22vw, 208px); overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.crew-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 25%; filter: grayscale(.45) contrast(1.05); transition: filter .4s ease, transform .7s ease; }
.crew-member:hover .crew-portrait img { filter: none; transform: scale(1.04); }
.crew-member figcaption { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; color: var(--text); line-height: 1.4; }
.crew-member figcaption b { display: block; }
.crew-member figcaption span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }

.get-started { padding-bottom: 120px; }
.cta-card { position: relative; overflow: hidden; padding: 88px 40px; text-align: center; border-radius: calc(var(--radius) + 6px); background: var(--grad); box-shadow: 0 50px 100px -50px rgba(201,82,79,.6); }
.cta-geo span { position: absolute; border: 1px solid rgba(255,255,255,.22); }
.cta-geo span:first-child { width: 340px; height: 340px; border-radius: 50%; right: -90px; top: -120px; }
.cta-geo span:last-child { width: 120px; height: 120px; left: 8%; bottom: -40px; transform: rotate(45deg); }
.cta-title { position: relative; margin: 0 auto; max-width: 720px; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.035em; color: #fff; }
.cta-sub { position: relative; margin: 16px 0 36px; color: rgba(255,255,255,.88); font-size: 15px; }
.cta-card [data-google-signin] { position: relative; }
.cta-card .google-signin-host { width: 280px; margin-inline: auto; }


.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 48px 0 32px; }
.footer-brand p { margin: 12px 0 0; font-size: 12px; color: var(--text-dim); }
.footer-brand .brand img { width: 32px; height: 32px; }
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-links a { color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--mauve); }
.footer-base { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.footer-base p { margin: 0; }
.to-top:hover { color: var(--mauve); }
body.float-active .site-footer { padding-bottom: 0; }


.float-cta { position: relative; width: 0; max-width: calc(100vw - 24px); flex: 0 1 auto; overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: width .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease); }
.float-cta.is-visible { width: 248px; opacity: 1; transform: none; pointer-events: auto; }
.btn-google-float { height: 46px; }
.google-signin-host.btn-google-float { width: 248px; }


.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 60; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; padding: 12px 18px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); box-shadow: var(--shadow); transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }


@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 620px; }
  .window { transform: none; }


  .feature { gap: 40px; }
}
@media (max-width: 860px) {
  .nav, .header-signin { display: none; }
  .float-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-copy { order: 0; }
  .section { padding: 80px 0; }
  .feature-list { gap: 72px; }
  .crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 40px 0 80px; }
  .hero-title { width: 100%; max-width: 100%; font-size: clamp(20px, 8vw, 36px); }
  .hero-ctas { align-items: center; }
  .hero-ctas .google-signin-host.btn-google-lg { width: min(100%, 280px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .year-tabs span { padding: 5px 7px; }

  .cta-card { padding: 64px 22px; }
  .cta-card .btn-google { width: 100%; }
  .cta-card .google-signin-host { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  body.float-active { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.hero { padding-bottom: 86px; }
.section { padding: 88px 0; }
.section-head { margin-bottom: 48px; }
.feature-list { gap: 72px; }
.feature { gap: 52px; }
.feature p { max-width: 400px; }
.compact-preview { min-height: 190px; align-content: center; padding: 26px; }
.summary-topline, .summary-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-kicker { color: var(--text-dim); font-size: 10px; letter-spacing: .12em; }
.summary-title { display: flex; flex-direction: column; gap: 4px; font-size: 24px; font-weight: 700; color: var(--text); }
.summary-title span { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.summary-progress { height: 4px; overflow: hidden; background: var(--bg-deep); border-radius: 99px; }
.summary-progress span { display: block; width: 62%; height: 100%; background: var(--grad); }
.summary-foot { color: var(--text-muted); font-size: 11px; }
.summary-status { color: var(--mauve); }
.resource-summary { gap: 10px; }
.resource-summary .file { padding-block: 10px; }
.about { padding-top: 92px; }
.get-started { display: none; }
@media (max-width: 860px) {
  .hero { padding-bottom: 72px; }
  .section { padding: 72px 0; }
  .feature-list { gap: 56px; }
  .crew-group { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .crew-grid-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crew-grid-team .crew-member:nth-child(even) { margin-top: 0; }
}
@media (max-width: 560px) {
  .section-head { margin-bottom: 34px; }
  .feature-list { gap: 48px; }
  .compact-preview { padding: 18px; }
  .crew-grid-founders { max-width: 440px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .crew-grid-founders .crew-member:nth-child(3) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .crew-grid-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-grid-team .crew-member:nth-child(5) { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
  .crew-member figcaption { font-size: 12px; }
  .crew-member figcaption span { font-size: 10px; }
}



.feature-box {
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.018), rgba(255,255,255,0));
}
.feature-box .feature-visual { min-width: 0; }
.feature-box .panel { box-shadow: 0 20px 48px -34px rgba(0,0,0,.65); }
.feature-index {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-head { max-width: 760px; }
.section-title { max-width: 760px; }
.hero-title { max-width: 720px; }
.geo-circle, .geo-square, .geo-diamond { opacity: .22; }
.grid-dots { opacity: .45; }
.feature:hover .panel { transform: translateY(-3px); }
.float-cta { max-width: calc(100vw - 24px); }
@media (max-width: 860px) {
  .feature-box { padding: 22px; }
}
@media (max-width: 560px) {
  .feature-box { padding: 18px; }
}


[data-theme="light"] {
  --bg: #faf6fa;
  --bg-deep: #f1e8f1;
  --surface: #ffffff;
  --surface-2: #f5edf5;
  --border: rgba(105, 64, 105, .14);
  --border-strong: rgba(105, 64, 105, .27);
  --text: #29192c;
  --text-muted: #6f5572;
  --text-dim: #917a92;
  --mauve: #94528f;
  --mauve-deep: #8f6aa0;
  --pink: #b65e88;
  --coral: #c9524f;
  --green: #4b9654;
  --grad: linear-gradient(100deg, #9b76ae 0%, #c16b91 55%, #c9524f 100%);
  --grad-text: linear-gradient(95deg, #94528f 0%, #b65e88 50%, #c9524f 100%);
  --shadow: 0 30px 60px -30px rgba(65, 35, 65, .18), 0 0 0 1px var(--border);
  --header-bg: rgba(250, 246, 250, .88);
}
[data-theme="light"] body {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(201, 82, 79, .055), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(143, 106, 160, .08), transparent 60%),
    var(--bg);
}
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, .68); }
[data-theme="light"] .mock-bar { background: #f1e8f1; }
[data-theme="light"] .year-tabs { background: #fbf8fb; }
[data-theme="light"] .subject i { background: rgba(105,64,105,.045); }
[data-theme="light"] .file { background: #f8f2f8; }
[data-theme="light"] .opt { background: #f5edf5; }
[data-theme="light"] .test-progress { background: #e7dce8; }
[data-theme="light"] .summary-progress { background: #e7dce8; }
[data-theme="light"] .cta-card { color: #fff; }
[data-theme="light"] .mobile-menu { background: var(--bg); }

.community-card {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.community-card .section-title { font-size: clamp(26px, 3.2vw, 38px); }
.community-card .section-sub { max-width: 480px; }
.community-visual-placeholder {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,.012);
}
.community-visual-placeholder span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad);
  animation: communityPulse 1.8s ease-in-out infinite;
}
.community-visual-placeholder span:nth-child(2) { animation-delay: .2s; }
.community-visual-placeholder span:nth-child(3) { animation-delay: .4s; }
@keyframes communityPulse { 50% { opacity: .3; transform: translateY(-4px); } }
@media (max-width: 860px) { .community-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; } }
@media (max-width: 560px) { .community-card { padding: 20px; } }


.community-card {
  margin-top: 54px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.community-card .section-title { font-size: clamp(25px, 3vw, 34px); margin-bottom: 10px; }
.community-card .section-sub { margin-bottom: 0; }
.community-visual-placeholder {
  min-height: 120px; display: grid; place-items: center;
  border: 1px dashed var(--border-strong); border-radius: 10px;
  background: linear-gradient(135deg, rgba(160,105,159,.07), rgba(207,83,81,.045));
  color: var(--text-muted); font-size: 12px; letter-spacing: .02em;
}
.community-visual-placeholder::after { content: "Community updates"; }
.community-visual-placeholder span { display: none; }

.study-assistant-preview {
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 0;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.study-assistant-preview::before { display: none; }
.assistant-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 12px 10px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.assistant-brand { display: flex; align-items: center; gap: 7px; padding: 1px 2px 8px; font-size: 10px; }
.assistant-brand > span, .assistant-sidebar-footer > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.assistant-new-chat {
  padding: 7px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 9px;
  text-align: center;
}
.assistant-new-chat span { margin-right: 4px; color: var(--mauve); font-size: 12px; }
.assistant-filter-label { margin: 3px 0 -5px; color: var(--text-dim); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.assistant-filter { display: grid; gap: 3px; color: var(--text-dim); font-size: 8px; }
.assistant-filter b { display: flex; justify-content: space-between; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-muted); font-size: 8px; font-weight: 500; }
.assistant-filter i { font-style: normal; }
.assistant-loaded { padding: 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--text-dim); font-size: 7px; white-space: nowrap; }
.assistant-loaded span, .assistant-ready i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--green); }
.assistant-sidebar-footer { display: flex; align-items: center; gap: 6px; margin: auto -10px -12px; padding: 10px; border-top: 1px solid var(--border); font-size: 8px; }
.assistant-sidebar-footer > span { width: 20px; height: 20px; border-radius: 50%; }
.assistant-sidebar-footer small { display: block; margin-top: 2px; color: var(--text-dim); font-size: 7px; font-weight: 400; }
.assistant-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(ellipse at 50% 32%, rgba(179, 96, 127, .08), transparent 58%), var(--bg-deep);
}
.assistant-topbar { display: flex; min-width: 0; align-items: center; gap: 7px; min-height: 38px; padding: 7px 10px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.018); }
.assistant-topbar > b { min-width: 0; overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-tag, .assistant-ready { padding: 3px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); font-size: 7px; white-space: nowrap; }
.assistant-tag { color: var(--pink); }
.assistant-ready { margin-left: auto; }
.assistant-ready i { width: 4px; height: 4px; vertical-align: 1px; }
.assistant-content { display: grid; min-width: 0; align-content: center; justify-items: center; padding: 16px 18px; text-align: center; }
.assistant-mark { position: relative; width: 30px; height: 30px; margin-bottom: 7px; }
.assistant-mark::before, .assistant-mark::after, .assistant-mark span { position: absolute; left: 50%; width: 16px; height: 10px; border: 1px solid var(--mauve); transform: translateX(-50%) rotate(45deg) skew(-12deg, -12deg); }
.assistant-mark::before { top: 2px; content: ""; opacity: .95; }
.assistant-mark::after { top: 8px; content: ""; opacity: .6; }
.assistant-mark span { top: 14px; opacity: .35; }
.assistant-content h4 { margin: 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(12px, 1.3vw, 17px); line-height: 1.3; }
.assistant-content > p { max-width: 300px; margin: 6px 0 12px; color: var(--text-muted); font-size: 8px; line-height: 1.5; }
.assistant-prompts { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.assistant-prompts > div { display: flex; min-width: 0; min-height: 40px; align-items: center; gap: 7px; padding: 7px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.025); text-align: left; }
.assistant-prompts > div > span { flex: none; color: var(--mauve); font-size: 10px; }
.assistant-prompts b { overflow: hidden; color: var(--text); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-prompts small { display: block; overflow: hidden; margin-top: 2px; color: var(--text-muted); font-size: 6px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.assistant-composer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 12px 10px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-dim); font-size: 7px; }
.assistant-composer b { display: grid; flex: none; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: var(--surface-2); color: var(--pink); font-size: 12px; }

@media (max-width: 560px) {
  .study-assistant-preview { grid-template-columns: 82px minmax(0, 1fr); min-height: 300px; }
  .assistant-sidebar { gap: 8px; padding: 10px 7px; }
  .assistant-sidebar-footer { margin: auto -7px -10px; padding: 8px 6px; }
  .assistant-loaded { white-space: normal; }
  .assistant-content { padding: 12px 9px; }
  .assistant-content > p { font-size: 7px; }
  .assistant-prompts { gap: 4px; }
  .assistant-prompts > div { gap: 4px; padding: 5px; }
  .assistant-prompts b { font-size: 6px; }
  .assistant-composer { margin: 0 7px 7px; }
}
@media (max-width: 360px) {
  .study-assistant-preview { grid-template-columns: 66px minmax(0, 1fr); }
  .assistant-sidebar { overflow: hidden; padding-inline: 5px; }
  .assistant-brand b, .assistant-filter-label, .assistant-loaded, .assistant-sidebar-footer { display: none; }
  .assistant-new-chat { padding: 4px; font-size: 0; }
  .assistant-new-chat span { margin: 0; }
  .assistant-filter b { padding: 4px; font-size: 7px; }
  .assistant-content { padding-inline: 7px; }
  .assistant-prompts { grid-template-columns: 1fr; }
  .assistant-prompts > div { min-height: 34px; }
}

.test-interface-preview { padding: 16px; }
.test-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 13px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-2); margin-bottom: 12px;
}
.test-preview-head b { display: block; font-size: 13px; }
.test-preview-head small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 10px; }
.test-preview-head small span { padding: 0 4px; }
.preview-timer { padding: 7px 9px; border-radius: 6px; background: var(--surface); color: var(--pink); font-size: 11px; white-space: nowrap; }
.test-preview-body { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.question-map {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px;
  align-content: start; padding: 9px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2);
}
.question-map span {
  display: grid; place-items: center; min-height: 29px; border: 1px solid var(--border);
  border-radius: 5px; color: var(--text-muted); font-size: 10px;
}
.question-map span.current { border-color: var(--pink); color: var(--pink); background: rgba(186,91,139,.10); }
.sample-question {
  min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2);
}
.question-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.question-tags span { padding: 4px 6px; border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.sample-question > b { display: block; font-size: 11px; line-height: 1.6; font-weight: 500; }
.answer-lines { display: grid; gap: 7px; margin: 13px 0; }
.answer-lines i { display: block; height: 5px; border-radius: 4px; background: var(--border-strong); }
.answer-lines i:nth-child(2) { width: 82%; }
.answer-lines i:nth-child(3) { width: 60%; }
.question-actions { display: flex; justify-content: space-between; color: var(--pink); font-size: 10px; }
@media (max-width: 700px) {
  .community-card { grid-template-columns: 1fr; padding: 22px; gap: 18px; margin-top: 36px; }
  .test-preview-body { grid-template-columns: 86px minmax(0,1fr); gap: 8px; }
  .test-interface-preview { padding: 10px; }
  .question-map { padding: 6px; gap: 4px; }
  .question-map span { min-height: 25px; font-size: 9px; }
  .sample-question { padding: 9px; }
}



.hero-subject-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-subject-grid .subject { padding: 11px 9px 11px 11px; min-height: 43px; }
.question-list-preview { gap: 12px; padding: 18px; }
.listing-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.listing-heading > div { display: grid; gap: 5px; }
.listing-kicker { color: var(--text-dim); font-size: 9px; letter-spacing: .12em; }
.listing-heading b { font-size: 23px; color: var(--mauve); }
.listing-heading small { color: var(--text-muted); font-size: 10px; }
.listing-filters { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 7px; }
.listing-filters span { padding: 8px 9px; border: 1px solid var(--border-strong); background: var(--bg-deep); border-radius: 5px; color: var(--text); font-size: 10px; }
.listing-filters b { padding: 8px 10px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 10px; }
.listing-question { padding: 12px; border: 1px solid var(--border); border-left: 3px solid var(--mauve); border-radius: 7px; background: var(--surface-2); }
.listing-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.listing-tags i { padding: 3px 6px; border-radius: 3px; background: var(--bg-deep); color: var(--mauve); font-size: 8px; font-style: normal; font-weight: 700; }
.listing-question p { margin: 0; color: var(--text); font-size: 10px; line-height: 1.55; }
.listing-question-short { padding-block: 10px; }
.test-preview-body { grid-template-columns: 138px minmax(0, 1fr); }
.question-map { grid-template-columns: repeat(4, minmax(0,1fr)); }
.question-map span { min-height: 27px; }
.sample-question { min-width: 0; }
.sample-question > b { font-size: 12px; line-height: 1.55; }
.matrix-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; width: fit-content; max-width: 100%; border-radius: 5px; background: #fff; color: #302633; font-family: Georgia, serif; }
.matrix-preview > span { font-size: 20px; font-style: italic; }
.matrix-preview div { display: grid; gap: 3px; padding: 3px 10px; border-left: 2px solid #7e6c7b; border-right: 2px solid #7e6c7b; }
.matrix-preview i { font-size: 12px; font-style: normal; white-space: nowrap; }
@media (max-width: 860px) {
  .hero-subject-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .test-preview-body { grid-template-columns: 112px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-subject-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .listing-filters { grid-template-columns: 1fr 1fr; }
  .listing-filters b { grid-column: 1 / -1; justify-self: start; }
  .test-preview-body { grid-template-columns: 1fr; }
  .question-map { grid-template-columns: repeat(6, minmax(0,1fr)); }
}



.hero-visual { overflow: visible; }
.hero-visual .product-window { position: relative; z-index: 1; }
