:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --ink: #12131a;
  --ink-soft: #5b5f73;
  --ink-faint: #9296a8;
  --brand: #3d3df5;
  --brand-dark: #2626c4;
  --accent: #b6ff3d;
  --border: #e4e6f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 19, 26, 0.04), 0 8px 24px -12px rgba(18, 19, 26, 0.12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Manrope/IBM Plex Sans — латиница-only, деванагари в них отсутствует.
   html[lang="hi"] переключает и заголовки, и текст на шрифт с деванагари —
   ставится через applyLanguage() в i18n.js (document.documentElement.lang). */
html[lang="hi"] body,
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4 {
  font-family: "Noto Sans Devanagari", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 246, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}

nav.primary-nav {
  display: flex;
  gap: 28px;
}

nav.primary-nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

nav.primary-nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink-faint);
}

.lang-switch button.on {
  background: var(--ink);
  color: #fff;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; }

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

.btn-primary:hover { background: var(--brand); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

/* ---- Hero ---- */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 61, 245, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 255, 61, 0.25);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  max-width: 780px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  max-width: 620px;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.capability-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-item {
  background: var(--surface);
  padding: 20px 22px;
}

.capability-item .k {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.capability-item .k svg { flex: none; color: var(--brand); }

.capability-item p { margin: 6px 0 0; font-size: 13.5px; }

/* ---- Sections ---- */
section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  text-wrap: balance;
}

/* Verticals */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.vertical-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(61, 61, 245, 0.08);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.vertical-card h3 { font-size: 17px; margin-bottom: 8px; }
.vertical-card p { font-size: 14px; margin: 0; }

/* How it works */
.flow {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  position: relative;
}

.flow-step {
  position: relative;
  padding: 0 20px 20px 0;
}

.flow-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.flow-step h3 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 14px; margin: 0; }

/* Security */
.security-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.security-panel h2 { color: #fff; }
.security-panel p { color: rgba(255, 255, 255, 0.72); }

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.security-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.security-list svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

/* Form */
.apply-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

.apply-info h2 { font-size: 26px; }

.apply-info ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.apply-info li { display: flex; gap: 10px; align-items: flex-start; }
.apply-info li svg { flex: none; color: var(--brand); margin-top: 2px; }

.apply-direct {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.apply-direct a { font-weight: 600; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

textarea { resize: vertical; min-height: 84px; }

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
}

.consent-row input { margin-top: 3px; flex: none; }

.form-msg {
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 9px;
  display: none;
}

.form-msg.ok { display: block; background: rgba(182, 255, 61, 0.25); color: #2b5c00; }
.form-msg.err { display: block; background: #ffe3e3; color: #a30000; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}

.footer-links a { color: var(--ink-soft); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-contact-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.footer-contact a { color: var(--ink); font-weight: 600; }

.footer-blurb {
  max-width: 420px;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* Legal pages */
.legal {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 32px; }
.legal h2 { font-size: 18px; margin-top: 32px; }
.legal li { color: var(--ink-soft); margin-bottom: 6px; }

@media (max-width: 860px) {
  nav.primary-nav { display: none; }
  .security-panel, .apply-panel { grid-template-columns: 1fr; padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
}
