@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --bg: #131110;
  --surface: #1B1713;
  --surface-raised: #221D18;
  --border: #322B24;
  --border-soft: #2A241F;
  --text: #F2ECE4;
  --text-dim: #B8AEA1;
  --text-faint: #7C7367;
  --accent-1: #7C6FF5;
  --accent-2: #4F7FFF;
  --accent-tint: rgba(124, 111, 245, 0.14);
  --green: #3FA66A;
  --green-tint: rgba(63, 166, 106, 0.14);
  --amber: #E0A030;
  --amber-tint: rgba(224, 160, 48, 0.14);
  --red: #E0604E;
  --red-tint: rgba(224, 96, 78, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 17, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { opacity: 0.88; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  box-shadow: 0 8px 24px -8px rgba(79, 127, 255, 0.5);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(124,111,245,0.16), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #9F94FF, #6FA0FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note {
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Product frame (mock dashboard) ---------- */
.frame {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.frame-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.frame-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.frame-body { padding: 28px; }
.mock-banner {
  height: 90px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1F3B2C, #16291F);
  display: flex;
  align-items: flex-end;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mock-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}
.mock-card .label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.mock-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 8px;
}
.pill-amber { background: var(--amber-tint); color: var(--amber); }
.pill-red { background: var(--red-tint); color: var(--red); }
.pill-green { background: var(--green-tint); color: var(--green); }
.pill-accent { background: var(--accent-tint); color: #A79CFF; }

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

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
}
.feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 19px; height: 19px; stroke: #A79CFF; }
.feature h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.feature p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Personas ---------- */
.persona-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.persona-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.persona-card.student { background: linear-gradient(160deg, #1B2E22, var(--surface) 60%); }
.persona-card.creator { background: linear-gradient(160deg, #2E2418, var(--surface) 60%); }
.persona-card.hustler { background: linear-gradient(160deg, #241C2E, var(--surface) 60%); }
.persona-glyph { font-size: 26px; margin-bottom: 16px; display: block; }
.persona-card h3 { font-size: 18px; margin: 0 0 10px; }
.persona-card ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; line-height: 1.8; }

@media (max-width: 860px) {
  .persona-tabs { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent-1);
  background: linear-gradient(180deg, rgba(124,111,245,0.08), var(--surface) 40%);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -12px; left: 22px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: white;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.price-name { font-size: 15px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }
.price-amount { font-family: var(--font-display); font-size: 34px; font-weight: 600; margin-bottom: 2px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text-faint); }
.price-desc { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-list li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 7px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 8px;
}
.price-list li:first-child { border-top: none; }
.price-list li svg { width: 14px; height: 14px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-btn {
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.price-card.featured .price-btn {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  color: white;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1B2E22, var(--surface));
  border: 1px solid var(--border-soft);
  padding: 64px 40px;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 14px;
}
.cta-band p { color: var(--text-dim); margin: 0 0 30px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 50px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-faint);
  font-size: 13.5px;
  max-width: 260px;
  margin: 12px 0 0;
}
.footer-cols { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Testimonials ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.review-stars svg { width: 15px; height: 15px; fill: var(--amber); }
.review-quote {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 20px;
}
.review-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
  flex-shrink: 0;
}
.review-name { font-size: 13.5px; font-weight: 600; }
.review-role { font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
}
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; transition: opacity 0.2s ease; }
.faq-item.open .faq-q .plus::after { opacity: 0; }
.faq-item.open .faq-q .plus { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner {
  padding: 0 4px 22px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 480px;
  margin: 0 auto 90px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.contact-icon svg { width: 24px; height: 24px; stroke: #A79CFF; }
.contact-card h3 { font-size: 19px; margin: 0 0 8px; }
.contact-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 22px; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
}
.contact-email:hover { border-color: var(--accent-1); }
.contact-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* ---------- Changelog ---------- */
.changelog {
  max-width: 720px;
  margin: 0 auto;
}
.changelog-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
}
.changelog-entry:first-child { border-top: none; padding-top: 0; }
.changelog-date {
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 3px;
}
.changelog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.tag-new { background: var(--green-tint); color: var(--green); }
.tag-improved { background: var(--accent-tint); color: #A79CFF; }
.tag-fixed { background: var(--amber-tint); color: var(--amber); }
.changelog-entry h3 { font-size: 18px; margin: 0 0 10px; }
.changelog-entry ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14.5px; line-height: 1.8; }

@media (max-width: 620px) {
  .changelog-entry { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 70px 0 100px; }
.legal-header { max-width: 720px; margin: 0 auto 50px; }
.legal-header .section-eyebrow { text-align: left; }
.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  margin: 8px 0 12px;
}
.legal-header .updated { color: var(--text-faint); font-size: 14px; }
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 15.5px;
}
.legal-body h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: #A79CFF; text-decoration: underline; }
.legal-note {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 36px;
}

/* ============================================================
   Scroll & load motion  (progressive enhancement)
   - Only active once JS adds .motion-on to <html>, so if JS
     is off or unsupported, nothing is ever hidden.
   - Fully disabled under prefers-reduced-motion.
   ============================================================ */

/* Elements JS tags to reveal as they scroll into view */
html.motion-on [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
html.motion-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance on page load */
@keyframes plnFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes plnFadeOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}
html.motion-on .hero .eyebrow { animation: plnFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both; }
html.motion-on .hero h1       { animation: plnFadeUp 0.75s 0.08s cubic-bezier(0.16,1,0.3,1) both; }
html.motion-on .hero .lead    { animation: plnFadeUp 0.75s 0.16s cubic-bezier(0.16,1,0.3,1) both; }
html.motion-on .hero-actions  { animation: plnFadeUp 0.75s 0.24s cubic-bezier(0.16,1,0.3,1) both; }
html.motion-on .hero-note     { animation: plnFadeUp 0.75s 0.32s cubic-bezier(0.16,1,0.3,1) both; }
/* Frame fades only — its transform is owned by the parallax script */
html.motion-on .frame         { animation: plnFadeOnly 0.9s 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html.motion-on [data-reveal],
  html.motion-on .hero .eyebrow,
  html.motion-on .hero h1,
  html.motion-on .hero .lead,
  html.motion-on .hero-actions,
  html.motion-on .hero-note,
  html.motion-on .frame {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
