:root {
  --bg: #0f172a;
  --surface: #111c31;
  --surface-2: #18243a;
  --border: #2c3a52;
  --text: #e5edf8;
  --muted: #9aabc2;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --green: #10b981;
  --danger: #f87171;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.35);
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #dbe4ef;
  --text: #172033;
  --muted: #65758e;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --green: #059669;
  --danger: #b91c1c;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
:root[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(59, 130, 246, 0.13), transparent 32rem),
    radial-gradient(circle at 86% 24%, rgba(16, 185, 129, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.hidden { display: none !important; }

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  direction: ltr;
}
.brand strong { color: var(--accent); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #dbeafe;
  background: linear-gradient(135deg, #2563eb, #0f5bd8);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  font-weight: 800;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.text-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 4px;
}
.text-link:hover { color: var(--text); }
.control-button {
  width: 38px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.control-button:hover { border-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
  padding-block: clamp(54px, 8vw, 100px);
}
.hero-copy { min-width: 0; }
.eyebrow, .card-kicker {
  margin: 0 0 10px;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.trust-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 0.82rem;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.principles article {
  border-top: 1px solid var(--border);
  padding-top: 17px;
}
.principles h2 { margin: 0 0 7px; font-size: 0.98rem; }
.principles p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.signup-card {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.signup-card h2 { margin: 0; font-size: 1.6rem; line-height: 1.25; }
.card-intro { color: var(--muted); margin: 10px 0 24px; font-size: 0.93rem; }
form { display: grid; gap: 10px; }
label { font-size: 0.88rem; font-weight: 700; margin-top: 4px; }
input[type="email"], select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
input[type="email"]:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}
.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
html[dir="rtl"] .consent-row { grid-template-columns: 1fr 20px; }
html[dir="rtl"] .consent-row input { order: 2; }
.consent-row input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); }
.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.primary-button {
  border: 0;
  margin-top: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}
.primary-button:hover { filter: brightness(1.07); }
.primary-button:disabled { cursor: wait; opacity: 0.68; }
.secondary-button { border: 1px solid var(--border); padding-inline: 18px; }
.form-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 0.82rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-panel { text-align: center; padding-block: 28px; }
.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ecfdf5;
  background: var(--green);
  font-size: 1.7rem;
  font-weight: 900;
}
.success-panel p { color: var(--muted); margin: 12px 0 24px; }

.disclosure {
  border-top: 1px solid var(--border);
  padding-block: 34px 60px;
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 30px;
}
.disclosure h2 { margin: 0; font-size: 1.08rem; }
.disclosure p { margin: 0; color: var(--muted); }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; }
.footer-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .signup-card { max-width: 650px; width: 100%; margin-inline: auto; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 62px; }
  .text-link { display: none; }
  .principles { grid-template-columns: 1fr; }
  .disclosure { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
  h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
