:root {
  --primary: #4f46e5;
  --primary-end: #7c3aed;
  --bg: #f7f8ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5f6b86;
  --border: #d9def7;
  --shadow: 0 20px 60px rgba(35, 38, 125, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    Inter,
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.24), transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(168, 85, 247, 0.24), transparent 34%),
    linear-gradient(180deg, #f4f5ff 0%, #f8f8ff 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.4) 72%, transparent 92%);
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-top: 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(31, 41, 55, 0.08);
}

.announcement {
  width: min(1140px, 92%);
  margin: 12px auto 8px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 14px;
  padding: 10px 14px;
  background: linear-gradient(
    120deg,
    rgba(79, 70, 229, 0.12),
    rgba(168, 85, 247, 0.14)
  );
  color: #2c2b5f;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.announcement a {
  color: #4338ca;
  font-weight: 700;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 16px rgba(79, 70, 229, 0.3));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #6f7aa3;
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 16px;
  color: var(--muted);
  align-items: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover {
  color: #25314d;
  background: rgba(79, 70, 229, 0.08);
}

.nav a:focus-visible,
.theme-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.78),
    0 0 0 4px rgba(79, 70, 229, 0.42);
}

.nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
  background: rgba(79, 70, 229, 0.12);
}

.hero {
  padding: 58px 0 34px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
}

.hero-card,
.glass-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(217, 222, 247, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-card {
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 22px 60px rgba(35, 38, 125, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(240, 244, 255, 0.62)),
    radial-gradient(circle at 85% 12%, rgba(99, 102, 241, 0.24), transparent 42%);
  border-color: rgba(188, 200, 255, 0.9);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42),
    rgba(255, 255, 255, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 28px;
}

.hero-copy {
  min-width: 0;
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 12px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.78rem;
  color: #3446d7;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(93, 109, 223, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

.ai-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ai-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2f3ec3;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.1));
  border-radius: 999px;
  padding: 5px 10px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.05rem;
  color: #2f3b56;
  max-width: 68ch;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

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

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--primary-end));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: #dce3ff;
  color: #24324f;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  align-items: stretch;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(179, 192, 255, 0.7);
  border-radius: 14px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-app-preview {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.hero-app-phone {
  width: min(260px, 100%);
  border-radius: 26px;
  padding: 10px;
  background: linear-gradient(145deg, #151b31, #27406f);
  box-shadow: 0 22px 56px rgba(22, 30, 57, 0.26);
  overflow: hidden;
  border: 1px solid rgba(150, 164, 230, 0.35);
  position: relative;
}

.hero-app-phone::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.hero-app-image {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 17px;
  background: #f2f4ff;
  overflow: hidden;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  z-index: 1;
  transform: scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-carousel-slide.is-active {
  display: block;
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.hero-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(199, 210, 254, 0.9);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel-dot.is-active {
  width: 19px;
  background: #4f46e5;
}

.stat {
  border: 0;
  border-radius: 11px;
  padding: 12px 12px 11px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.58), rgba(233, 239, 255, 0.52)),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1), transparent 48%);
  min-height: 96px;
  position: relative;
  box-shadow: 0 8px 18px rgba(39, 47, 91, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(39, 47, 91, 0.14);
}

.stat::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b5fc7, #8b5cf6);
  opacity: 0.9;
}

.stat strong {
  display: block;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
}

.stat .small {
  color: #3f4a66;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-top: 4px;
}

.section {
  padding: 40px 0;
}

.section-heading {
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(238, 243, 255, 0.62)),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.14), transparent 44%);
  border: 1px solid rgba(187, 198, 244, 0.88);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(24, 32, 56, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #aabcf8;
  box-shadow: 0 20px 42px rgba(34, 46, 87, 0.15);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.ai-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(176, 189, 246, 0.85);
  border-radius: 18px;
  padding: 10px;
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(38, 46, 82, 0.1);
}

.ai-flow-step {
  position: relative;
  border-radius: 12px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(194, 204, 246, 0.75);
}

.ai-flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6de0;
  font-size: 1.05rem;
  font-weight: 700;
  z-index: 3;
}

.ai-flow-step h3 {
  margin-top: 10px;
}

.ai-flow-step p {
  margin: 0;
  color: var(--muted);
}

.ai-flow-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #3446d7;
  border: 1px solid rgba(93, 109, 223, 0.35);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(99, 102, 241, 0.12);
}

.banner {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #d4dcff;
  background:
    linear-gradient(115deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12)),
    rgba(255, 255, 255, 0.78);
}

.list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
}

.policy-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.25rem;
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #1b6e38;
}

.form-status.is-error {
  color: #b42318;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d5dcfb;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: #1b2440;
  caret-color: #4f46e5;
}

input::placeholder,
textarea::placeholder {
  color: #7180a8;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(79, 70, 229, 0.22);
  border-color: #8b92ff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

[data-theme="dark"] .form-status.is-success {
  color: #8ce6b2;
}

[data-theme="dark"] .form-status.is-error {
  color: #ffb3b3;
}

[data-theme="dark"] label {
  color: #dbe4ff;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: rgba(14, 22, 42, 0.88);
  border-color: rgba(94, 114, 171, 0.82);
  color: #edf2ff;
  caret-color: #9fb0ff;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #9aa8cd;
}

body.theme-dark label {
  color: #dbe4ff;
}

body.theme-dark input,
body.theme-dark textarea {
  background: rgba(14, 22, 42, 0.88);
  border-color: rgba(94, 114, 171, 0.82);
  color: #edf2ff;
  caret-color: #9fb0ff;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: #9aa8cd;
}

body.theme-dark .form-status.is-success {
  color: #8ce6b2;
}

body.theme-dark .form-status.is-error {
  color: #ffb3b3;
}

.site-footer {
  margin-top: 36px;
  padding-bottom: 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border: 1px solid rgba(217, 222, 247, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .hero-layout,
  .policy-layout,
  .contact-layout,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-card,
  .hero-panel {
    padding: 24px 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .announcement {
    font-size: 0.84rem;
    padding: 9px 10px;
  }

  .nav {
    gap: 8px;
    font-size: 0.92rem;
    width: 100%;
    justify-content: flex-end;
  }

  .nav a {
    padding: 6px 8px;
  }
}

/* Phase 2 polish: theme, motion, and product showcase */
.theme-toggle {
  border: 1px solid rgba(126, 138, 235, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: #2a3553;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: min(7vw, 80px);
  top: -10px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  animation: drift 8s ease-in-out infinite;
}

.hero::after {
  width: 180px;
  height: 180px;
  left: min(4vw, 40px);
  bottom: -30px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 72%);
  animation: drift 10s ease-in-out infinite reverse;
}

.hero::selection {
  background: rgba(99, 102, 241, 0.22);
}

.hero-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.82;
  mix-blend-mode: normal;
}

.hero-network svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-network path {
  stroke-opacity: 0.9;
}

.hero-network .pulse {
  animation: pulseNode 3.4s ease-in-out infinite;
}

.hero-network .pulse-2 {
  animation-delay: 0.8s;
}

.hero-network .pulse-3 {
  animation-delay: 1.6s;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
}

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

.screenshot-card {
  border: 1px solid rgba(217, 222, 247, 0.95);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(24, 32, 56, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(24, 32, 56, 0.16);
}

.screenshot-frame {
  border-radius: 14px;
  background: linear-gradient(160deg, #e8edff, #f7f9ff 62%, #ffffff);
  padding: 10px;
}

.screenshot-image {
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px;
  border: 1px solid #d8def8;
  display: block;
}

.screenshot-card:nth-child(2) .screenshot-image {
  object-position: center top;
}

.screenshot-card:nth-child(3) .screenshot-image {
  object-position: center 18%;
}

.screenshot-card h3 {
  margin-top: 12px;
  margin-bottom: 4px;
}

.snapshot-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-icon-card {
  border: 1px solid rgba(186, 198, 246, 0.9);
  border-radius: 16px;
  padding: 18px 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(235, 241, 255, 0.6)),
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.12), transparent 50%);
  box-shadow: 0 10px 26px rgba(27, 35, 66, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snapshot-icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(27, 35, 66, 0.15);
}

.snapshot-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(112, 124, 226, 0.28);
  margin-bottom: 10px;
}

.store-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.store-actions.prominent {
  margin-top: 22px;
}

.store-badge {
  border-radius: 12px;
  border: 1px solid #d8def8;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: #b9c5f9;
}

.store-actions.prominent .store-badge {
  padding: 14px 18px;
  font-size: 0.98rem;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(32, 40, 72, 0.12);
}

.official-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 198px;
  background: linear-gradient(145deg, #0b0f1a, #121a2f);
  border-color: #1f2a47;
  color: #ffffff;
  padding: 11px 14px;
}

.official-badge:hover {
  border-color: #374a7f;
}

.store-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.play-icon {
  padding-left: 0;
}

.store-badge-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.official-badge:first-child .store-badge-icon svg {
  fill: #ffffff;
}

.store-badge-copy {
  display: grid;
  line-height: 1.05;
}

.store-badge-caption {
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  opacity: 0.86;
}

.store-badge-title {
  font-size: 1rem;
  font-weight: 700;
}

.phone-mockup {
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, #141a2f, #243760);
  box-shadow: 0 24px 80px rgba(16, 22, 45, 0.35);
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

.phone-screen {
  background: linear-gradient(180deg, #f0f2ff, #f9faff 64%, #ffffff);
  border-radius: 24px;
  padding: 18px;
  min-height: 430px;
}

.screen-chip {
  display: inline-block;
  background: rgba(79, 70, 229, 0.14);
  color: #4138ca;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.screen-card {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid #d7ddf8;
  background: #ffffff;
  padding: 14px;
}

.progress-track {
  margin-top: 12px;
  border-radius: 999px;
  height: 8px;
  background: #e4e8ff;
  overflow: hidden;
}

.progress-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
}

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

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

[data-theme="dark"] {
  --bg: #090d18;
  --surface: #0f1527;
  --text: #e8ecff;
  --muted: #a4b0cc;
  --border: #283251;
  --shadow: 0 20px 60px rgba(2, 5, 14, 0.55);
}

[data-theme="dark"],
[data-theme="dark"] body {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 6%, rgba(79, 70, 229, 0.22), transparent 42%),
    radial-gradient(circle at 85% 9%, rgba(168, 85, 247, 0.22), transparent 40%),
    linear-gradient(180deg, #070b16 0%, #0b1020 100%);
}

[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(136, 146, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 146, 255, 0.14) 1px, transparent 1px);
}

[data-theme="dark"] .header-inner,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .card,
[data-theme="dark"] .screenshot-card,
[data-theme="dark"] .screenshot-frame,
[data-theme="dark"] .footer-inner,
[data-theme="dark"] .banner,
[data-theme="dark"] .phone-screen,
[data-theme="dark"] .screen-card {
  background: rgba(14, 20, 38, 0.82);
  border-color: rgba(54, 71, 110, 0.85);
}

[data-theme="dark"] .hero-card {
  background:
    linear-gradient(160deg, rgba(14, 20, 38, 0.86), rgba(18, 28, 50, 0.84)),
    radial-gradient(circle at 85% 10%, rgba(108, 99, 255, 0.24), transparent 44%);
}

[data-theme="dark"] .hero-card::before {
  background: linear-gradient(
    145deg,
    rgba(151, 167, 255, 0.2),
    rgba(58, 70, 132, 0.08) 45%,
    transparent 70%
  );
}

[data-theme="dark"] .ai-flow {
  background: linear-gradient(120deg, rgba(74, 88, 164, 0.35), rgba(133, 88, 186, 0.26));
  border-color: rgba(89, 109, 168, 0.8);
}

[data-theme="dark"] .ai-flow-step {
  background: rgba(17, 26, 49, 0.66);
  border-color: rgba(84, 103, 159, 0.8);
}

[data-theme="dark"] .ai-flow-step:not(:last-child)::after {
  color: #98a9ff;
}

[data-theme="dark"] .ai-flow-tag {
  color: #d9e0ff;
  border-color: rgba(131, 146, 238, 0.55);
  background: rgba(99, 112, 194, 0.32);
}

[data-theme="dark"] .snapshot-icon-card {
  background: linear-gradient(150deg, rgba(16, 24, 45, 0.85), rgba(20, 29, 52, 0.82));
  border-color: rgba(87, 107, 171, 0.82);
}

[data-theme="dark"] .snapshot-icon {
  background: linear-gradient(135deg, rgba(91, 104, 189, 0.35), rgba(141, 98, 206, 0.35));
  border-color: rgba(121, 137, 219, 0.5);
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .store-badge,
[data-theme="dark"] .theme-toggle {
  background: rgba(19, 28, 50, 0.85);
  color: #d6ddf9;
  border-color: rgba(75, 96, 148, 0.7);
}

[data-theme="dark"] .official-badge {
  background: #0b0f1a;
  border-color: #33436f;
  color: #ffffff;
}

[data-theme="dark"] .ai-pill {
  color: #d2dbff;
  border-color: rgba(132, 147, 255, 0.45);
  background: linear-gradient(120deg, rgba(96, 108, 187, 0.24), rgba(148, 102, 219, 0.24));
}

[data-theme="dark"] .hero-app-phone {
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.45);
  border-color: rgba(145, 162, 236, 0.72);
}

[data-theme="dark"] .hero-app-phone::before {
  border-color: rgba(214, 224, 255, 0.46);
}

[data-theme="dark"] .hero-network {
  opacity: 0.85;
  mix-blend-mode: screen;
}

[data-theme="dark"] .hero-carousel-dot {
  background: rgba(93, 109, 153, 0.95);
}

[data-theme="dark"] .hero-carousel-dot.is-active {
  background: #8ea2ff;
}

[data-theme="dark"] .nav a:hover {
  background: rgba(84, 102, 181, 0.2);
}

[data-theme="dark"] .nav a {
  color: #cdd7ff;
  border: 1px solid transparent;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a:focus-visible {
  color: #f3f6ff;
  background: linear-gradient(120deg, rgba(112, 131, 229, 0.42), rgba(162, 113, 235, 0.4));
  border-color: rgba(171, 186, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(166, 182, 255, 0.32),
    0 12px 28px rgba(38, 56, 108, 0.52);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav a[aria-current="page"] {
  color: #e5ecff;
  background: linear-gradient(120deg, rgba(94, 112, 198, 0.26), rgba(136, 97, 198, 0.24));
  border-color: rgba(132, 149, 226, 0.56);
  box-shadow: 0 8px 18px rgba(42, 58, 103, 0.34);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .theme-toggle:focus-visible {
  color: #f5f7ff;
  background: linear-gradient(120deg, rgba(112, 131, 229, 0.44), rgba(162, 113, 235, 0.42));
  border-color: rgba(174, 188, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(166, 182, 255, 0.32),
    0 12px 28px rgba(38, 56, 108, 0.54);
  transform: translateY(-1px);
}

[data-theme="dark"] .screen-chip {
  background: rgba(130, 140, 255, 0.2);
  color: #d5dbff;
}

[data-theme="dark"] .kicker {
  background: linear-gradient(120deg, rgba(96, 108, 187, 0.32), rgba(148, 102, 219, 0.28));
  border-color: rgba(131, 146, 238, 0.55);
  color: #d9e0ff;
}

[data-theme="dark"] .stat {
  background:
    linear-gradient(165deg, rgba(18, 27, 49, 0.7), rgba(22, 33, 58, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(108, 99, 255, 0.16), transparent 50%);
}

[data-theme="dark"] .stats {
  background: linear-gradient(120deg, rgba(74, 88, 164, 0.34), rgba(133, 88, 186, 0.28));
  border-color: rgba(90, 111, 170, 0.72);
}

[data-theme="dark"] .stat::before {
  background: linear-gradient(90deg, #9aa8ff, #b68cff);
}

[data-theme="dark"] .stat strong {
  color: #e8ecff;
}

[data-theme="dark"] .progress-track {
  background: #2b3659;
}

[data-theme="dark"] .announcement {
  background: linear-gradient(
    120deg,
    rgba(79, 70, 229, 0.28),
    rgba(168, 85, 247, 0.28)
  );
  color: #dfe5ff;
  border-color: rgba(139, 149, 255, 0.45);
}

[data-theme="dark"] .announcement a {
  color: #c9d3ff;
}

body.theme-dark {
  color-scheme: dark;
  background:
    radial-gradient(circle at 8% 6%, rgba(79, 70, 229, 0.22), transparent 42%),
    radial-gradient(circle at 85% 9%, rgba(168, 85, 247, 0.22), transparent 40%),
    linear-gradient(180deg, #070b16 0%, #0b1020 100%);
}

body.theme-dark .header-inner,
body.theme-dark .hero-card,
body.theme-dark .glass-card,
body.theme-dark .card,
body.theme-dark .screenshot-card,
body.theme-dark .screenshot-frame,
body.theme-dark .footer-inner,
body.theme-dark .banner,
body.theme-dark .phone-screen,
body.theme-dark .screen-card {
  background: rgba(14, 20, 38, 0.82);
  border-color: rgba(54, 71, 110, 0.85);
}

body.theme-dark .btn-secondary,
body.theme-dark .store-badge,
body.theme-dark .theme-toggle {
  background: rgba(19, 28, 50, 0.85);
  color: #d6ddf9;
  border-color: rgba(75, 96, 148, 0.7);
}

body.theme-dark .official-badge {
  background: #0b0f1a;
  border-color: #33436f;
  color: #ffffff;
}

body.theme-dark .ai-pill {
  color: #d2dbff;
  border-color: rgba(132, 147, 255, 0.45);
  background: linear-gradient(120deg, rgba(96, 108, 187, 0.24), rgba(148, 102, 219, 0.24));
}

body.theme-dark .hero-app-phone {
  box-shadow: 0 24px 60px rgba(3, 8, 18, 0.45);
  border-color: rgba(145, 162, 236, 0.72);
}

body.theme-dark .hero-card::before {
  background: linear-gradient(
    145deg,
    rgba(151, 167, 255, 0.2),
    rgba(58, 70, 132, 0.08) 45%,
    transparent 70%
  );
}

body.theme-dark .hero-app-phone::before {
  border-color: rgba(214, 224, 255, 0.46);
}

body.theme-dark .hero-network {
  opacity: 0.85;
  mix-blend-mode: screen;
}

body.theme-dark .hero-carousel-dot {
  background: rgba(93, 109, 153, 0.95);
}

body.theme-dark .hero-carousel-dot.is-active {
  background: #8ea2ff;
}

body.theme-dark .nav a {
  color: #cdd7ff;
  border: 1px solid transparent;
}

body.theme-dark .nav a:hover,
body.theme-dark .nav a:focus-visible {
  color: #f3f6ff;
  background: linear-gradient(120deg, rgba(112, 131, 229, 0.42), rgba(162, 113, 235, 0.4));
  border-color: rgba(171, 186, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(166, 182, 255, 0.32),
    0 12px 28px rgba(38, 56, 108, 0.52);
  transform: translateY(-1px);
}

body.theme-dark .nav a[aria-current="page"] {
  color: #e5ecff;
  background: linear-gradient(120deg, rgba(94, 112, 198, 0.26), rgba(136, 97, 198, 0.24));
  border-color: rgba(132, 149, 226, 0.56);
  box-shadow: 0 8px 18px rgba(42, 58, 103, 0.34);
}

body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
  color: #f5f7ff;
  background: linear-gradient(120deg, rgba(112, 131, 229, 0.44), rgba(162, 113, 235, 0.42));
  border-color: rgba(174, 188, 255, 0.86);
  box-shadow:
    0 0 0 1px rgba(166, 182, 255, 0.32),
    0 12px 28px rgba(38, 56, 108, 0.54);
  transform: translateY(-1px);
}

body.theme-dark .announcement {
  background: linear-gradient(
    120deg,
    rgba(79, 70, 229, 0.28),
    rgba(168, 85, 247, 0.28)
  );
  color: #dfe5ff;
  border-color: rgba(139, 149, 255, 0.45);
}

body.theme-dark .announcement a {
  color: #c9d3ff;
}

body.theme-dark .stat {
  background:
    linear-gradient(165deg, rgba(18, 27, 49, 0.7), rgba(22, 33, 58, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(108, 99, 255, 0.16), transparent 50%);
}

body.theme-dark .stats {
  background: linear-gradient(120deg, rgba(74, 88, 164, 0.34), rgba(133, 88, 186, 0.28));
  border-color: rgba(90, 111, 170, 0.72);
}

body.theme-dark .ai-flow {
  background: linear-gradient(120deg, rgba(74, 88, 164, 0.35), rgba(133, 88, 186, 0.26));
  border-color: rgba(89, 109, 168, 0.8);
}

body.theme-dark .ai-flow-step {
  background: rgba(17, 26, 49, 0.66);
  border-color: rgba(84, 103, 159, 0.8);
}

body.theme-dark .ai-flow-step:not(:last-child)::after {
  color: #98a9ff;
}

body.theme-dark .ai-flow-tag {
  color: #d9e0ff;
  border-color: rgba(131, 146, 238, 0.55);
  background: rgba(99, 112, 194, 0.32);
}

body.theme-dark .snapshot-icon-card {
  background: linear-gradient(150deg, rgba(16, 24, 45, 0.85), rgba(20, 29, 52, 0.82));
  border-color: rgba(87, 107, 171, 0.82);
}

body.theme-dark .snapshot-icon {
  background: linear-gradient(135deg, rgba(91, 104, 189, 0.35), rgba(141, 98, 206, 0.35));
  border-color: rgba(121, 137, 219, 0.5);
}

body.theme-dark .stat::before {
  background: linear-gradient(90deg, #9aa8ff, #b68cff);
}

body.theme-dark .kicker {
  background: linear-gradient(120deg, rgba(96, 108, 187, 0.32), rgba(148, 102, 219, 0.28));
  border-color: rgba(131, 146, 238, 0.55);
  color: #d9e0ff;
}

body.theme-dark .stat strong {
  color: #e8ecff;
}

body.theme-dark .lead,
body.theme-dark .brand-name,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
  color: #e8ecff;
}

body.theme-dark .muted,
body.theme-dark .small,
body.theme-dark .card p {
  color: #a4b0cc;
}

body.theme-dark .brand-tagline {
  color: #9aa8d3;
}

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

  .screenshot-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 80%);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .snapshot-icon-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-layout {
    grid-template-columns: 1fr;
  }

  .hero-app-preview {
    justify-content: center;
    margin-top: 12px;
  }

  .ai-flow {
    grid-template-columns: 1fr;
  }

  .ai-flow-step:not(:last-child)::after {
    content: "↓";
    right: 50%;
    top: calc(100% + 7px);
    transform: translateX(50%);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.06);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

@keyframes pulseNode {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.22);
  }
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
