:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #151a25;
  --border: #232a38;
  --text: #e8ecf3;
  --text-dim: #9aa5b5;
  --accent: #4f8ef7;
  --accent-soft: rgba(79, 142, 247, 0.14);
  --link: #8db4ff;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
  --header-bg: rgba(11, 14, 20, 0.85);
  --h1-from: #ffffff;
  --h1-to: #b9c8e6;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --border: #dde3ee;
  --text: #121826;
  --text-dim: #56627a;
  --accent: #2f6fe4;
  --accent-soft: rgba(47, 111, 228, 0.09);
  --link: #2a5fc9;
  --header-bg: rgba(246, 247, 251, 0.85);
  --h1-from: #121826;
  --h1-to: #3b4a6b;
  --shadow: 0 12px 40px rgba(20, 30, 60, 0.18);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-light { font-weight: 400; color: var(--text-dim); }

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), #7c5cf0);
  transform: rotate(45deg);
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--text); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  text-align: left;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.18) 0%, rgba(124, 92, 240, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--h1-from) 0%, var(--h1-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary:hover { background: #3d7cea; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

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

/* ---------- sections ---------- */

.section { padding: 90px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 44px;
}

/* ---------- product cards ---------- */

.sector + .sector { margin-top: 56px; }

.sector-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

.sector-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sector-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(251, 191, 36, 0.55); }

.status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card h3 { font-size: 1.3rem; margin-bottom: 10px; }

.card p { color: var(--text-dim); font-size: 0.98rem; flex-grow: 1; }

.card-links {
  margin-top: 20px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.card-links .card-link { margin-top: 0; }

.card-link {
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

.card-link.muted { color: var(--text-dim); font-weight: 500; }

/* ---------- how we work ---------- */

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.pill {
  background: var(--accent-soft);
  border: 1px solid rgba(79, 142, 247, 0.22);
  border-radius: var(--radius);
  padding: 24px;
}

.pill h4 { font-size: 1.05rem; margin-bottom: 8px; }

.pill p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- contact & footer ---------- */

.contact-inner { text-align: center; }

.contact-inner .section-intro { margin-left: auto; margin-right: auto; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-inner span:last-child { text-align: right; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-inner span:last-child { text-align: left; }
}

.footer-inner a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--text); }

/* ---------- cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  width: min(calc(100% - 32px), 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.cookie-banner p { margin: 0; flex: 1 1 320px; color: var(--text-dim); font-size: 0.94rem; }
.cookie-banner a { color: var(--link); text-decoration-color: rgba(141, 180, 255, 0.5); text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- legal pages ---------- */

.legal { padding: 70px 0 90px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-dim); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--link); text-decoration-color: rgba(141, 180, 255, 0.5); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal strong { color: var(--text); }
.legal code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }

.table-wrap { overflow-x: auto; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.legal th { color: var(--text); font-weight: 600; }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .hero { padding: 70px 0 60px; }
  .section { padding: 60px 0; }
  .site-nav { gap: 16px; }
}
