:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface2: #f5f4f1;
  --border: #e8e6e1;
  --border2: #f0eee9;
  --text1: #1a1a2e;
  --text2: #555555;
  --text3: #888480;
  --hero-bg: #252f8c;
  --hero-text: #ffffff;
  --hero-sub: rgba(255, 255, 255, 0.65);
  --hero-border: rgba(255, 255, 255, 0.15);
  --accent: #3b47b0;
  --accent-bg: #eef0fc;
  --accent-border: #c5caf5;
  --danger: #c0392b;
  --danger-bg: #fdf0f0;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  --nav-h: 60px;
}

.dark {
  --bg: #0f0f13;
  --surface: #18181f;
  --surface2: #1e1e27;
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.05);
  --text1: #f0eff8;
  --text2: #a0a0b8;
  --text3: #686882;
  --hero-bg: #0f0f13;
  --accent: #5c6ae0;
  --accent-bg: rgba(92, 106, 224, 0.12);
  --accent-border: rgba(92, 106, 224, 0.3);
  --danger: #e05c5c;
  --danger-bg: rgba(224, 92, 92, 0.1);
  --shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

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

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text1);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

html.transitioning * {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 55%, #c0392b 100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  height: calc(var(--nav-h) - 2px);
  padding-inline: clamp(14px, 3vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

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

.nav-links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 12px 8px;
  border-bottom: 2px solid transparent;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.login-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.theme-toggle {
  width: 44px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}

.theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .theme-toggle {
  background: var(--accent);
}

.dark .theme-knob {
  transform: translateX(18px);
}

.hero-section {
  background: var(--hero-bg);
  padding: clamp(34px, 6vw, 74px) clamp(20px, 4vw, 48px) clamp(42px, 6vw, 78px);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.hero-label,
.section-label,
.panel-label {
  color: var(--hero-sub);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-label {
  margin-bottom: 10px;
}

h1 {
  max-width: 780px;
  color: var(--hero-text);
  font-size: clamp(45px, 7vw, 78px);
  font-weight: 800;
  letter-spacing: clamp(-4.6px, -0.48vw, -2px);
  line-height: 0.96;
}

.hero-subtitle {
  max-width: 640px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
}

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

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-white {
  background: #fff;
  color: var(--accent);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-note {
  max-width: 600px;
  margin-top: 18px;
  color: var(--hero-sub);
  font-size: 12px;
}

.product-panel {
  border: 1px solid var(--hero-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.panel-header,
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.beta-badge {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.score {
  margin-top: 26px;
  color: #fff;
  font-size: clamp(58px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -5px;
  line-height: 1;
}

.score-caption {
  margin-top: 4px;
  color: var(--hero-sub);
  font-size: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--hero-border);
}

.hero-stats div {
  min-height: 84px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats span {
  display: block;
  color: var(--hero-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  margin-top: 13px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1;
}

.panel-list {
  margin-top: 20px;
}

.panel-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--hero-border);
}

.panel-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-row strong,
.panel-row span {
  display: block;
}

.panel-row strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.panel-row span {
  margin-top: 2px;
  color: var(--hero-sub);
  font-size: 11px;
}

.panel-row em {
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) clamp(20px, 4vw, 48px);
}

.section-label {
  margin-bottom: 14px;
  color: var(--text3);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

h2 {
  max-width: 620px;
  color: var(--text1);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.section-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.flow-grid,
.feature-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--border);
  box-shadow: var(--shadow);
  gap: 1px;
}

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

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

.flow-grid article,
.feature-card {
  background: var(--surface);
  padding: 18px 20px;
}

.flow-grid span,
.feature-card span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.feature-card span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface2);
}

.accent-card {
  border-left: 3px solid var(--accent);
}

.accent-card span {
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent);
}

.flow-grid strong,
.feature-card h3 {
  display: block;
  color: var(--text1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.feature-card h3 {
  margin-bottom: 7px;
}

.flow-grid p,
.feature-card p {
  margin-top: 7px;
  color: var(--text2);
  font-size: 13px;
}

.beta-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.beta-panel p:not(.section-label) {
  color: var(--text2);
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 12px;
}

.footer span:first-child {
  color: var(--text1);
  font-weight: 700;
}

@media (max-width: 940px) {
  .hero-inner,
  .beta-panel {
    grid-template-columns: 1fr;
  }

  .product-panel {
    max-width: 640px;
  }

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

@media (max-width: 680px) {
  .nav-inner {
    gap: 10px;
  }

  .brand span,
  .nav-links,
  .login-link {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-section {
    padding-top: 34px;
  }

  h1 {
    font-size: 43px;
    letter-spacing: -2.6px;
  }

  .hero-stats,
  .flow-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .beta-panel .btn {
    width: 100%;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
