:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --surface-3: #f0fdf8;
  --text: #0b1730;
  --muted: #61708a;
  --border: #dce5f2;
  --brand: #1265f0;
  --brand-2: #08306f;
  --accent: #0f9f7a;
  --warn: #f59e0b;
  --ink: #071226;
  --shadow: 0 22px 60px rgba(18, 101, 240, 0.13);
}

[data-theme="dark"] {
  --bg: #071226;
  --surface: #0d1b33;
  --surface-2: #102241;
  --surface-3: #0d2a2c;
  --text: #f4f8ff;
  --muted: #9aabc4;
  --border: #203858;
  --brand: #4f8dff;
  --brand-2: #9fc0ff;
  --accent: #37d6a4;
  --ink: #ffffff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand img { width: min(230px, 42vw); height: 52px; object-fit: contain; object-position: left center; display: block; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.icon-button, .button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.button { display: inline-flex; justify-content: center; align-items: center; font-weight: 850; text-align: center; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.secondary { background: var(--surface); }
.button.full { width: 100%; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  min-height: calc(92vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.hero-copy { max-width: 760px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 900; margin: 0 0 12px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(48px, 8vw, 96px); line-height: 0.95; letter-spacing: 0; margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: 0; margin-bottom: 14px; }
h3 { font-size: 22px; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 680px; }
.strong-lead { color: var(--text); font-weight: 820; font-size: clamp(23px, 3vw, 34px); line-height: 1.18; margin-bottom: 12px; }
.muted { color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.trust-row span { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 8px 10px; font-weight: 700; }

.hero-panel {
  display: grid;
  gap: 18px;
  align-items: center;
}
.hero-logo {
  width: min(100%, 720px);
  max-height: 170px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}
.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.preview-card img { width: 100%; display: block; border-radius: 6px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics div { background: var(--surface); padding: 28px clamp(18px, 5vw, 72px); }
.metrics strong { display: block; font-size: 34px; }
.metrics span { color: var(--muted); font-size: 14px; }

.section { padding: clamp(52px, 7vw, 92px) clamp(18px, 5vw, 72px); }
.section-heading { max-width: 800px; margin-bottom: 28px; }
.online-section, .download-section { background: var(--surface-2); }
.plan-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feature-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card, .download-card, .form-card, .status-card, .price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(8, 21, 34, 0.06);
}
.feature-card strong { display: block; margin-bottom: 8px; }
.feature-card p, .download-card p, .price-card p { color: var(--muted); line-height: 1.55; }

.form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.form-card h3, .form-card button, .form-result, .account-panel { grid-column: 1 / -1; }
.form-card label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; font-weight: 750; }
.form-card input, .form-card textarea, .form-card select, .mini-form input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
}
.form-card textarea { min-height: 118px; resize: vertical; }
.form-result { margin: 0; color: var(--brand); min-height: 20px; font-weight: 750; }
.account-panel { border-top: 1px solid var(--border); padding-top: 18px; display: grid; gap: 12px; }
.account-panel h4 { margin-bottom: 0; }
.hidden { display: none !important; }
.mini-form { display: grid; gap: 10px; }

.price-card { background: var(--ink); color: white; }
.price-card span { color: #9fc0ff; font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; }
.price-card strong { display: block; font-size: 36px; margin: 10px 0 12px; }
.price-card p { color: #c8d5ea; }

.download-tools { display: flex; gap: 12px; margin-bottom: 18px; }
.download-tools input, .download-tools select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 14px;
}
.download-tools input { flex: 1; min-width: 180px; }
.download-card { display: flex; flex-direction: column; gap: 10px; }
.download-card .meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.download-card .meta span { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.steps { padding-left: 20px; color: var(--muted); line-height: 1.8; }
.status-card { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12); }
.status-dot.online { background: var(--accent); box-shadow: 0 0 0 6px rgba(15, 159, 122, 0.14); }

.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px; }
.faq button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 0; font-weight: 850; cursor: pointer; }
.faq p { color: var(--muted); margin: 12px 0 0; display: none; }
.faq.open p { display: block; }

.contact-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: 28px; background: var(--surface-3); }
.contact-details { display: grid; gap: 10px; color: var(--muted); margin-top: 24px; }
.contact-section .form-card label:nth-child(5), .contact-section .form-card label:nth-child(6) { grid-column: 1 / -1; }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero, .split, .contact-section, .plan-section, .auth-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-grid, .download-grid, .metrics { grid-template-columns: 1fr; }
  .download-tools { flex-direction: column; align-items: stretch; }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; }
  .top-actions .button, .top-actions .icon-button { flex: 1; }
  .form-card { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
}
