@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --panel: #ffffff;
  --panel2: #f3f7ff;
  --line: rgba(17, 24, 39, .12);
  --text: #111827;
  --muted: #64748b;
  --soft: #334155;
  --brand: #2563eb;
  --brand2: #4f46e5;
  --ok: #059669;
  --danger: #dc2626;
  --shadow: 0 22px 58px rgba(15, 23, 42, .12);
  --radius: 18px;
  --control-radius: 10px;
  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --surface: #0d1322;
  --surface-2: #111a2d;
  --panel: #0d1322;
  --panel2: #111a2d;
  --line: rgba(255, 255, 255, .12);
  --text: #f5f7fb;
  --muted: #9aa8bd;
  --soft: #d9e4f5;
  --brand: #6aa7ff;
  --brand2: #8b5cf6;
  --ok: #42d392;
  --danger: #ff6677;
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 34rem),
    radial-gradient(circle at 90% 0, color-mix(in srgb, var(--brand2) 14%, transparent), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--surface-2) 62%, var(--bg));
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: -.01em;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(18px);
}
.nav-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.035em; }
.brand img, .app-icon { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 24%, transparent); }
.brand span { font-size: 21px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-links { color: var(--muted); font-weight: 700; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.lang-select, .theme-toggle {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font: 700 13px/1 var(--font);
  outline: none;
}
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font: 800 14px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: white; box-shadow: 0 16px 36px color-mix(in srgb, var(--brand) 26%, transparent); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--soft); }
.btn svg, .btn .btn-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.full { width: 100%; }

.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.h1, .page-title { margin: 0; color: var(--text); font-weight: 900; line-height: 1.04; letter-spacing: -.055em; }
.h1 { font-size: clamp(46px, 6.6vw, 78px); }
.page-title { font-size: clamp(40px, 5vw, 64px); }
.lead, .page-sub { max-width: 720px; margin: 22px 0 0; color: var(--soft); font-size: 19px; line-height: 1.72; }
.page-sub { font-size: 18px; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; color: var(--soft); font-size: 13px; font-weight: 750; }

.product-card, .card { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); border-radius: var(--radius); }
.product-card { padding: 18px; }
.product-window { overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.window-top { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.dot:nth-child(2) { background: #f59e0b; }
.dot:nth-child(3) { background: #10b981; }
.screen-map { padding: 32px; display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.screen { min-height: 190px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), color-mix(in srgb, var(--surface) 80%, transparent)); display: flex; flex-direction: column; justify-content: center; padding: 22px; }
.screen strong { font-size: 22px; }
.screen span { color: var(--muted); margin-top: 6px; }
.peer { border-color: color-mix(in srgb, var(--brand2) 34%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--brand2) 12%, transparent), color-mix(in srgb, var(--surface) 80%, transparent)); }
.cursor-line { height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand2)); position: relative; }
.cursor-line:after { content: '›'; position: absolute; right: -8px; top: -20px; font-size: 34px; color: var(--brand); }

.section { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); }
.icon, .platform-emoji { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, transparent); font-size: 22px; }
.step-card { counter-increment: step; }
.steps { counter-reset: step; }
.step-card:before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: white; font-weight: 900; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.download-hero, .auth-page { padding: 72px 0 36px; }
.platform-card { display: flex; flex-direction: column; gap: 18px; }
.platform-top { display: flex; align-items: center; gap: 16px; }
.platform-emoji { margin: 0; }
.platform-name { font-size: 24px; font-weight: 900; }
.platform-req, .meta { color: var(--muted); font-size: 14px; }
.meta a { color: var(--brand); font-weight: 800; }
.change-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); color: var(--soft); }
.version-tag { flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line)); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 8px; padding: 4px 10px; color: var(--brand); font-weight: 850; font-size: 12px; }

.auth-wrap { display: grid; grid-template-columns: 1fr 430px; gap: 48px; align-items: start; }
.auth-card { padding: 28px; }
.auth-title-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.panel { display: none; }
.panel.active { display: block; }
.field { margin-top: 16px; }
label { display: block; margin-bottom: 8px; color: var(--soft); font-size: 13px; font-weight: 800; }
input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); color: var(--text); padding: 0 14px; font: 600 15px var(--font); outline: none; }
input:focus { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.status { display: block; min-height: 22px; margin-top: 14px; font-size: 14px; }
.err { color: var(--danger); }
.ok { color: var(--ok); }
.email { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface-2); color: var(--soft); font-weight: 800; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .auth-wrap, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .screen-map { grid-template-columns: 1fr; gap: 20px; }
  .cursor-line { height: 48px; width: 2px; margin: auto; }
  .cursor-line:after { content: '⌄'; right: -13px; top: 18px; }
  .footer-inner { flex-direction: column; }
  .nav-inner { height: auto; min-height: 72px; padding: 12px 0; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .h1 { font-size: 42px; }
  .lead { font-size: 18px; }
  .card { padding: 20px; }
}
