:root {
  color-scheme: light dark;
  --background: #f4f5f8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #15161a;
  --secondary: #626773;
  --line: rgba(100, 55, 155, 0.18);
  --purple: #7b3fb0;
  --purple-dark: #5e268e;
  --teal: #168e91;
  --red: #d6424b;
  --green: #318c58;
  --gold: #b57916;
  --shadow: 0 18px 50px rgba(35, 22, 52, 0.09);
  --radius-large: 28px;
  --radius-card: 20px;
  --page-width: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(105, 86, 126, 0.12);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(60, 23, 91, 0.25);
}

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

.nav-links a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(123, 63, 176, 0.1);
  color: var(--purple);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-left: 3px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle:hover { background: rgba(123, 63, 176, 0.1); color: var(--purple); }
.theme-toggle:focus-visible { outline: 3px solid rgba(123, 63, 176, 0.34); outline-offset: 3px; }

main {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  padding: 66px 0 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 18px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(123, 63, 176, 0.08);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; }

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.038em;
  word-spacing: 0.045em;
}

h1 span { display: block; }

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: clamp(1.08rem, 2.3vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
.nav-links a:focus-visible,
.text-link:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(123, 63, 176, 0.34);
  outline-offset: 3px;
}

.button-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 28px rgba(92, 38, 140, 0.24);
}

.button-primary:hover { background: var(--purple-dark); }

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.app-icon-stage {
  width: min(100%, 400px);
  min-height: 360px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 34px);
}

.app-icon-stage .app-icon {
  width: min(100%, 300px);
  margin: 0 auto;
}

.app-icon {
  border-radius: 25%;
  box-shadow: 0 24px 54px rgba(55, 23, 79, 0.26);
}

.section { padding: 66px 0; }

.section-heading {
  max-width: 670px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 5vw, 3.7rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-heading p,
.page-hero p {
  margin: 14px 0 0;
  color: var(--secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card { padding: 22px; }

.feature-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 10px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--accent, var(--purple));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 900;
}

.feature-card p { margin: 0; color: var(--secondary); font-size: 0.95rem; }

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 3vw, 28px);
}

.phone-shot {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border: 7px solid #181922;
  border-radius: clamp(28px, 4vw, 45px);
  background: var(--surface-strong);
  box-shadow: 0 25px 60px rgba(26, 19, 34, 0.16);
}

.app-capture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-feature { min-width: 0; margin: 0; }
.screen-caption { padding: 18px 8px 0; }
.screen-caption h3 { margin: 0 0 7px; font-size: 1.08rem; font-weight: 900; }
.screen-caption p { margin: 0; color: var(--secondary); font-size: 0.88rem; line-height: 1.48; }

.capture-dark { display: none; }

:root[data-theme="dark"] .capture-light { display: none; }
:root[data-theme="dark"] .capture-dark { display: block; }
:root[data-theme="light"] .capture-light { display: block; }
:root[data-theme="light"] .capture-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .capture-light { display: none; }
  :root:not([data-theme="light"]) .capture-dark { display: block; }
}

.shot-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 42px) clamp(20px, 3vw, 30px);
  text-align: left;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
}

.shot-kicker {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.shot-preview strong { font-size: clamp(1.08rem, 2.1vw, 1.36rem); line-height: 1.12; }
.shot-preview span { color: var(--secondary); font-size: 0.82rem; }

.preview-line {
  display: block;
  width: 78%;
  height: 9px;
  margin-top: 2px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.preview-line-wide { width: 100%; margin-top: 12px; }
.preview-line-short { width: 54%; }

.appearance-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 7vw, 76px);
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.appearance-copy { max-width: 610px; }
.appearance-copy h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.04em; }
.appearance-copy > p:last-child { margin: 14px 0 0; color: var(--secondary); }
.appearance-preview { display: grid; grid-template-columns: repeat(2, 112px); gap: 12px; }
.appearance-choice { min-height: 126px; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 22px; }
.appearance-choice i { font-style: normal; font-size: 2rem; line-height: 1; }
.appearance-choice strong { font-size: 0.86rem; }
.appearance-choice-light { border: 1px solid rgba(86, 62, 112, 0.14); background: #f7f7fb; color: #17181d; }
.appearance-choice-dark { border: 1px solid rgba(205, 167, 235, 0.18); background: #111217; color: #f5f3f7; }

.pro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 220px minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(26px, 6vw, 54px);
  border: 1px solid rgba(123, 63, 176, 0.22);
  border-radius: var(--radius-large);
  background: color-mix(in srgb, var(--surface-strong) 94%, var(--purple) 6%);
  box-shadow: var(--shadow);
}

.pro-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pro-copy > p:not(.eyebrow) { margin: 18px 0; color: var(--secondary); }
.pro-link { display: inline-block; margin-top: 4px; }

.pro-showcase { width: 100%; justify-self: center; }
.pro-features { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pro-features article {
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.pro-features strong { display: block; margin-bottom: 6px; line-height: 1.2; }
.pro-features span { display: block; color: var(--secondary); font-size: 0.88rem; line-height: 1.45; }

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius-large);
  background: #64309a;
  color: #fff;
  box-shadow: 0 24px 60px rgba(82, 37, 123, 0.25);
}

.callout h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 950; letter-spacing: -0.035em; }
.callout p { max-width: 600px; margin: 0; color: rgba(255,255,255,0.82); }
.callout .button { background: #fff; color: #4f2478; }

.page-hero {
  padding: 74px 0 34px;
  max-width: 760px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
  padding-bottom: 76px;
}

.content-stack { display: grid; gap: 16px; }
.content-card { padding: clamp(20px, 4vw, 30px); }
.content-card h2 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 900; }
.content-card h3 { margin: 24px 0 8px; font-size: 1.05rem; }
.content-card p { margin: 0 0 14px; color: var(--secondary); }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul { margin: 10px 0 0; padding-left: 22px; color: var(--secondary); }
.content-card li + li { margin-top: 8px; }

.side-nav { position: sticky; top: 88px; padding: 18px; }
.side-nav strong { display: block; margin-bottom: 9px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--secondary); }
.side-nav a { display: block; padding: 7px 8px; border-radius: 9px; color: var(--secondary); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.side-nav a:hover { background: rgba(123, 63, 176, 0.08); color: var(--purple); }

.text-link { color: var(--purple); font-weight: 800; text-underline-offset: 3px; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-card p { margin: 4px 0 0; }

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:first-of-type { border-top: 0; padding-top: 0; }
details:last-child { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 850; }
details p { margin-top: 10px !important; }

.release-list { display: grid; gap: 16px; padding-bottom: 76px; }
.release-card { padding: clamp(21px, 4vw, 30px); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.release-meta h2 { margin: 0; font-size: 1.42rem; font-weight: 950; }
.release-date { color: var(--secondary); font-size: 0.9rem; font-weight: 700; }
.current-badge { padding: 4px 9px; border-radius: 999px; background: rgba(123,63,176,0.11); color: var(--purple); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }
.release-card p { color: var(--secondary); }
.release-card ul { margin: 14px 0 0; padding-left: 22px; color: var(--secondary); }

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 52%, transparent);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: 34px 0 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  align-items: start;
}

.footer-inner p { max-width: 640px; margin: 6px 0 0; color: var(--secondary); font-size: 0.8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: var(--secondary); font-size: 0.85rem; font-weight: 750; }
.footer-social {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer-social span { color: var(--secondary); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-social a { color: var(--secondary); font-size: 0.82rem; font-weight: 750; text-underline-offset: 3px; }
.footer-social a:hover { color: var(--purple); }
.copyright { grid-column: 1 / -1; margin: 0 !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #08090c;
    --surface: rgba(28, 28, 34, 0.82);
    --surface-strong: #18191f;
    --text: #f5f4f7;
    --secondary: #b1adb8;
    --line: rgba(190, 146, 229, 0.2);
    --purple: #b46ee6;
    --purple-dark: #9d58d0;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  }
  :root:not([data-theme="light"]) .button-primary { color: #14081d; }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #08090c;
  --surface: rgba(28, 28, 34, 0.82);
  --surface-strong: #18191f;
  --text: #f5f4f7;
  --secondary: #b1adb8;
  --line: rgba(190, 146, 229, 0.2);
  --purple: #b46ee6;
  --purple-dark: #9d58d0;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .button-primary { color: #14081d; }

@media (max-width: 760px) {
  .nav { min-height: 62px; }
  .nav-links a:not(.nav-essential) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; text-align: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .app-icon-stage { width: min(86vw, 390px); min-height: 320px; }
  .feature-grid { grid-template-columns: 1fr; }
  .appearance-callout { grid-template-columns: 1fr; }
  .screenshots { grid-template-columns: repeat(3, 76vw); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 6vw 30px; margin-inline: -16px; }
  .screen-feature { scroll-snap-align: center; }
  .callout { grid-template-columns: 1fr; }
  .pro-panel { grid-template-columns: 1fr; }
  .pro-showcase { width: min(68vw, 280px); }
  .content-grid { grid-template-columns: 1fr; }
  .side-nav { display: none; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.62rem; }
  .appearance-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
