:root {
  --bg-950: #e8e7ec;
  --bg-900: #f4f4f7;
  --bg-800: #ffffff;
  --surface: rgba(20, 16, 30, 0.035);
  --surface-2: rgba(20, 16, 30, 0.065);
  --line: rgba(20, 16, 30, 0.1);
  --line-strong: rgba(20, 16, 30, 0.2);
  --primary-rgb: 230, 0, 18;
  --primary-900: #08336f;
  --primary-700: #0a397c;
  --primary-600: #e60012;
  --primary-500: #e60012;
  --primary-400: #bd0010;
  --glow-1: 0.12;
  --shadow-card: 0 10px 26px rgba(20, 16, 30, 0.12);
  --text-000: #14101c;
  --text-100: #221e2c;
  --text-300: #494555;
  --text-500: #726d7d;
  --radius: 16px;
  --radius-sm: 11px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-950: #050408;
    --bg-900: #0b0a10;
    --bg-800: #131019;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --primary-400: #ff5360;
    --glow-1: 0.22;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --text-000: #ffffff;
    --text-100: #f2f0f5;
    --text-300: #c6c2cf;
    --text-500: #8e8a99;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-950: #050408;
  --bg-900: #0b0a10;
  --bg-800: #131019;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --primary-400: #ff5360;
  --glow-1: 0.22;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --text-000: #ffffff;
  --text-100: #f2f0f5;
  --text-300: #c6c2cf;
  --text-500: #8e8a99;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text-100);
  background:
    radial-gradient(circle at 12% -6%, rgba(var(--primary-rgb), var(--glow-1)), transparent 42%),
    radial-gradient(circle at 92% 14%, rgba(var(--primary-rgb), calc(var(--glow-1) * 0.8)), transparent 38%),
    radial-gradient(circle at 50% 108%, rgba(var(--primary-rgb), calc(var(--glow-1) * 0.6)), transparent 48%),
    var(--bg-900);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg-900) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-title {
  display: block;
  width: min(226px, 42vw);
  height: 28px;
  object-fit: contain;
  object-position: left center;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dashboard-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-300);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dashboard-link:hover { border-color: var(--line-strong); color: var(--text-100); background: var(--surface); }

.settings-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-300);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.settings-btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.3s ease; }
.settings-btn:hover { background: var(--surface-2); color: var(--text-100); }
.settings-btn:hover svg { transform: rotate(45deg); }
.settings-btn:active { transform: scale(0.94); }

.settings-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin: auto;
  background: var(--bg-800);
  color: var(--text-100);
  width: min(340px, calc(100vw - 40px));
  box-shadow: var(--shadow-card);
}
.settings-dialog::backdrop {
  background: rgba(4, 3, 6, 0.55);
  backdrop-filter: blur(2px);
}
.settings-dialog-inner {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.settings-dialog-header h2 { margin: 0; font-size: 16px; font-weight: 800; }
.dialog-close {
  border: none;
  background: none;
  color: var(--text-500);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.dialog-close:hover { color: var(--text-100); }
.settings-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.settings-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-500);
}
.settings-select {
  border: none;
  background: var(--surface-2);
  color: var(--text-100);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 160px;
}

main { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.hero {
  text-align: center;
  padding: 48px 12px 40px 12px;
}
.hero-brand-lockup {
  width: min(100%, 760px);
  margin: 0 auto 38px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(6, 37, 85, .14);
}
.hero-brand-lockup img { display: block; width: 100%; height: auto; }
.hero h1 {
  margin: 0 0 16px 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-wrap: balance;
}
.hero .tagline {
  max-width: 560px;
  margin: 0 auto 34px auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-300);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-label { font-size: 14.5px; font-weight: 700; }
.btn-sub { font-size: 11px; opacity: 0.8; }
.btn-store {
  background: linear-gradient(120deg, var(--primary-600), var(--primary-900));
  color: #fff;
  box-shadow: 0 8px 22px rgba(6, 37, 85, 0.25);
  cursor: default;
}

.cta-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-500);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
  margin: 56px 0;
}
.feature-card {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}
.feature-card:hover .feature-icon { transform: scale(1.08); background: rgba(var(--primary-rgb), 0.18); }
.feature-card-primary {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.14), var(--bg-800) 60%);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.feature-icon svg { width: 21px; height: 21px; fill: currentColor; }
.feature-icon-lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 0;
}
.feature-icon-lg svg { width: 32px; height: 32px; }
.feature-card h2, .feature-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 800;
}
.feature-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-300);
}

.steps { margin: 56px 0 72px 0; }
.steps-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 30px 0;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-400);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-list h3 { margin: 0 0 6px 0; font-size: 14.5px; font-weight: 800; }
.steps-list p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-300); }

.site-footer {
  text-align: center;
  padding: 40px 20px 56px 20px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: block; width: min(236px, 70vw); height: auto; margin: 0 auto 16px; }
.footnote {
  margin: 0 0 10px 0;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: var(--text-500);
}
.footer-link {
  font-size: 13px;
  color: var(--primary-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-link:hover { text-decoration: underline; }

.footer-contact {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-contact-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-500);
}
.footer-contact-link {
  font-size: 13px;
  color: var(--text-300);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-contact-link:hover { color: var(--primary-400); text-decoration: underline; }

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .feature-card-primary { grid-column: span 1; grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .steps-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .feature-card:hover { transform: none; }
}
