/* ==========================================================================
   VIGIL — HOMEPAGE DESIGN SYSTEM
   Anchored on the brand teal, warmed with per-app accents, layered depth and
   an aurora ground so the page reads as a modern product site — deliberately
   not as a clinical facility.
   ========================================================================== */

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

:root {
  /* Brand ramp */
  --brand-900: #053B36;
  --brand-800: #075A52;
  --brand-700: #0B7A70;
  --brand-600: #0D9488;
  --brand-500: #14B8A6;
  --brand-400: #2DD4BF;
  --brand-300: #5EEAD4;
  --brand-100: #CCF3EC;
  --brand-50:  #EEF9F6;

  /* Ink */
  --ink-900: #07202B;
  --ink-800: #0E2E3C;
  --ink-600: #2F5364;
  --ink-500: #5A7C8B;
  --ink-400: #8AA5B1;

  /* Ground */
  --bg: #F4FAF8;
  --bg-deep: #E9F5F1;
  --surface: #FFFFFF;
  --line: #DCEBE7;
  --line-soft: rgba(13, 148, 136, 0.14);

  /* Dark ground */
  --deep: #06171F;
  --deep-2: #0C2631;
  --deep-3: #12333F;
  --deep-line: rgba(255, 255, 255, 0.10);

  /* Warm accent — used sparingly, to break the all-teal flatness */
  --accent: #FFB45C;
  --accent-soft: #FFF1DE;

  /* Per-app accents */
  --app-med: #0D9488;
  --app-pet: #E2664A;
  --app-circle: #6366F1;
  --app-supp: #2FA85C;
  --app-glow: #DD4E92;
  --app-meal: #E39A1C;

  --danger: #DC2626;

  /* Layered shadows */
  --sh-1: 0 1px 2px rgba(7, 32, 43, .05), 0 4px 14px rgba(7, 32, 43, .05);
  --sh-2: 0 2px 6px rgba(7, 32, 43, .05), 0 14px 34px rgba(7, 32, 43, .08);
  --sh-3: 0 4px 10px rgba(7, 32, 43, .06), 0 30px 64px rgba(7, 32, 43, .14);
  --sh-brand: 0 8px 22px rgba(13, 148, 136, .30);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 9999px;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--brand-600); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon.filled,
.filled {
  fill: currentColor;
  stroke: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 55%, var(--brand-800) 100%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 148, 136, .38);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary .icon { transition: transform .25s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--ink-900);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  color: var(--brand-700);
  border-color: var(--brand-400);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(244, 250, 248, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header-nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(7, 32, 43, .06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.04em;
}
.brand-logo img {
  width: 40px;
  height: 40px;
  transition: transform .4s var(--ease);
}
.brand-logo:hover {
  color: var(--ink-900);
}
.brand-logo:hover img { transform: scale(1.07); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-500);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transition: right .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand-700); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; }

.nav-cta {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(11, 122, 112, .26);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 122, 112, .34);
}

.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: var(--ink-900);
  cursor: pointer;
}
.mobile-toggle .icon-close { display: none; }
.mobile-toggle.is-open .icon-close { display: inline-block; }
.mobile-toggle.is-open .icon-open { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  padding: 148px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(45, 212, 191, .20), transparent 62%),
    radial-gradient(900px 460px at 92% 6%, rgba(99, 102, 241, .12), transparent 60%),
    linear-gradient(180deg, #EFF9F6 0%, var(--bg) 62%);
}
.hero-wrapper::after {
  /* fine grain so the large gradient never looks flat */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: soft-light;
  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'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.aurora {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: drift 22s var(--ease) infinite alternate;
}
.blob-a {
  width: 460px; height: 460px;
  top: -60px; left: -40px;
  background: radial-gradient(circle, rgba(45,212,191,.75), transparent 68%);
}
.blob-b {
  width: 380px; height: 380px;
  top: 180px; right: 6%;
  background: radial-gradient(circle, rgba(255,180,92,.55), transparent 68%);
  animation-delay: -7s;
}
.blob-c {
  width: 420px; height: 420px;
  bottom: -40px; left: 42%;
  background: radial-gradient(circle, rgba(99,102,241,.42), transparent 68%);
  animation-delay: -14s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, -30px, 0) scale(1.12); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  backdrop-filter: blur(10px);
  color: var(--brand-800);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.hero-badge .icon {
  font-size: 19px;
  color: var(--brand-600);
}

.hero-title {
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--ink-900);
}

.grad-text {
  background: linear-gradient(105deg, var(--brand-600) 0%, var(--brand-500) 42%, #4F8DF0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-600);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
}
.hero-trust .icon {
  font-size: 16px;
  color: var(--brand-600);
}

/* ---- Device mockup ---- */
.hero-device-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.device-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, .34), transparent 66%);
  filter: blur(50px);
  z-index: 0;
}

.device {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 330px;
  background: linear-gradient(160deg, #0F2C38, #06171F);
  border-radius: 42px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10) inset,
    var(--sh-3),
    0 50px 80px -30px rgba(6, 23, 31, .55);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) translateZ(0);
  transition: transform .6s var(--ease);
}
.device:hover {
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.device-screen {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FBF9 100%);
  border-radius: 32px;
  padding: 26px 18px 20px;
  min-height: 510px;
}

.screen-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.screen-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.screen-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.screen-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  border: 1px solid var(--line-soft);
  color: var(--brand-600);
  font-size: 20px;
  flex-shrink: 0;
}

.screen-progress { margin-bottom: 16px; }
.screen-progress-bar {
  height: 7px;
  border-radius: 99px;
  background: var(--bg-deep);
  overflow: hidden;
  margin-bottom: 7px;
}
.screen-progress-bar span {
  display: block;
  height: 100%;
  width: 67%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  animation: fillbar 1.6s var(--ease) both;
}
@keyframes fillbar { from { width: 0; } }
.screen-progress p {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-400);
}

.screen-list { list-style: none; display: grid; gap: 9px; }

.screen-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(7, 32, 43, .04);
}
.screen-item .item-dot {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
  color: var(--app, var(--brand-600));
  background: color-mix(in srgb, var(--app, var(--brand-600)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--app, var(--brand-600)) 22%, #fff);
}
.screen-item .item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.screen-item strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-400);
  font-weight: 500;
}
.screen-item .item-state {
  color: var(--brand-600);
  font-size: 15px;
  flex-shrink: 0;
}
.screen-item.done { opacity: .62; }
.screen-item.done strong { text-decoration: line-through; text-decoration-color: var(--ink-400); }
.screen-item.live {
  border-color: color-mix(in srgb, var(--app) 45%, #fff);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--app) 20%, transparent);
}
.item-state.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--app, var(--brand-500));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--app, var(--brand-500)) 60%, transparent);
  animation: ping 1.9s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--app, #14B8A6) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* --------------------------------------------------------------------------
   Scope strip — what Vigil is and is not
   -------------------------------------------------------------------------- */
.scope-strip { padding: 0 0 20px; margin-top: -24px; position: relative; z-index: 5; }

.scope-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.scope-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
}

.scope-lead { display: flex; gap: 18px; }
.scope-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 22px;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--line-soft);
}
.scope-lead h2 {
  font-size: clamp(19px, 2.1vw, 24px);
  margin-bottom: 8px;
  line-height: 1.28;
}
.scope-lead p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.68;
}

.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
}
.scope-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 11px;
  line-height: 1.35;
}
.scope-list .icon { font-size: 15px; flex-shrink: 0; }
.scope-list .is-yes,
.scope-list li.is-yes {
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid var(--line-soft);
}
.scope-list li.is-no {
  background: #FDF2F2;
  color: #9B2C2C;
  border: 1px solid rgba(220, 38, 38, .16);
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.pillars-section { padding: 72px 0 24px; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
  border-color: var(--brand-300);
}
.pillar-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 10px 20px rgba(13, 148, 136, .26);
  margin-bottom: 18px;
}
.pillar h3 { font-size: 19px; margin-bottom: 9px; }
.pillar p { font-size: 14.5px; color: var(--ink-600); line-height: 1.65; }

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
}

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.7;
}
.section-head.is-dark h2 { color: #fff; }
.section-head.is-dark p { color: rgba(255, 255, 255, .68); }
.section-head.is-dark .section-tag { color: var(--brand-300); }
.section-head.is-dark .section-tag::before {
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-section { padding: 90px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: -0.032em;
  margin-bottom: 18px;
}
.about-lede {
  font-size: 16px;
  color: var(--ink-600);
  line-height: 1.72;
  margin-bottom: 30px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-bottom: 36px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.45;
}
.check-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-600));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 10px rgba(13, 148, 136, .28);
}
.check-icon .icon { width: 13px; height: 13px; stroke-width: 3; }

.about-image-container {
  position: relative;
  padding: 22px 30px 30px 22px;
}
.about-bg-frame {
  position: absolute;
  inset: 0 0 0 32px;
  background: linear-gradient(150deg, var(--brand-100), #DCEEF6);
  border-radius: var(--r-xl);
}
.about-bg-accent {
  position: absolute;
  top: -14px; right: 8px;
  width: 108px; height: 108px;
  border-radius: 26px;
  background: linear-gradient(140deg, var(--accent), #FF9F45);
  opacity: .9;
  transform: rotate(8deg);
}
.about-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.about-stat {
  position: absolute;
  z-index: 3;
  left: -6%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px 12px 12px;
  box-shadow: var(--sh-2);
}
.about-stat-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  flex-shrink: 0;
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
}
.about-stat em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   Apps ecosystem — six cards, one accent each
   -------------------------------------------------------------------------- */
.apps-section {
  padding: 90px 0;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(45, 212, 191, .14), transparent 62%),
    var(--bg-deep);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--app);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.app-card::after {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--app) 20%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(7, 32, 43, .06), 0 26px 50px color-mix(in srgb, var(--app) 18%, rgba(7, 32, 43, .10));
  border-color: color-mix(in srgb, var(--app) 32%, var(--line));
}
.app-card:hover::before { transform: scaleX(1); }
.app-card:hover::after { opacity: 1; }

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.app-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--app) 78%, #fff), var(--app));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--app) 34%, transparent);
  transition: transform .35s var(--ease);
}
.app-card:hover .app-icon { transform: scale(1.06) rotate(-4deg); }
.app-index {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: color-mix(in srgb, var(--app) 22%, transparent);
  letter-spacing: -0.04em;
}

.app-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.app-card p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--app);
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.app-link:hover { color: var(--app); gap: 12px; }
.app-link .icon { transition: transform .25s var(--ease); }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-section { padding: 90px 0; }

.how-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.how-step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #fff, #F7FCFB);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.how-step::after {
  /* connector between steps */
  content: '';
  position: absolute;
  top: 52px;
  right: -13px;
  width: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-300) 0 6px, transparent 6px 11px);
}
.how-step:last-child::after { display: none; }

.how-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-800);
  background: var(--brand-50);
  border: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.how-step h3 { font-size: 18.5px; margin-bottom: 9px; }
.how-step p { font-size: 14.5px; color: var(--ink-600); line-height: 1.66; }

/* --------------------------------------------------------------------------
   Quick start
   -------------------------------------------------------------------------- */
.network-section { padding: 20px 0 96px; }

.network-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(700px 340px at 8% 0%, rgba(45, 212, 191, .30), transparent 60%),
    linear-gradient(140deg, #0C2631 0%, #06171F 70%);
  box-shadow: var(--sh-3);
}
.network-card::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .30), transparent 66%);
  pointer-events: none;
}

.network-copy { position: relative; z-index: 1; }
.network-copy .section-tag { color: var(--brand-300); }
.network-copy .section-tag::before {
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
}
.network-copy h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  margin-bottom: 12px;
}
.network-copy > p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, .70);
  line-height: 1.7;
  margin-bottom: 22px;
}
.network-points { list-style: none; display: grid; gap: 11px; }
.network-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
}
.network-points .icon { font-size: 17px; color: var(--brand-300); }

.quick-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 26px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255, 255, 255, .16);
  font-size: 14.5px;
  font-family: inherit;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field select option { color: var(--ink-900); background: #fff; }
.form-field input::placeholder { color: rgba(255, 255, 255, .38); }
.form-field input:focus,
.form-field select:focus {
  border-color: var(--brand-400);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .16);
  outline: none;
}
.quick-form button { grid-column: 1 / -1; margin-top: 4px; }

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  min-height: 0;
}
.form-note.is-ok { color: var(--brand-300); }
.form-note.is-error { color: #FCA5A5; }

/* --------------------------------------------------------------------------
   Data safety
   -------------------------------------------------------------------------- */
.data-safety-section {
  padding: 96px 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(13, 148, 136, .22), transparent 62%),
    var(--deep);
  color: #fff;
}

.safety-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.safety-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid var(--deep-line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.safety-box:hover {
  border-color: rgba(45, 212, 191, .45);
  transform: translateY(-6px);
  background: linear-gradient(160deg, rgba(45, 212, 191, .12), rgba(255, 255, 255, .03));
}
.safety-box .icon-wrap {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: rgba(45, 212, 191, .14);
  border: 1px solid rgba(45, 212, 191, .28);
  display: grid;
  place-items: center;
  color: var(--brand-300);
  font-size: 23px;
  margin-bottom: 18px;
}
.safety-box h3 { font-size: 18.5px; color: #fff; margin-bottom: 9px; }
.safety-box p { font-size: 14.5px; color: rgba(255, 255, 255, .66); line-height: 1.66; }

.safety-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--deep-line);
  font-size: 14px;
  color: rgba(255, 255, 255, .66);
}
.safety-footnote .icon { font-size: 19px; color: var(--brand-300); }
.safety-footnote a { color: var(--brand-300); font-weight: 600; }
.safety-footnote a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */
.disclaimer-bar {
  padding: 22px 0;
  background: var(--accent-soft);
  border-top: 1px solid rgba(224, 138, 26, .28);
  border-bottom: 1px solid rgba(224, 138, 26, .28);
  text-align: center;
  font-size: 13px;
  color: #6B4A18;
  line-height: 1.72;
}
.disclaimer-bar p { max-width: 950px; margin: 0 auto; }
.disclaimer-bar strong { color: #4C3410; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.main-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .68);
  padding: 74px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand img { width: 38px; height: 38px; }

.footer-desc {
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .78);
}
.footer-address {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
}

.footer-col h4 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, .62); font-size: 14px; }
.footer-col a:hover { color: var(--brand-300); }

.footer-bottom {
  border-top: 1px solid var(--deep-line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
/* Progressive enhancement: content is only hidden when JS can reveal it again. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal[data-delay="1"] { transition-delay: .10s; }
.js .reveal[data-delay="2"] { transition-delay: .20s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: left;
  }
  .hero-wrapper { padding-top: 128px; }
  .device { transform: none; max-width: 320px; }
  .device:hover { transform: translateY(-4px); }

  .scope-card { grid-template-columns: 1fr; gap: 26px; padding: 32px 30px; }

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

  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-image-container { max-width: 560px; }

  .apps-grid { grid-template-columns: repeat(2, 1fr); }

  .how-grid { grid-template-columns: 1fr; }
  .how-step::after { display: none; }

  .network-card { grid-template-columns: 1fr; gap: 32px; padding: 38px 32px; }

  .safety-cards-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--sh-3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15.5px;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover,
  .nav-links a.active { background: var(--brand-50); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .hero-wrapper { padding: 116px 0 64px; }
  .hero-title { font-size: clamp(32px, 9vw, 44px); }
  .hero-desc { font-size: 15.5px; }
  .hero-buttons { gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; }

  .device-screen { min-height: 460px; padding: 24px 14px 18px; }

  .scope-card { padding: 26px 22px; border-radius: var(--r-lg); }
  .scope-lead { flex-direction: column; gap: 14px; }
  .scope-list { grid-template-columns: 1fr; }

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

  .check-grid { grid-template-columns: 1fr; }
  .about-image-container { padding: 16px 18px 22px 12px; }
  .about-stat { left: 0; bottom: 0; padding: 10px 13px 10px 10px; }

  .network-card { padding: 30px 22px; border-radius: var(--r-lg); }
  .quick-form { grid-template-columns: 1fr; padding: 20px; }

  .about-section, .apps-section, .how-section, .data-safety-section { padding: 64px 0; }
  .network-section { padding: 12px 0 64px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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

/* Fallback for browsers without color-mix() */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .screen-item .item-dot,
  .app-icon { background: var(--app, var(--brand-600)); color: #fff; }
  .screen-item .item-dot { border-color: var(--app, var(--brand-600)); }
  .app-index { color: var(--line); }
}
