/* =========================================================
   Seyran Digital — Aurora + Glassmorphism (dark tech)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg: #070A1A;
  --bg-2: #0B1030;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #EEF1FF;
  --muted: #A5ADCF;
  --faint: #7E87AE;

  /* Brand */
  --magenta: #E11DFF;
  --violet: #7C3AED;
  --cyan: #14C8E0;
  --ok: #34E3A4;
  --danger: #FF6B9A;
  --grad: linear-gradient(120deg, var(--magenta) 0%, var(--violet) 50%, var(--cyan) 100%);
  /* darker stops behind white button text keep contrast >= 4.5:1 */
  --grad-cta: linear-gradient(120deg, #A812C7 0%, var(--violet) 50%, #0B7F93 100%);
  --grad-soft: linear-gradient(120deg, rgba(225, 29, 255, .55), rgba(124, 58, 237, .55), rgba(20, 200, 224, .55));

  /* Type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.5rem, 1.4rem + 5.2vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.2rem);

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1200px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
  --header-h: 72px;

  /* Effects */
  --blur: blur(14px);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(124, 58, 237, .35), 0 20px 60px -20px rgba(225, 29, 255, .45);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 100% 0%, rgba(124, 58, 237, .10), transparent 60%),
    radial-gradient(900px 600px at 0% 60%, rgba(20, 200, 224, .06), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(225, 29, 255, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  padding: .75rem 1.25rem; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }
main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Shared utilities ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

/* gradient border glow on hover (mask technique) */
.glass::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s-4);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad);
}

.section { padding-block: var(--section-y); position: relative; }
.section-title { font-size: var(--fs-h2); font-weight: 700; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn-primary {
  color: #fff;
  background: var(--grad-cta);
  background-size: 160% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -10px rgba(225, 29, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 1px 1px rgba(40, 0, 70, .35);
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(124, 58, 237, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .9375rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; margin-top: var(--s-5);
  font-weight: 600; color: var(--text);
  border-bottom: 1px solid transparent;
}
.text-link .icon { color: var(--cyan); transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 10, 26, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .8);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu panel */
.nav-menu {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) - 4px);
  display: none;
  flex-direction: column; gap: var(--s-1);
  padding: var(--s-3);
  background: rgba(11, 16, 48, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.nav-menu { max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.nav-menu.is-open { display: flex; animation: menu-in .25s var(--ease); }
.nav-menu a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  padding: 0 var(--s-4);
  border-radius: var(--r-sm);
  color: var(--muted); font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-menu a:not(.btn):hover, .nav-menu a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-cta-item { padding-top: var(--s-2); }
.nav-cta-item .btn { width: 100%; }

html.menu-open, html.menu-open body { overflow: hidden; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6.5rem));
  padding-bottom: clamp(4rem, 3rem + 4vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  will-change: transform;
}
.blob-a { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -8%; top: -10%;
  background: radial-gradient(circle, #E11DFF 0%, transparent 65%); animation: drift-a 11s ease-in-out infinite alternate; }
.blob-b { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -10%; top: 0%;
  background: radial-gradient(circle, #14C8E0 0%, transparent 65%); opacity: .45; animation: drift-b 12s ease-in-out infinite alternate; }
.blob-c { width: 44vw; height: 44vw; max-width: 620px; max-height: 620px; left: 28%; top: 30%;
  background: radial-gradient(circle, #7C3AED 0%, transparent 65%); animation: drift-c 9s ease-in-out infinite alternate; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after { /* fade into page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
@keyframes drift-a { to { transform: translate(14%, 18%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16%, 14%) scale(.9); } }
@keyframes drift-c { to { transform: translate(10%, -16%) scale(1.2); } }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1rem .45rem .8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  font-size: .875rem; font-weight: 500; color: var(--text);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(20, 200, 224, .2), 0 0 12px var(--cyan);
}
.hero-title {
  margin-top: var(--s-5);
  font-size: var(--fs-h1); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.02;
  max-width: 14ch;
}
.hero-sub { margin-top: var(--s-5); max-width: 60ch; font-size: var(--fs-lead); color: var(--muted); }
.hero-ctas { margin-top: var(--s-6); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

/* Dashboard (decorative, simulated security overview) */
.dash {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  width: 100%; max-width: 980px;
  text-align: left;
  padding: var(--s-3);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 120px -40px rgba(124, 58, 237, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  position: relative;
}
.dash::before { /* top highlight line */
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 255, .9), rgba(20, 200, 224, .9), transparent);
}
.dash-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .25rem .4rem .7rem;
  font-size: .8125rem; color: var(--faint);
  min-width: 0;
}
.dash-icon { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.dash-title { font-family: var(--font-display); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash-sub { display: none; white-space: nowrap; }
.dash-live {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .4rem;
  padding: .15rem .6rem; border-radius: var(--r-pill);
  background: rgba(52, 227, 164, .1); color: var(--ok); font-weight: 600; font-size: .75rem;
  white-space: nowrap;
}
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.dash-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.kpi {
  display: flex; flex-direction: column; min-width: 0;
  padding: .7rem .8rem;
  border-radius: var(--r-md);
  background: rgba(7, 10, 26, .55);
  border: 1px solid var(--border);
}
.kpi-label, .kpi-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label { font-size: .75rem; color: var(--muted); font-weight: 500; }
.kpi-value {
  margin-top: .2rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 1.02rem + .75vw, 1.6rem);
  letter-spacing: -0.02em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-value small { font-size: .6em; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-meta { margin-top: .15rem; font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.kpi-meta b { font-weight: 600; color: var(--muted); }
.kpi.is-alert { border-color: rgba(255, 107, 154, .35); }
.kpi.is-alert .kpi-value { color: var(--danger); }

.dash-chart {
  margin-top: .5rem;
  padding: .7rem .8rem .55rem;
  border-radius: var(--r-md);
  background: rgba(7, 10, 26, .55);
  border: 1px solid var(--border);
}
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; font-size: .75rem; color: var(--muted); }
.chart-title { font-weight: 500; }
.chart-legend { display: inline-flex; gap: .75rem; color: var(--faint); }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.sw { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.sw-req { background: var(--grad); }
.sw-blk { background: var(--danger); }
.chart-wrap { position: relative; height: 170px; margin-top: .45rem; }
.dash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.chart-tip {
  position: absolute; top: 2px; left: 0;
  padding: .3rem .5rem; border-radius: 8px;
  background: rgba(7, 10, 26, .92); border: 1px solid var(--border-strong);
  font-size: .7rem; line-height: 1.4; color: var(--text);
  white-space: nowrap; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.chart-tip[hidden] { display: none; }
.chart-tip b { font-weight: 600; }
.chart-tip .t-time { color: var(--faint); }
.chart-tip .t-blk { color: var(--danger); }

.dash-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .4rem 1rem; padding: .65rem .4rem .1rem;
  font-size: .75rem; color: var(--muted);
}
.mix { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; min-width: 0; }
.mix-label { color: var(--faint); }
.mix-bar { display: flex; width: 88px; height: 6px; border-radius: var(--r-pill); overflow: hidden; background: rgba(255, 255, 255, .08); }
.mix-bar i { display: block; height: 100%; transition: width .6s var(--ease); }
.m-sqli { background: var(--magenta); }
.m-xss { background: var(--violet); }
.m-bot { background: var(--cyan); }
.mix-legend { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mix-legend b { font-weight: 600; color: var(--text); }
.dash-note { font-size: .6875rem; color: var(--faint); }

/* ---------- About + rings ---------- */
.about-grid { display: grid; gap: var(--s-7); align-items: center; }
.about-copy .lead { margin-top: var(--s-5); }
.stats { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.stat {
  margin: 0;
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-5);
}
.stat:hover::before { opacity: 1; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 9; }
.ring-bar {
  fill: none; stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 * (1 - var(--p, var(--pv, 1))));
  transition: stroke-dashoffset 1.4s var(--ease);
  filter: drop-shadow(0 0 6px rgba(225, 29, 255, .45));
}
.ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat figcaption strong { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.01em; }
.stat figcaption span { color: var(--muted); font-size: .9375rem; }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-width: 0;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); background: var(--surface-strong); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: var(--fs-h3); font-weight: 600; }
.card p { color: var(--muted); }
.card-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(225, 29, 255, .25), rgba(20, 200, 224, .25));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  margin-bottom: var(--s-2);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-icon.sm { width: 44px; height: 44px; border-radius: 14px; margin: 0; }
.card-icon.sm .icon { width: 20px; height: 20px; }

.bento-wide > div { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }

.bento-hero {
  background:
    radial-gradient(500px 300px at 80% 100%, rgba(124, 58, 237, .25), transparent 70%),
    var(--surface);
}
.bento-hero h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); font-weight: 700; }
.bento-hero p { max-width: 40ch; }
.shield-art { margin-top: auto; align-self: center; width: 100%; max-width: 380px; padding-top: var(--s-4); }
.shield-art .nodes circle { animation: blink 3.2s ease-in-out infinite; }
.shield-art .nodes circle:nth-child(2n) { animation-delay: 1.2s; }
.shield-art .nodes circle:nth-child(3n) { animation-delay: 2s; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Why us ---------- */
.why { background: linear-gradient(180deg, transparent, rgba(11, 16, 48, .65) 30%, rgba(11, 16, 48, .65) 70%, transparent); }
.why-grid { display: grid; gap: var(--s-7); align-items: start; }
.why-head .lead { margin-top: var(--s-5); margin-bottom: var(--s-6); }
.why-list { display: grid; gap: var(--s-4); }
.why-item {
  display: flex; gap: var(--s-5); align-items: flex-start;
  padding: var(--s-5) clamp(1.25rem, 1rem + 1vw, 1.75rem);
  transition: transform .3s var(--ease);
}
.why-item:hover { transform: translateX(4px); }
.why-item:hover::before { opacity: 1; }
.why-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(225, 29, 255, .7);
}
.why-icon .icon { width: 22px; height: 22px; }
.why-item h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: .35rem; }
.why-item p { color: var(--muted); }

/* ---------- Process track ---------- */
.track {
  position: relative;
  display: grid; gap: var(--s-6);
  counter-reset: step;
}
.step { position: relative; padding-left: 80px; min-height: 56px; }
.step:not(:last-child)::after { /* vertical connector on mobile: node to next node */
  content: ""; position: absolute;
  left: 27px; top: 56px; width: 2px;
  height: calc(100% - 56px + var(--s-6));
  background: linear-gradient(180deg, var(--magenta), var(--violet), var(--cyan));
  opacity: .7;
}
.node {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: #fff;
  background: var(--bg-2);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(124, 58, 237, .65);
}
.step h3 { font-size: var(--fs-h3); font-weight: 600; margin: .9rem 0 .4rem; text-wrap: pretty; }
.step p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--s-5); }
.quote {
  margin: 0;
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--s-5);
  transition: transform .3s var(--ease);
}
.quote:hover { transform: translateY(-4px); }
.quote:hover::before { opacity: 1; }
.quote-mark { width: 40px; height: 40px; fill: none; stroke: var(--magenta); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--text); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.quote figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; }
.quote figcaption span span { color: var(--muted); font-size: .9375rem; }
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: .9375rem;
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--violet));
}
.avatar.alt { background: linear-gradient(135deg, var(--violet), #0B7F93); }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 1px;
  background: var(--grad-soft);
  box-shadow: 0 40px 100px -40px rgba(124, 58, 237, .6);
}
.contact-inner {
  position: relative; overflow: hidden;
  display: grid; gap: var(--s-6);
  border-radius: calc(var(--r-xl) - 1px);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(225, 29, 255, .18), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(20, 200, 224, .14), transparent 70%),
    var(--bg-2);
}
.contact-copy .lead { margin-top: var(--s-5); }
.contact-mail {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-6); min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  word-break: break-all;
}
.contact-mail:hover { color: var(--cyan); }

.contact-form { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; gap: var(--s-4); align-content: start; background: rgba(255, 255, 255, .04); }
.contact-panel__title { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; }
.contact-panel__text { color: var(--muted); }
.contact-points { list-style: none; display: grid; gap: var(--s-3); padding: 0; margin: 0; }
.contact-points li { display: grid; gap: .15rem; padding-left: 1.1rem; position: relative; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta, #E11DFF), var(--cyan)); }
.contact-points strong { color: var(--text); font-weight: 600; }
.contact-points span { color: var(--muted); font-size: .9375rem; }
.contact-panel .btn { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050713;
  padding-top: var(--s-7);
}
.footer-inner { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.footer-inner .brand img { height: 64px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  border-radius: var(--r-pill); color: var(--muted); font-weight: 500;
  transition: color .2s, background-color .2s;
}
.footer-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.footer-bottom {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .875rem;
}
.to-top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--muted); }
.to-top:hover { color: var(--text); }
.to-top .icon { width: 16px; height: 16px; }

/* ---------- Scroll reveal (only when JS present) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .ring-bar { --p: 0; }
.js .is-visible .ring-bar { --p: var(--pv, 1); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 600px) {
  .dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-sub { display: inline; }
  .dash-sub::before { content: "·"; margin-right: .5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-hero { grid-column: 1 / -1; }
  .bento-wide { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: var(--s-5); }
  .bento-wide .card-icon { margin-bottom: 0; }
  .quotes { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .dash { padding: var(--s-4); }
  .dash-kpis { gap: var(--s-3); }
  .kpi { padding: .85rem 1rem; }
  .dash-chart { margin-top: var(--s-3); padding: .85rem 1rem .6rem; }
  .chart-wrap { height: 210px; }

  .about-grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-8); }
  .why-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); }
  .why-head { position: sticky; top: calc(var(--header-h) + 2rem); }

  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); }
  .bento-hero { grid-column: 1 / 3; grid-row: 1 / 3; }
  .bento-wide { grid-column: span 2; }

  .contact-inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: var(--s-8); }

  /* horizontal process track */
  .track { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
  .step:not(:last-child)::after { display: none; }
  .track::before {
    content: ""; position: absolute; opacity: .7;
    left: 28px; right: calc(25% - .75 * var(--s-5) - 28px); top: 27px;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--violet), var(--cyan));
  }
  .step { padding-left: 0; padding-top: 84px; }
  .step h3 { margin-top: 0; }
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; display: flex; flex-direction: row; align-items: center; gap: var(--s-1);
    padding: 0; background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-menu a:not(.btn) { min-height: 44px; padding: 0 .9rem; border-radius: var(--r-pill); font-size: .9375rem; }
  .nav-cta-item { padding: 0 0 0 var(--s-3); }
  .nav-cta-item .btn { width: auto; }
  .brand img { height: 56px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .blob { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Legal pages ===== */
/* Footer legal row (all pages) */
.footer-legal-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-1); }
.footer-legal li { display: inline-flex; align-items: center; }
.footer-legal li + li::before { content: "\00B7"; color: var(--faint); margin-right: var(--s-1); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .35rem; color: var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--text); }
.footer-note { color: var(--faint); }

/* Contact note (home page) */
.contact-legal-note { margin-top: var(--s-3); font-size: .875rem; color: var(--muted); }
.contact-legal-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 200, 224, .6); }
.contact-legal-note a:hover { color: var(--cyan); }

/* Page hero */
.legal-hero {
  position: relative;
  padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(800px 320px at 15% 0%, rgba(225, 29, 255, .10), transparent 70%),
              radial-gradient(700px 300px at 90% 20%, rgba(20, 200, 224, .08), transparent 70%);
}
.legal-title { font-size: clamp(2.125rem, 1.5rem + 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
.legal-hero .lead { margin-top: var(--s-4); max-width: 62ch; }
.legal-meta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: var(--s-5);
  padding: .35rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04);
  font-size: .875rem; color: var(--muted);
}
.legal-meta .icon { width: 16px; height: 16px; color: var(--cyan); }

/* Layout */
.legal-layout {
  display: grid; gap: var(--s-6);
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 4rem) var(--section-y);
}
.legal-toc { padding: var(--s-5); align-self: start; }
.legal-toc-title {
  font-family: var(--font-display); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: var(--s-3);
}
.legal-toc ol { display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: .6rem; align-items: baseline;
  padding: .45rem .6rem; border-radius: var(--r-sm);
  color: var(--muted); font-size: .9375rem; line-height: 1.4;
  transition: color .2s, background-color .2s;
}
.legal-toc a::before { content: counter(toc) "."; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 1.5em; }
.legal-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* Long-form content */
.legal-content { max-width: 70ch; min-width: 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; }
.legal-content section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-content section + section { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.legal-content h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 700; color: var(--text); margin-bottom: var(--s-4); letter-spacing: -0.02em; }
.legal-content h3 { font-size: var(--fs-h3); font-weight: 600; color: var(--text); margin: var(--s-5) 0 var(--s-2); }
.legal-content p + p, .legal-content p + ul, .legal-content ul + p, .legal-content p + ol, .legal-content ol + p,
.legal-content .legal-card + p, .legal-content p + .legal-card, .legal-content p + .legal-table-wrap, .legal-content .legal-table-wrap + p { margin-top: var(--s-4); }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 200, 224, .6); overflow-wrap: anywhere; }
.legal-content a:hover { color: var(--cyan); }
.legal-content ul, .legal-content ol { display: grid; gap: var(--s-2); }
.legal-content ul li { position: relative; padding-left: 1.4rem; }
.legal-content ul li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--magenta), var(--cyan)); }
.legal-content ol { counter-reset: li; }
.legal-content ol li { counter-increment: li; position: relative; padding-left: 2rem; }
.legal-content ol li::before { content: "(" counter(li, lower-alpha) ")"; position: absolute; left: 0; color: var(--faint); }
.legal-card { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.legal-card p + p { margin-top: var(--s-2); }
.legal-card dl { margin: 0; display: grid; gap: var(--s-3); }
.legal-card dt { color: var(--text); font-weight: 600; font-size: .9375rem; }
.legal-card dd { margin: 0; }
.legal-callout { border-left: 3px solid var(--cyan); }
.legal-placeholder { color: var(--text); background: rgba(225, 29, 255, .12); border-radius: 4px; padding: 0 .25rem; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal-table th, .legal-table td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-table th { color: var(--text); font-family: var(--font-display); font-weight: 600; background: rgba(255, 255, 255, .04); }
.legal-table tr:last-child td { border-bottom: 0; }

@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; }
}
@media (max-width: 599px) {
  .legal-table { font-size: .875rem; }
  .legal-table th, .legal-table td { padding: .65rem .6rem; overflow-wrap: anywhere; hyphens: auto; }
}

/* ===== Cookie banner ===== */
.footer-cookie-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .35rem;
  background: none; border: 0; border-radius: 6px;
  color: var(--muted); font-size: inherit; cursor: pointer;
  transition: color .2s;
}
.footer-cookie-btn:hover { color: var(--text); }

.cookie-banner {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: 0;
  display: grid; gap: var(--s-3);
  padding: var(--s-5) var(--gutter) calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 16, 48, .97);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-top: 1px solid var(--border-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8), var(--glow);
  max-height: 80vh; overflow-y: auto;
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner::before { /* top highlight line */
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 255, .9), rgba(20, 200, 224, .9), transparent);
}
.cookie-banner__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.015em; color: var(--text);
}
.cookie-banner__text { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.cookie-banner__text a {
  color: var(--text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(20, 200, 224, .6); white-space: nowrap;
}
.cookie-banner__text a:hover { color: var(--cyan); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-1); }
.cookie-banner__actions .btn { width: 100%; min-height: 48px; }
.cookie-banner .btn-ghost { background: rgba(255, 255, 255, .06); }

@media (min-width: 600px) {
  .cookie-banner {
    left: auto; right: var(--s-5);
    width: min(420px, calc(100vw - 2 * var(--s-5)));
    padding: var(--s-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transform: none; transition: none; }
}
