/* =========================================================
   FONTS
   --font-display: Orbitron — closest web font to the SimplesSoft logo (headings, numbers, buttons)
   --font-body:    Exo 2 — readable tech-style companion for paragraphs
   Both are self-hosted in assets/fonts (variable fonts: one file = all weights),
   so no visitor data is sent to Google (GDPR-friendly).
   ========================================================= */

@font-face {
  font-family: "Orbitron";
  src: url("assets/fonts/orbitron-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/exo2-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Orbitron", "Exo 2", system-ui, sans-serif;
  --font-body: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Brand colors — tweak once the real logo is in */
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --ink: #0b1220;
  --ink-2: #111a2e;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f5f8fc;
  --ok: #10b981;
  --bad: #f43f5e;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: 0; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-display); letter-spacing: .03em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6);
}
.btn--primary:hover { box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .75); }
.btn--ghost { color: #e2e8f0; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.eyebrow--dark { color: #93c5fd; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16,185,129,.2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s;
}
.nav.is-scrolled { background: rgba(11, 18, 32, .82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 26px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: #cbd5e1; font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav__links a:hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s; }

@media (max-width: 860px) {
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(11,18,32,.97); padding: 8px 16px 16px; margin: 0;
    display: none;
  }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open { background: rgba(11,18,32,.97); }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #1e3a8a 0%, transparent 60%), var(--ink);
  color: #cbd5e1; padding: 140px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px;
  background: radial-gradient(circle, rgba(6,182,212,.25), transparent 65%); filter: blur(20px);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: #a5b4c8; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .05em; font-weight: 500; color: #cbd5e1; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
}

@media (max-width: 960px) {
  .hero { padding: 120px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Dashboard mockup ---------- */
.dash {
  background: linear-gradient(180deg, rgba(23,33,58,.92), rgba(15,23,42,.92));
  border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(59,130,246,.08) inset;
  color: #e2e8f0; font-size: .9rem;
}
.dash__bar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dash__title { font-weight: 600; color: #cbd5e1; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--ok); }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.kpi { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px; min-width: 0; }
.kpi__label { display: block; font-size: .72rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; margin: 2px 0; transition: color .3s; }
.kpi__value.flash { color: #7dd3fc; }
.kpi__delta { font-size: .72rem; font-weight: 600; }
.up { color: var(--ok); } .down { color: #38bdf8; }

.dash__chart { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px; }
.dash__chart-head { display: flex; justify-content: space-between; font-size: .78rem; color: #94a3b8; margin-bottom: 6px; }
.spark { width: 100%; height: 120px; }
.spark__grid line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.spark__line { fill: none; stroke: #3b82f6; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__head { fill: #93c5fd; stroke: #1d4ed8; stroke-width: 2; }

.dash__rows { margin-top: 12px; display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; font-size: .8rem; }
.row .muted { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.meter b { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; transition: width .8s ease; }

@media (max-width: 480px) {
  .dash { padding: 14px; }
  .kpi { padding: 10px 8px; }
  .kpi__value { font-size: 1.1rem; }
  .row { grid-template-columns: 112px 1fr 36px; gap: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink-2); color: #a5b4c8; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 76px 0; } .section__head { margin-bottom: 40px; } }

/* ---------- Solution cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #c7d7fe; box-shadow: 0 20px 40px -18px rgba(37,99,235,.28); }
.card p { color: var(--muted); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff); border: 1px solid #dbeafe;
}
.card__icon svg, .platform svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.note { margin-top: 40px; text-align: center; color: var(--muted); }
.note a { font-weight: 600; }
.card--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(135deg, #eff6ff, #ecfeff); border-style: dashed; border-color: #bfdbfe; box-shadow: none;
}
.card--cta p { margin-bottom: 1.4em; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Dashboards split ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.split__copy > p { font-size: 1.08rem; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.features li { padding-left: 18px; border-left: 2px solid rgba(59,130,246,.5); }
.features strong { color: #fff; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); border-radius: var(--radius);
  padding: 28px 24px;
}
.stat__num { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: #94a3b8; font-size: .92rem; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff; transition: border-color .2s, transform .2s; }
.platform:hover { border-color: #c7d7fe; transform: translateY(-3px); }
.platform svg { width: 32px; height: 32px; margin-bottom: 16px; }
.platform p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--primary); }
.step__n { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--primary); letter-spacing: .05em; }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA / Form ---------- */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  background: radial-gradient(800px 400px at 0% 0%, #1e3a8a, transparent 60%), var(--ink);
  border-radius: 28px; padding: 56px; color: #a5b4c8;
}
.cta h2 { color: #fff; }
.cta__copy p { font-size: 1.08rem; }
.form { display: grid; gap: 14px; background: #fff; border-radius: 18px; padding: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); padding: .75em .9em; border-radius: 10px;
  border: 1px solid var(--line); background: #f8fafc; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff; }
.form__status { margin: 0; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form__status.is-ok { color: #059669; }
.form__status.is-error { color: #e11d48; }
.form select:has(option[value=""]:checked) { color: var(--muted); }
.form .is-invalid { border-color: #e11d48; background: #fff1f2; }
.form .is-invalid:focus { box-shadow: 0 0 0 4px rgba(225,29,72,.12); }
.field__error { display: block; font-size: .8rem; font-weight: 500; color: #e11d48; min-height: 0; }
.field__error:empty { display: none; }
.captcha { display: grid; gap: 6px; }
.form .captcha > label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.captcha__q { font-family: var(--font-display); color: var(--primary); letter-spacing: .04em; }
.captcha__row { display: flex; gap: 8px; }
.captcha__row input { max-width: 120px; }
.captcha__new {
  display: grid; place-items: center; width: 44px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #f8fafc; color: var(--muted); transition: color .15s, border-color .15s;
}
.captcha__new:hover { color: var(--primary); border-color: #c7d7fe; }
.captcha__new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; } }
@media (max-width: 480px) { .cta { padding: 28px 16px; border-radius: 20px; } .form { padding: 20px; } .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer .brand__logo { height: 22px; }
.footer p { margin: 0; font-size: .9rem; }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 340px; max-width: calc(100vw - 32px);
  background: var(--ink); color: #cbd5e1; border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.cookie-notice.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-notice__title { font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.cookie-notice__text { font-size: .88rem; line-height: 1.5; margin: 0 0 14px; }
.cookie-notice__actions { display: flex; align-items: center; gap: 16px; }
.cookie-notice__link { color: #93c5fd; font-size: .88rem; font-weight: 500; }
.cookie-notice__link:hover { color: #fff; }
@media (max-width: 480px) { .cookie-notice { right: 16px; left: 16px; bottom: 16px; width: auto; max-width: none; } }

/* ---------- Footer links ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.footer__links a { color: var(--muted); font-size: .9rem; }
.footer__links a:hover { color: var(--primary); }

/* ---------- Form privacy note ---------- */
.form__note { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }

/* ---------- Legal page ---------- */
.nav--solid { background: rgba(11, 18, 32, .95); }
.nav__back { margin-left: auto; color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.nav__back:hover { color: #fff; }
.legal-hero { background: radial-gradient(900px 400px at 85% -20%, #1e3a8a 0%, transparent 60%), var(--ink); padding: 136px 0 56px; color: #a5b4c8; }
.legal-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .4em; }
.legal-hero p { margin: 0; }
.legal { padding: 64px 0 96px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.15rem; margin: 2.2em 0 .7em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--text); }
.legal__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 600; color: var(--ink); background: var(--tint); }
.legal__table code { font-size: .85em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 600px) {
  .legal-hero { padding: 112px 0 40px; }
  .legal { padding: 44px 0 72px; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .legal__table td { border: 0; padding: 4px 0; }
  .legal__table td:first-child { font-weight: 600; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live__dot { animation: none; }
}
