/* Home page (index.html) — modern landing UI */

:root {
  --bg0: #070a10;
  --bg1: #0a1020;
  --text: rgba(245, 247, 255, 0.92);
  --muted: rgba(245, 247, 255, 0.68);
  --muted2: rgba(245, 247, 255, 0.52);
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(20, 24, 40, 0.58);
  --glass2: rgba(22, 28, 50, 0.72);

  --a1: #7aa2ff;
  --a2: #9ae6ff;
  --a3: #8affa8;
  --bad: #ff6b8b;

  --r1: 18px;
  --r2: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

  --max: 1120px;
  --g: clamp(1rem, 4vw, 2.2rem);

  --t: 180ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 560px at 15% 10%, rgba(122, 162, 255, 0.16), transparent 55%),
    radial-gradient(900px 560px at 85% 20%, rgba(154, 230, 255, 0.12), transparent 55%),
    radial-gradient(850px 600px at 60% 110%, rgba(138, 255, 168, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(154, 230, 255, 0.70);
  outline-offset: 3px;
}

/* Background canvas */
#immersion {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.55;
  filter: saturate(1.1);
}

/* Soft noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.container {
  width: min(var(--max), calc(100vw - var(--g) * 2));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 16, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--g);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.navlinks {
  display: flex;
  gap: clamp(0.55rem, 2.2vw, 1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  color: rgba(245, 247, 255, 0.78);
  font-weight: 750;
  font-size: 0.86rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  transition: background var(--t) ease, color var(--t) ease, border-color var(--t) ease;
  border: 1px solid transparent;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--t) ease, background var(--t) ease, border-color var(--t) ease, filter var(--t) ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.20);
}

.btn.primary {
  border-color: rgba(122, 162, 255, 0.38);
  background: linear-gradient(135deg, rgba(122, 162, 255, 0.24), rgba(154, 230, 255, 0.10));
}

/* Consent banner (homepage) */
.consent-banner{
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(4,10,28,.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.consent-copy{display:grid;gap:.25rem}
.consent-title{font-weight:950;letter-spacing:.02em}
.consent-text{color: rgba(255,255,255,.74); line-height: 1.4; font-size: .95rem}

.consent-actions{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}

@media (max-width: 640px){
  .consent-banner{flex-direction: column; align-items: stretch}
  .consent-actions{justify-content: stretch}
  .consent-actions .btn{width:100%}
}

.btn.primary:hover,
.btn.primary:focus-visible {
  filter: brightness(1.06);
}

.hero {
  padding: clamp(2.2rem, 7vw, 4.2rem) 0 clamp(1.8rem, 4vw, 2.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: stretch;
}

.kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 230, 255, 0.20);
  background: rgba(154, 230, 255, 0.06);
  color: rgba(154, 230, 255, 0.92);
  font-weight: 850;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

.h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h1 .grad {
  background: linear-gradient(90deg, rgba(154, 230, 255, 1), rgba(122, 162, 255, 1), rgba(138, 255, 168, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.panel {
  position: relative;
  border-radius: var(--r1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 200deg, rgba(154, 230, 255, 0.0), rgba(154, 230, 255, 0.28), rgba(122, 162, 255, 0.22), rgba(138, 255, 168, 0.18), rgba(154, 230, 255, 0.0));
  filter: blur(14px);
  opacity: 0.55;
  pointer-events: none;
}

.panel > * {
  position: relative;
}

.profile {
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.profile-top {
  display: flex;
  gap: 0.95rem;
  align-items: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.profile-name {
  font-weight: 950;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.profile-role {
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.15rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.stat {
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 0.75rem;
}

.stat .n {
  font-weight: 950;
  font-size: 1.05rem;
}

.stat .l {
  margin-top: 0.12rem;
  color: var(--muted2);
  font-weight: 750;
  font-size: 0.82rem;
}

.section {
  padding: 0 0 clamp(2.4rem, 6vw, 4rem);
}

.h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
}

.sub {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 80ch;
}

.grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--r1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass2);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  padding: 1rem 1rem 0.95rem;
  transform-style: preserve-3d;
  transition: transform var(--t) ease, border-color var(--t) ease, background var(--t) ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(154, 230, 255, 0.22);
  background: rgba(25, 34, 62, 0.78);
}

.card.big {
  grid-column: span 7;
}

.card.tall {
  grid-column: span 5;
}

.card-title {
  font-weight: 950;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: 1.05rem;
}

.card-desc {
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.45;
}

.badges {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 850;
  font-size: 0.78rem;
  color: rgba(245, 247, 255, 0.86);
}

.badge.good {
  border-color: rgba(138, 255, 168, 0.24);
  background: rgba(138, 255, 168, 0.08);
  color: rgba(138, 255, 168, 0.92);
}

.badge.blue {
  border-color: rgba(154, 230, 255, 0.20);
  background: rgba(154, 230, 255, 0.07);
  color: rgba(154, 230, 255, 0.92);
}

.card-cta {
  margin-top: 0.85rem;
  font-weight: 950;
  color: rgba(154, 230, 255, 0.92);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.step {
  border-radius: var(--r1);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem 1rem;
}

.step h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.footer {
  padding: 1.8rem 0 2.4rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 16, 0.35);
}

.footer a {
  color: rgba(154, 230, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 230, 255, 0.22);
}

.footer a:hover,
.footer a:focus-visible {
  border-bottom-color: rgba(154, 230, 255, 0.50);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card.big,
  .card.tall,
  .card {
    grid-column: span 12;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  #immersion {
    display: none;
  }
}
