:root {
  color-scheme: light;
  --bg: #eef3ff;
  --bg-secondary: #e6edff;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --surface-border: rgba(255, 255, 255, 0.55);
  --text: #0f172a;
  --text-soft: #475569;
  --accent: #13b76b;
  --accent-strong: #089457;
  --accent-contrast: #f4fff9;
  --shadow: 0 28px 80px rgba(30, 41, 59, 0.14);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1200px;
}

body.dark {
  color-scheme: dark;
  --bg: #07111f;
  --bg-secondary: #0c1830;
  --surface: rgba(10, 20, 37, 0.52);
  --surface-strong: rgba(11, 20, 36, 0.74);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #edf4ff;
  --text-soft: #b6c2d9;
  --accent: #32d488;
  --accent-strong: #14b86d;
  --accent-contrast: #03160d;
  --shadow: 0 28px 80px rgba(2, 8, 23, 0.45);
  --shadow-soft: 0 18px 40px rgba(2, 8, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.2), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  color: var(--text);
  min-width: 320px;
  transition: background 0.35s ease, color 0.35s ease;
}

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

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.bg-k {
  position: fixed;
  font-size: clamp(10rem, 22vw, 22rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(19, 183, 107, 0.14);
  text-shadow: 0 0 40px rgba(19, 183, 107, 0.14);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  animation: rotateK 24s linear infinite;
}

.k-one {
  top: 90px;
  left: -10px;
  transform: rotate(-18deg);
}

.k-two {
  top: 420px;
  right: -20px;
  transform: rotate(14deg);
  animation-duration: 32s;
}

.k-three {
  bottom: 80px;
  left: 44%;
  transform: rotate(-10deg);
  animation-duration: 28s;
}

@keyframes rotateK {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

.site-header,
.section,
.site-footer,
.trust-strip {
  position: relative;
  z-index: 2;
}

.site-header,
.section,
.site-footer,
.section-tight {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

#demo.section {
  width: min(calc(100% - 32px), 1560px);
}

.site-header {
  position: sticky;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(231, 239, 252, 0.96));
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: saturate(150%);
  -webkit-backdrop-filter: saturate(150%);
  z-index: 200;
  pointer-events: auto;
}

body.dark .site-header {
  background: linear-gradient(180deg, rgba(9, 18, 33, 0.98), rgba(12, 24, 48, 0.96));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.44);
}

.glass {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.glass-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.45));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 30px rgba(15, 23, 42, 0.08);
}

body.dark .glass-inline {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-favicon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(8, 148, 87, 0.22);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a,
.footer-grid a {
  color: var(--text-soft);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav a:hover,
.footer-grid a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.glass-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.35));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), var(--shadow-soft);
  border-radius: 999px;
}

body.dark .glass-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
}

.theme-toggle-track {
  display: inline-flex;
  width: 58px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

body.dark .theme-toggle-track {
  background: rgba(255,255,255,0.08);
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dbeafe);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  transition: transform 0.3s ease;
}

body.dark .theme-toggle-thumb {
  transform: translateX(28px);
  background: linear-gradient(180deg, #d9f99d, #86efac);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 32px rgba(8, 148, 87, 0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

body.dark .button-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.button-large {
  min-height: 56px;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 16px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding-top: 48px;
}

.eyebrow,
.mini-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.final-cta-card h2 {
  margin: 18px 0 16px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

.hero-lead,
.section-heading p,
.feature-card p,
.stack-item p,
.insight-panel p,
.scenario-card p,
.trust-card p,
.plan-card p,
.preview-card figcaption,
.faq-item p,
.footer-copy,
.footer-bottom,
.final-cta-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 22px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.plan-card li,
.insight-panel li,
.footer-grid li {
  position: relative;
  padding-left: 22px;
}

.hero-points li::before,
.plan-card li::before,
.insight-panel li::before,
.footer-grid li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px rgba(19, 183, 107, 0.14);
}

.hero-visual {
  padding: 20px;
  position: relative;
}

.hero-visual::before,
.hero-visual::after,
.feature-card::before,
.plan-card::before,
.preview-card::before,
.trust-card::before,
.scenario-card::before,
.stack-item::before,
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 24%, transparent 70%, rgba(255,255,255,0.18));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-visual-top,
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: var(--shadow-soft);
  color: var(--text-soft);
}

.status-pill.safe {
  color: var(--accent-strong);
  font-weight: 700;
}

.dashboard-card {
  margin: 18px 0;
  padding: 24px;
  position: relative;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.dashboard-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}

.score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--accent-strong);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.92), rgba(255,255,255,0.5) 35%, rgba(19, 183, 107, 0.18) 72%, rgba(19, 183, 107, 0.34) 100%);
  box-shadow: inset 0 2px 12px rgba(255,255,255,0.9), 0 18px 35px rgba(19, 183, 107, 0.2);
}

.dashboard-grid,
.cards-grid,
.plan-grid,
.preview-grid,
.trust-cards,
.scenario-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid {
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid article,
.stat,
.feature-card,
.stack-item,
.insight-panel,
.scenario-card,
.trust-card,
.plan-card,
.preview-card,
.faq-item,
.final-cta-card {
  position: relative;
}

.dashboard-grid article,
.stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.38);
}

.dashboard-grid p,
.stat span {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.dashboard-grid strong,
.stat strong {
  font-size: 1rem;
  line-height: 1.5;
}

.hero-stats .stat {
  flex: 1 1 220px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 22px;
}

.trust-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
}

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

.section-heading h2,
.final-cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.benefits-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.stack-item,
.insight-panel,
.scenario-card,
.trust-card,
.plan-card,
.preview-card {
  padding: 24px;
}

.feature-card h3,
.stack-item h3,
.insight-panel h3,
.scenario-card h3,
.trust-card h3,
.plan-card h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.stack-list {
  display: grid;
  gap: 18px;
}

.insight-panel ul,
.plan-card ul,
.footer-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.scenario-grid,
.trust-cards,
.preview-grid,
.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-plan-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.single-plan-card {
  margin-inline: auto;
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-inline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
}

.trust-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.trust-inline strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.trust-inline p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.trust-button {
  white-space: nowrap;
}

.platform-trust {
  margin-top: 18px;
}

.plan-card .button {
  margin-top: auto;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-content: center;
}

.platform-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.platform-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.platform-content p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.platform-icon {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.34));
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 18px 32px rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}

body.dark .platform-icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.12);
}

.platform-icon-windows span {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.22);
}

.platform-icon-windows span:nth-child(1) {
  top: 20px;
  left: 20px;
}

.platform-icon-windows span:nth-child(2) {
  top: 20px;
  right: 20px;
}

.platform-icon-windows span:nth-child(3) {
  bottom: 20px;
  left: 20px;
}

.platform-icon-windows span:nth-child(4) {
  bottom: 20px;
  right: 20px;
}

.android-head,
.android-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.android-head {
  top: 18px;
  width: 38px;
  height: 24px;
  border-radius: 20px 20px 10px 10px;
}

.android-head::before,
.android-head::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 2px;
  height: 10px;
  background: #16a34a;
  border-radius: 999px;
}

.android-head::before {
  left: 8px;
  rotate: -22deg;
}

.android-head::after {
  right: 8px;
  rotate: 22deg;
}

.android-body {
  top: 42px;
  width: 42px;
  height: 26px;
  border-radius: 0 0 12px 12px;
}

.android-body::before,
.android-body::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 18px;
  background: #16a34a;
  border-radius: 999px;
}

.android-body::before {
  left: -8px;
}

.android-body::after {
  right: -8px;
}

.plan-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19, 183, 107, 0.14);
  color: var(--accent-strong);
  font-weight: 700;
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.54));
}

body.dark .plan-card.featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(11, 20, 36, 0.74));
}

.preview-card {
  display: grid;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.preview-image {
  width: 100%;
  min-height: 560px;
  height: 100%;
  aspect-ratio: 16 / 12;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  padding: 0;
  background: rgba(255,255,255,0.3);
  border: 0;
  box-shadow: none;
}

.preview-card figcaption {
  padding: 0 24px 24px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
}

.final-cta-card {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  margin-bottom: 24px;
  padding: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 14px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 0.94rem;
}

.footer-bottom p:last-child {
  font-size: 0.47rem;
  line-height: 1.45;
  max-width: 70ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .split-layout,
  .final-cta-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .trust-grid,
  .scenario-grid,
  .trust-cards,
  .plan-grid,
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    justify-content: center;
  }

  .dashboard-grid,
  .benefits-grid,
  .trust-grid,
  .scenario-grid,
  .trust-cards,
  .plan-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid,
  .compact-actions {
    grid-template-columns: 1fr;
  }

  .platform-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .trust-inline {
    grid-template-columns: auto 1fr;
  }

  .trust-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    max-width: none;
  }

  .site-header,
  .section,
  .site-footer,
  .section-tight {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-footer,
  .final-cta-card,
  .hero-visual,
  .dashboard-card,
  .feature-card,
  .stack-item,
  .insight-panel,
  .scenario-card,
  .trust-card,
  .plan-card,
  .preview-card {
    border-radius: 24px;
  }

  .preview-card {
    padding: 16px;
    gap: 14px;
  }

  .preview-image {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255,255,255,0.18);
  }

  .preview-card figcaption {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .download-actions,
  .hero-actions,
  .final-actions {
    flex-direction: column;
  }

  .button,
  .button-large {
    width: 100%;
  }

  .faq-item summary {
    padding: 18px 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }

  .site-footer,
  .final-cta-card,
  .hero-visual,
  .dashboard-card,
  .feature-card,
  .stack-item,
  .insight-panel,
  .scenario-card,
  .trust-card,
  .plan-card,
  .preview-card,
  .site-header {
    border-radius: 20px;
  }

  .preview-card {
    padding: 12px;
    gap: 12px;
  }

  .preview-image {
    aspect-ratio: auto;
    max-height: 68vh;
    border-radius: 16px;
  }

  .preview-card figcaption {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
