:root {
  color-scheme: dark;
  --bg: #040914;
  --surface: rgba(10, 20, 36, 0.82);
  --surface-border: rgba(148, 174, 221, 0.18);
  --surface-border-strong: rgba(145, 181, 255, 0.28);
  --text: #f4f8ff;
  --text-muted: #9cb0d0;
  --text-soft: #7e93b3;
  --accent: #5ea6ff;
  --accent-strong: #7b61ff;
  --accent-green: #3ed9a3;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --content: 1200px;
  --header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 166, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(123, 97, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #040914 0%, #07111f 40%, #050c18 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
select {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
  line-height: 1.7;
}

svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #04101e;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

.background-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.72;
}

.glow-1 {
  top: 2rem;
  left: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(80, 140, 255, 0.25);
}

.glow-2 {
  top: 14rem;
  right: -10rem;
  width: 26rem;
  height: 26rem;
  background: rgba(123, 97, 255, 0.24);
}

.grid-haze {
  position: absolute;
  top: 4rem;
  left: 50%;
  width: min(80rem, 100vw);
  height: 80rem;
  transform: translateX(-50%);
  background-image:
    linear-gradient(rgba(119, 149, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 149, 200, 0.08) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.95), transparent 72%);
}

.section,
.site-header,
.site-footer {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0 1.15rem;
  border: 1px solid rgba(141, 170, 231, 0.1);
  border-radius: 999px;
  background: rgba(4, 9, 20, 0.5);
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(6, 13, 25, 0.8);
  border-color: rgba(150, 181, 244, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.brand,
.desktop-nav,
.header-actions,
.hero-actions,
.trust-line,
.footer-links,
.support-actions,
.platform-card-top,
.feature-card-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.desktop-nav {
  gap: 1.35rem;
}

.desktop-nav a,
.footer-links a {
  color: var(--text-muted);
  transition: color 160ms ease;
}

.footer-disabled-link {
  color: var(--text-soft);
  opacity: 0.9;
}

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

.header-actions {
  gap: 0.8rem;
}

.language-field,
.field-label {
  color: var(--text-muted);
}

.language-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.language-field select {
  min-width: 8rem;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  border: 1px solid rgba(145, 181, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%) calc(100% - 1rem) calc(50% - 0.12rem) / 0.42rem 0.42rem no-repeat,
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%) calc(100% - 0.72rem) calc(50% - 0.12rem) / 0.42rem 0.42rem no-repeat,
    linear-gradient(180deg, rgba(16, 29, 48, 0.9), rgba(11, 20, 34, 0.9));
  appearance: none;
}

.button,
.menu-toggle,
.menu-close {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 42px rgba(91, 131, 255, 0.28);
}

.button-secondary {
  border: 1px solid rgba(145, 181, 255, 0.22);
  background: rgba(12, 24, 42, 0.78);
  color: var(--text);
}

.button-disabled {
  cursor: default;
  color: var(--text-soft);
  background: rgba(17, 28, 44, 0.62);
  border: 1px solid rgba(125, 147, 184, 0.14);
}

.button-compact {
  min-height: 2.9rem;
  padding-inline: 1.2rem;
}

.button:hover,
.button:focus-visible,
.menu-toggle:hover,
.menu-close:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.desktop-nav a:focus-visible,
.footer-links a:focus-visible,
.language-field select:focus-visible,
.mobile-nav a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(124, 181, 255, 0.95);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: rgba(11, 22, 38, 0.92);
  border: 1px solid rgba(145, 181, 255, 0.14);
}

.menu-toggle span,
.menu-close span {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) { top: 0.95rem; }
.menu-toggle span:nth-child(2) { top: 1.45rem; }
.menu-toggle span:nth-child(3) { top: 1.95rem; }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(3, 6, 12, 0.68);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  width: min(24rem, 88vw);
  height: 100dvh;
  padding: 1rem;
}

.mobile-drawer-inner {
  display: grid;
  gap: 1.5rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--surface-border-strong);
  border-radius: 2rem;
  background: rgba(6, 13, 25, 0.96);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-title,
.footer-brand {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.menu-close {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(12, 22, 38, 1);
  border: 1px solid rgba(145, 181, 255, 0.14);
}

.menu-close span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav,
.mobile-cta-stack {
  display: grid;
  gap: 0.8rem;
}

.mobile-nav a {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  color: var(--text-muted);
  background: rgba(12, 24, 42, 0.62);
}

.mobile-language-field {
  display: grid;
  gap: 0.5rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 1.05fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - var(--header-height) - 2rem);
  padding-top: 3.5rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(99, 150, 255, 0.22);
  border-radius: 999px;
  color: #bdd5ff;
  background: rgba(12, 24, 42, 0.65);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}

.hero-copy,
.support-panel,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.hero-copy h1,
.legal-hero h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.96;
}

.section-heading h2,
.support-panel h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.02;
}

.section-copy,
.hero-copy-text,
.hero-bullets,
.footer-copy {
  color: var(--text-muted);
  font-size: 1.06rem;
}

.hero-actions {
  gap: 0.9rem;
  flex-wrap: wrap;
}

.trust-line {
  gap: 1rem;
  flex-wrap: wrap;
  color: #c6d7f3;
  font-size: 0.95rem;
}

.trust-line span {
  position: relative;
  padding-left: 1rem;
}

.trust-line span::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-green));
}

.hero-bullets {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-bullets li {
  position: relative;
  padding-left: 1.25rem;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(94, 166, 255, 0.9);
  box-shadow: 0 0 18px rgba(94, 166, 255, 0.7);
}

.hero-showcase {
  position: relative;
  min-height: 43rem;
}

.showcase-orbit {
  position: absolute;
  inset: 10% 8% auto auto;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(132, 165, 226, 0.12);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(94, 166, 255, 0.14), transparent 70%);
  filter: blur(2px);
}

.device-frame,
.glass-card {
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(7, 15, 28, 0.92));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.device-frame {
  position: absolute;
  overflow: hidden;
}

.desktop-frame {
  inset: 0 4rem 5rem 0;
  border-radius: 1.8rem;
  padding: 1rem;
}

.phone-frame {
  right: 0;
  bottom: 0;
  width: min(18rem, 40%);
  border-radius: 2.6rem;
  padding: 3.2rem 0.85rem 0.9rem;
}

.device-topbar {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.85rem;
}

.device-topbar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(173, 193, 226, 0.22);
}

.phone-notch {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  width: 34%;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(180, 198, 231, 0.2);
  transform: translateX(-50%);
}

.placeholder-badge,
.status-badge,
.platform-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.placeholder-badge {
  color: #d9e5ff;
  background: rgba(21, 37, 63, 0.84);
}

.status-badge {
  color: #03111f;
  background: linear-gradient(135deg, #9cd0ff, #77ffca);
}

.platform-label {
  color: #bfd6ff;
  background: rgba(17, 31, 52, 0.8);
}

.desktop-placeholder,
.phone-placeholder,
.placeholder-content,
.placeholder-row,
.placeholder-sidebar {
  display: grid;
  gap: 0.95rem;
}

.desktop-placeholder {
  grid-template-columns: 12rem 1fr;
  min-height: 30rem;
}

.placeholder-sidebar {
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(12, 24, 42, 0.72);
}

.placeholder-pill,
.placeholder-line,
.placeholder-chip-row span {
  background: linear-gradient(90deg, rgba(94, 166, 255, 0.26), rgba(255, 255, 255, 0.08), rgba(123, 97, 255, 0.24));
  background-size: 220% 100%;
  animation: shimmer 7s linear infinite;
}

.placeholder-pill {
  height: 2.5rem;
  border-radius: 999px;
}

.placeholder-pill.wide {
  width: 85%;
}

.placeholder-card {
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(12, 24, 42, 0.76);
}

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

.list-card {
  min-height: 12rem;
}

.placeholder-line {
  height: 0.8rem;
  border-radius: 999px;
}

.placeholder-line.short { width: 36%; }
.placeholder-line.medium { width: 58%; }
.placeholder-line.long { width: 100%; }

.chart-card {
  min-height: 13rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 100%;
  min-height: 10rem;
}

.chart-bars span {
  flex: 1;
  border-radius: 999px 999px 0.8rem 0.8rem;
  background: linear-gradient(180deg, rgba(117, 171, 255, 0.95), rgba(123, 97, 255, 0.3));
  box-shadow: 0 0 20px rgba(94, 166, 255, 0.2);
}

.phone-placeholder {
  gap: 0.8rem;
}

.phone-card,
.phone-chart,
.phone-list {
  min-height: 7rem;
}

.placeholder-chip-row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.placeholder-chip-row span {
  width: 2.7rem;
  height: 1.7rem;
  border-radius: 999px;
}

.chart-ring {
  width: 4.8rem;
  height: 4.8rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  border: 0.65rem solid rgba(123, 97, 255, 0.22);
  border-top-color: rgba(94, 166, 255, 0.9);
  border-right-color: rgba(62, 217, 163, 0.76);
}

.feature-grid,
.steps-grid,
.platform-grid,
.privacy-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.feature-card,
.step-card,
.platform-card,
.privacy-card,
.support-panel,
.legal-card,
.faq-item {
  border-radius: var(--radius-lg);
}

.feature-card,
.step-card,
.platform-card,
.privacy-card,
.legal-card {
  padding: 1.35rem;
}

.feature-card {
  display: grid;
  gap: 0.8rem;
}

.feature-card h3,
.step-card h3,
.platform-card h3,
.privacy-card h3,
.faq-item summary,
.legal-card h2 {
  font-size: 1.2rem;
}

.feature-card p,
.step-card p,
.platform-card p,
.privacy-card p,
.faq-item p,
.legal-card p {
  color: var(--text-muted);
}

.step-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #bdd5ff;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.platform-card-primary {
  background: linear-gradient(180deg, rgba(24, 52, 95, 0.92), rgba(10, 19, 35, 0.92));
}

.platform-card.is-disabled {
  opacity: 0.86;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
}

.support-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

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

.faq-item summary {
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  list-style: none;
}

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

.faq-item p {
  padding: 0 1.35rem 1.25rem;
}

.faq-item[open] summary {
  border-bottom: 1px solid rgba(145, 181, 255, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.2rem;
  padding: 0 0 3rem;
}

.footer-links {
  gap: 1rem;
  justify-self: center;
  flex-wrap: wrap;
}

.footer-language-field {
  justify-self: end;
}

.legal-main {
  min-height: calc(100vh - 13rem);
}

.legal-hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.legal-grid {
  padding-top: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -40% 0; }
}

@media (max-width: 1120px) {
  .hero-section,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 40rem;
  }

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

  .steps-grid,
  .privacy-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .support-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-language-field {
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-actions .button-compact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-showcase {
    min-height: 34rem;
  }

  .desktop-frame {
    inset: 0 2rem 4rem 0;
  }
}

@media (max-width: 720px) {
  .section,
  .site-header,
  .site-footer {
    width: min(calc(100% - 1rem), var(--content));
  }

  .section {
    padding: 4rem 0;
  }

  .header-inner {
    min-height: 4.6rem;
    border-radius: 1.6rem;
  }

  .site-header {
    padding-top: 0.6rem;
  }

  .hero-section {
    gap: 2rem;
    padding-top: 2.4rem;
  }

  .hero-copy h1,
  .legal-hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-actions,
  .support-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-showcase {
    min-height: 28rem;
  }

  .desktop-frame {
    position: relative;
    inset: auto;
    margin-right: 3rem;
  }

  .phone-frame {
    width: 12rem;
  }

  .desktop-placeholder {
    grid-template-columns: 1fr;
  }

  .placeholder-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .placeholder-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .phone-frame {
    right: -0.4rem;
    bottom: -1.4rem;
    width: 10rem;
  }

  .platform-card,
  .feature-card,
  .step-card,
  .privacy-card,
  .support-panel,
  .legal-card,
  .faq-item {
    border-radius: 1.3rem;
  }

  .trust-line {
    display: grid;
    gap: 0.55rem;
  }

  .trust-line span {
    padding-left: 0.9rem;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
