/* ---------- wallposter.ai — editorial light theme ---------- */
:root {
  --brand-a: #6C63FF;
  --brand-b: #8B80FF;
  --brand-deep: #4338CA;
  --ink: #0B0B1A;
  --ink-2: #2A2A3C;
  --muted: #6B6B80;
  --muted-2: #9B9BAE;
  --line: #E9E7F5;
  --line-2: #F1EFFA;
  --bg: #FBFAFF;
  --bg-2: #F5F3FF;
  --card: #FFFFFF;
  --lav-1: #EFEBFF;
  --lav-2: #E2DBFF;
  --lav-3: #D6CCFF;
  --peach: #FFE7D6;
  --mint: #DDF4E7;
  --rose: #FFDCE6;
  --butter: #FFF2C7;
  --sky: #D8E8FF;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 12, 46, .04), 0 2px 6px rgba(17, 12, 46, .04);
  --shadow-md: 0 4px 10px rgba(76, 67, 223, .06), 0 20px 40px rgba(76, 67, 223, .08);
  --shadow-lg: 0 20px 60px rgba(76, 67, 223, .18), 0 8px 20px rgba(76, 67, 223, .1);
  --ff-display: 'Outfit', ui-sans-serif, -apple-system, sans-serif;
  --ff-body: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
}

/* ---------- dark mode theme ---------- */
[data-theme="dark"] {
  --ink: #EEEDF8;
  --ink-2: #C4C2DC;
  --muted: #7B7A95;
  --muted-2: #52506A;
  --line: #252240;
  --line-2: #1E1C34;
  --bg: #0F0E1C;
  --bg-2: #161428;
  --card: #1A1830;
  --lav-1: #1E1B38;
  --lav-2: #2A274C;
  --lav-3: #362E64;
  --peach: #3A2318;
  --mint: #142820;
  --rose: #3A1828;
  --butter: #2E2610;
  --sky: #152038;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, .4), 0 20px 40px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5), 0 8px 20px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.serif {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.mono {
  font-family: var(--ff-mono);
  letter-spacing: 0;
}

/* container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(251, 250, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 250, 255, 0.92);
}

[data-theme="dark"] .nav {
  background: rgba(15, 14, 28, 0.82);
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(15, 14, 28, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color .15s ease;
}

.nav-links a:hover {
  color: var(--brand-a);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s ease, background .15s ease;
}

.nav-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-cta {
  background: #fff;
  color: #0F0E1C;
}

[data-theme="dark"] .nav-cta:hover {
  background: var(--lav-2);
  color: var(--brand-a);
}

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

/* ----- theme toggle button ----- */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--lav-1);
  color: var(--brand-a);
  border-color: var(--lav-2);
  transform: rotate(15deg) scale(1.05);
}

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  z-index: 60;
  transition: width .1s linear;
  width: 0%;
}

/* ---------- generic ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--lav-1);
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--lav-2);
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-a);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, .18);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(108, 99, 255, .55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(108, 99, 255, .6);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

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

[data-theme="dark"] .btn-ghost {
  background: var(--card);
}

.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--brand-a);
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: #fff;
}

[data-theme="dark"] .footer {
  background: var(--card);
}

/* footer logo dark/light swap */
.footer-logo-dark {
  display: none;
}

[data-theme="dark"] .footer-logo-light {
  display: none;
}

[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.footer h4 {
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color .15s ease;
}

.footer-col a:hover {
  color: var(--brand-a);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 20px;
  max-width: 320px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--ink-2);
  transition: background .15s, color .15s;
}

.socials a:hover {
  background: var(--brand-a);
  color: #fff;
}