:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #edf6f2;
  --text: #10201d;
  --muted: #62706c;
  --border: #dbe7e3;
  --brand: #0f766e;
  --brand-2: #0f9f7a;
  --ink: #071513;
  --shadow: 0 18px 45px rgba(15, 118, 110, 0.14);
}

[data-theme="dark"] {
  --bg: #071513;
  --surface: #0d211f;
  --surface-2: #12312d;
  --text: #edf7f5;
  --muted: #9ab0aa;
  --border: #1d3d38;
  --brand: #2dd4bf;
  --brand-2: #5eead4;
  --ink: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* { 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 {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 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: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.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: 750; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.button.secondary { background: var(--surface); }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

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

.hero-copy { max-width: 720px; }
.eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 850; margin: 0 0 12px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(58px, 9vw, 112px); line-height: 0.92; letter-spacing: 0; margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; letter-spacing: 0; margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.strong-lead { color: var(--text); font-weight: 780; 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; }

.hero-media {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media img {
  width: min(100%, 820px);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.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: 760px; margin-bottom: 28px; }
.feature-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card, .download-card, .form-card, .status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(8, 21, 19, 0.05);
}
.feature-card strong { display: block; margin-bottom: 8px; }
.feature-card p, .download-card p { color: var(--muted); line-height: 1.55; }

.download-section { background: var(--surface-2); }
.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: #f59e0b; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12); }
.status-dot.online { background: #10b981; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12); }

.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: 800; 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-2); }
.contact-details { display: grid; gap: 10px; color: var(--muted); margin-top: 24px; }
.form-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.form-card input, .form-card textarea, .newsletter 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-card label:nth-child(5), .form-card label:nth-child(6), .form-card button, .form-result { grid-column: 1 / -1; }
.form-result { margin: 0; color: var(--brand); min-height: 20px; }

.newsletter {
  margin: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.newsletter p { color: #b7cbc7; margin-bottom: 0; }
.newsletter form { display: flex; gap: 10px; min-width: min(100%, 420px); }
.newsletter input { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.16); }

.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: 900px) {
  .nav { display: none; }
  .hero, .split, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-media { min-height: auto; }
  .feature-grid, .download-grid, .metrics { grid-template-columns: 1fr; }
  .newsletter, .newsletter form, .download-tools { flex-direction: column; align-items: stretch; }
  .form-card { grid-template-columns: 1fr; }
}
