/* ==========================================================================
   ExtraCell Biotechnologies — Design tokens
   ========================================================================== */
:root {
  /* Palette */
  --bg-deep: #070b14;
  --bg-panel: #0d1324;
  --bg-panel-2: #111a30;
  --violet: #9a52c0;
  --blue: #3f5fd4;
  --cyan: #4fe3d0;
  --cyan-dim: #2bb8a8;

  --ink: #eaf0ff;
  --ink-dim: #b9c4e3;
  --muted: #8a97bd;
  --muted-2: #6b7699;

  --glass-fill: rgba(255, 255, 255, 0.055);
  --glass-fill-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-hover: rgba(255, 255, 255, 0.24);

  --brand-gradient: linear-gradient(120deg, var(--violet), var(--blue));
  --glow-gradient: radial-gradient(circle, rgba(79, 227, 208, 0.5), transparent 70%);

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 30px 80px -20px rgba(63, 95, 212, 0.35);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Space Grotesk', 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-w: 1180px;
}

/* Light theme overrides, applied via [data-theme="light"] on <html> */
[data-theme="light"] {
  --bg-deep: #f4f6fb;
  --bg-panel: #ffffff;
  --bg-panel-2: #eef1f9;

  --ink: #131a2c;
  --ink-dim: #3c4966;
  --muted: #626f92;
  --muted-2: #838fb0;

  --glass-fill: rgba(19, 26, 44, 0.045);
  --glass-fill-hover: rgba(19, 26, 44, 0.08);
  --glass-border: rgba(19, 26, 44, 0.10);
  --glass-border-hover: rgba(19, 26, 44, 0.20);

  --shadow-soft: 0 20px 50px -24px rgba(20, 30, 60, 0.22);
  --shadow-lift: 0 26px 60px -20px rgba(63, 95, 212, 0.22);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(154, 82, 192, 0.14), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(63, 95, 212, 0.12), transparent 55%),
    radial-gradient(600px 500px at 50% 100%, rgba(79, 227, 208, 0.08), transparent 60%);
}
[data-theme="light"] .nav-inner { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .main-nav.open { background: rgba(255, 255, 255, 0.92); }
[data-theme="light"] .footer-logo { filter: none; }
[data-theme="light"] .field select option {
  background-color: #ffffff;
  color: var(--ink);
}
[data-theme="light"] .field select { color-scheme: light; }

/* ==========================================================================
   Reset / base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(79, 227, 208, 0.3); color: var(--ink); }

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Ambient background glow layer, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(154, 82, 192, 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(63, 95, 212, 0.18), transparent 55%),
    radial-gradient(600px 500px at 50% 100%, rgba(79, 227, 208, 0.08), transparent 60%);
  pointer-events: none;
}

/* ==========================================================================
   Eyebrow / section heads / buttons (shared)
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; }

.section { padding: 108px 0; position: relative; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(154, 82, 192, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(154, 82, 192, 0.7); }
.btn-ghost {
  background: var(--glass-fill);
  border-color: var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--glass-border-hover); background: var(--glass-fill-hover); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Glass panel base (used by cards, form, nav)
   ========================================================================== */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}
.tilt { will-change: transform; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 19, 36, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 10px rgba(154, 82, 192, 0.45)); }
.brand-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--glass-fill-hover); color: var(--ink); }
.main-nav .nav-cta {
  background: var(--brand-gradient);
  color: #fff;
  margin-left: 6px;
  box-shadow: 0 8px 24px -8px rgba(154, 82, 192, 0.6);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  margin-left: 4px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--glass-border-hover); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

/* ==========================================================================
   Hero — glass membrane with floating vesicles
   ========================================================================== */
.hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: visible;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { color: #c7b3ea; }
.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--cyan), var(--blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.hero-note { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted-2); }

/* The signature visual: a glass "cell" emitting vesicle/vector particles */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.membrane {
  position: relative;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(154, 82, 192, 0.35), rgba(13, 19, 36, 0.2) 60%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 40px 100px -30px rgba(63, 95, 212, 0.5);
  animation: breathe 7s ease-in-out infinite;
}
.membrane::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.14);
}
.membrane-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--brand-gradient);
  filter: blur(1px);
  box-shadow: 0 0 60px 10px rgba(154, 82, 192, 0.55);
}

.vesicle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), rgba(79, 227, 208, 0.55) 55%, rgba(79, 227, 208, 0.15) 80%);
  box-shadow: 0 0 18px 2px rgba(79, 227, 208, 0.5);
  animation: drift 9s ease-in-out infinite;
}
.v1 { width: 22px; height: 22px; top: 8%;  left: 62%; animation-delay: 0s; }
.v2 { width: 14px; height: 14px; top: 22%; left: 84%; animation-delay: 1.2s; }
.v3 { width: 18px; height: 18px; top: 62%; left: 88%; animation-delay: 2.4s; }
.v4 { width: 12px; height: 12px; top: 82%; left: 66%; animation-delay: 0.6s; }
.v5 { width: 16px; height: 16px; top: 80%; left: 30%; animation-delay: 1.8s; }
.v6 { width: 10px; height: 10px; top: 60%; left: 6%;  animation-delay: 3s; }
.v7 { width: 20px; height: 20px; top: 22%; left: 8%;  animation-delay: 2s; }
.v8 { width: 13px; height: 13px; top: 6%;  left: 34%; animation-delay: 0.9s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50%  { transform: translate(14px, -18px) scale(1.12); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .membrane, .vesicle { animation: none; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust { padding: 28px 0 40px; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-item {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.trust-item:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); }
.trust-num { display: block; font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.trust-label { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   Technology section
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.tech-step {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-step:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-lift); }
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  border: 1px solid rgba(79, 227, 208, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.tech-step h3 { font-size: 1.2rem; }
.tech-step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.tech-figure {
  margin: 0 0 44px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
}
.tech-figure img { border-radius: var(--radius-md); }
.tech-figure figcaption { padding: 18px 6px 4px; color: var(--muted); font-size: 0.92rem; }

.tech-cta { text-align: center; }

/* ==========================================================================
   Results
   ========================================================================== */
.results-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}
.results-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.checklist { margin: 22px 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(79, 227, 208, 0.15);
  border: 1px solid var(--cyan);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 5px; top: 9px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.results-chart { padding: 8px; }
.chart-title { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  height: 220px;
  padding: 0 10px;
  border-bottom: 1px solid var(--glass-border);
}
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-fill {
  width: 56px;
  border-radius: 10px 10px 0 0;
  transition: height 1.1s cubic-bezier(.2,.8,.2,1);
}
.bar-base .bar-fill { background: linear-gradient(180deg, rgba(154,82,192,0.35), rgba(154,82,192,0.15)); border: 1px solid rgba(154,82,192,0.4); }
.bar-extra .bar-fill { background: linear-gradient(180deg, var(--cyan), var(--cyan-dim)); box-shadow: 0 0 30px -4px rgba(79,227,208,0.7); }
.bar-label { margin-top: 12px; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.3; }
.chart-cap { margin-top: 16px; font-size: 0.8rem; color: var(--muted-2); }

/* ==========================================================================
   Services cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-lift); }
.card-featured { border-color: rgba(154, 82, 192, 0.5); background: linear-gradient(160deg, rgba(154,82,192,0.12), rgba(63,95,212,0.06)); }
.badge {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(79, 227, 208, 0.15); color: var(--cyan);
  border: 1px solid rgba(79, 227, 208, 0.35);
  padding: 5px 12px; border-radius: 999px;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--cyan);
  margin-bottom: 22px;
}
.card-featured .card-icon { background: rgba(154,82,192,0.18); color: #c7b3ea; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { margin: 0 0 22px; color: var(--muted); }
.card em { font-style: italic; color: var(--ink); }
.card-link { color: var(--cyan); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; }
.card-link span { transition: margin-left .15s ease; display: inline-block; }
.card-link:hover span { margin-left: 5px; }

.services-foot { text-align: center; color: var(--muted); font-size: 0.92rem; max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   About / Team
   ========================================================================== */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.member {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.member:hover { border-color: var(--glass-border-hover); transform: translateY(-4px); }
.avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  box-shadow: 0 0 30px -6px rgba(154,82,192,0.6);
}
.member h3 { font-size: 1.02rem; margin-bottom: 4px; }
.role { font-size: 0.85rem; color: var(--muted); font-family: var(--font-mono); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}
.contact-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-details { margin: 26px 0 0; }
.contact-details li { display: flex; flex-direction: column; margin-bottom: 16px; }
.cd-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 3px; }
.contact-details a { color: var(--cyan); font-weight: 500; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255,255,255,0.06);
}
.field input.invalid, .field textarea.invalid { border-color: #e26565; }
.field select { color-scheme: dark; }
.field select option {
  background-color: #10182c;
  color: var(--ink);
}
.contact-form .btn-block { grid-column: 1 / -1; margin-top: 6px; }
.form-status { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: var(--cyan); }
.form-status.error { color: #e28a8a; }
.form-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted-2); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 60px 0 0; border-top: 1px solid var(--glass-border); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; justify-content: flex-end; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-top: 1px solid var(--glass-border);
  color: var(--muted-2); font-size: 0.82rem;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-fill); border: 1px solid var(--glass-border);
  font-size: 0.82rem; color: var(--muted);
}
.social a:hover { color: var(--ink); border-color: var(--glass-border-hover); }

/* ==========================================================================
   Interactive field: cursor glow + ambient scroll-linked particles
   ========================================================================== */
.cursor-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 227, 208, 0.24), rgba(154, 82, 192, 0.16) 45%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
  will-change: transform;
}

.field-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.field-dot {
  position: fixed;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 227, 208, 0.95), rgba(79, 227, 208, 0.12) 70%);
  box-shadow: 0 0 12px 3px rgba(79, 227, 208, 0.45);
  opacity: 0.75;
  will-change: transform;
  animation: field-float 7s ease-in-out infinite;
}
.field-dot.violet {
  background: radial-gradient(circle, rgba(154, 82, 192, 0.95), rgba(154, 82, 192, 0.1) 70%);
  box-shadow: 0 0 10px 2px rgba(154, 82, 192, 0.32);
}
@keyframes field-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
@media (prefers-reduced-motion: reduce), (hover: none) {
  .cursor-field, .field-layer { display: none; }
}

/* Static, CSS-only ambient dots for touch devices (no cursor to track) */
.mobile-field { display: none; }
@media (hover: none) {
  .mobile-field {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }
  .mobile-field span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 227, 208, 0.85), rgba(79, 227, 208, 0.1) 70%);
    box-shadow: 0 0 12px 3px rgba(79, 227, 208, 0.4);
    opacity: 0.55;
    animation: field-float 8s ease-in-out infinite;
  }
  .mobile-field span:nth-child(1) { top: 8vh;  left: 12vw; animation-delay: 0s; }
  .mobile-field span:nth-child(2) { top: 22vh; left: 82vw; animation-delay: 1.2s;
    background: radial-gradient(circle, rgba(154, 82, 192, 0.9), rgba(154, 82, 192, 0.1) 70%);
    box-shadow: 0 0 12px 3px rgba(154, 82, 192, 0.35); }
  .mobile-field span:nth-child(3) { top: 45vh; left: 6vw;  animation-delay: 2.4s; }
  .mobile-field span:nth-child(4) { top: 63vh; left: 90vw; animation-delay: 0.6s;
    background: radial-gradient(circle, rgba(154, 82, 192, 0.9), rgba(154, 82, 192, 0.1) 70%);
    box-shadow: 0 0 12px 3px rgba(154, 82, 192, 0.35); }
  .mobile-field span:nth-child(5) { top: 80vh; left: 20vw; animation-delay: 1.8s; }
  .mobile-field span:nth-child(6) { top: 100vh; left: 70vw; animation-delay: 3s; }
  .mobile-field span:nth-child(7) { top: 130vh; left: 10vw; animation-delay: 0.9s;
    background: radial-gradient(circle, rgba(154, 82, 192, 0.9), rgba(154, 82, 192, 0.1) 70%);
    box-shadow: 0 0 12px 3px rgba(154, 82, 192, 0.35); }
  .mobile-field span:nth-child(8) { top: 160vh; left: 85vw; animation-delay: 2s; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-field { display: none; }
}

/* ==========================================================================
   Sub-page hero (Technology / News)
   ========================================================================== */
.subpage-hero { padding: 48px 0 30px; position: relative; }
.subpage-hero .hero-bg { display: none; }
.subpage-hero-inner { max-width: 760px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0 0 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.subpage-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.subpage-hero > .container > p:last-child,
.subpage-hero-inner > p { color: var(--muted); font-size: 1.02rem; }

/* ==========================================================================
   News grid / cards
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-lift); }
.news-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(154, 82, 192, 0.35), rgba(63, 95, 212, 0.25));
  position: relative;
  overflow: hidden;
}
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-media.placeholder { display: flex; align-items: center; justify-content: center; }
.news-card-media.placeholder svg { width: 40%; height: 40%; opacity: 0.55; }
.news-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-card-date { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2); }
.news-card-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(79, 227, 208, 0.14); color: var(--cyan);
  border: 1px solid rgba(79, 227, 208, 0.32);
  padding: 3px 10px; border-radius: 999px;
}
.news-card h3 { font-size: 1.12rem; margin-bottom: 10px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }

.news-empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px dashed var(--glass-border);
}

/* Skeleton loading state */
.news-skeleton { display: contents; }
.news-skel-card {
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.news-skel-media { aspect-ratio: 16 / 10; background: var(--glass-fill-hover); animation: skel-pulse 1.6s ease-in-out infinite; }
.news-skel-body { padding: 24px; }
.news-skel-line { height: 12px; border-radius: 6px; background: var(--glass-fill-hover); margin-bottom: 10px; animation: skel-pulse 1.6s ease-in-out infinite; }
.news-skel-line.w60 { width: 60%; }
.news-skel-line.w90 { width: 90%; }
.news-skel-line.w40 { width: 40%; height: 10px; }
@keyframes skel-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ==========================================================================
   Newsletter section
   ========================================================================== */
.newsletter { padding: 90px 0 110px; }
.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}
.newsletter-inner h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.newsletter-inner > p { color: var(--muted); }
.newsletter-form {
  display: flex;
  gap: 12px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--cyan); }
.newsletter-form .form-status { flex-basis: 100%; text-align: center; font-size: 0.88rem; min-height: 1.2em; }
.newsletter-note { font-size: 0.78rem; color: var(--muted-2); margin: 0; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .subpage-hero { padding: 24px 0 20px; }
  .subpage-hero h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card-body { padding: 18px 18px 20px; }
  .newsletter { padding: 56px 0 64px; }
  .newsletter-inner { padding: 26px; }
  .newsletter-form { flex-direction: column; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto 12px; }
  .results-inner, .contact-inner { grid-template-columns: 1fr; padding: 32px; }
  .tech-grid, .cards, .team { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13, 19, 36, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    backdrop-filter: blur(20px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  [data-theme="light"] .main-nav { background: rgba(255, 255, 255, 0.95); }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 16px; }
  .main-nav .nav-cta { margin: 4px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 48px 0; }
  .container { padding: 0 18px; }

  .nav-inner { padding: 7px 7px 7px 14px; }
  .brand-mark svg { width: 32px; height: 32px; }
  .brand-name { font-size: 0.92rem; }
  .brand-sub { display: none; }
  .theme-toggle, .nav-toggle { width: 34px; height: 34px; }

  .eyebrow { font-size: 0.7rem; margin-bottom: 10px; }
  .section-head { margin: 0 auto 36px; }
  .section-head h2 { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .section-lead { font-size: 0.92rem; }

  .hero { padding: 28px 0 24px; }
  .hero-title { font-size: clamp(1.55rem, 7vw, 1.95rem); line-height: 1.18; margin-bottom: 14px; }
  .hero-sub { font-size: 0.92rem; margin-bottom: 20px; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .hero-actions .btn { width: 100%; padding: 12px 20px; font-size: 0.88rem; }
  .hero-note { font-size: 0.72rem; }
  .hero-visual { max-width: 190px; }

  .trust { padding: 16px 0 28px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-item { padding: 12px 10px; }
  .trust-num { font-size: 0.88rem; }
  .trust-label { font-size: 0.7rem; }

  .tech-grid { gap: 12px; margin-bottom: 32px; }
  .tech-step, .card, .member { padding: 20px 18px; }
  .tech-step h3, .card h3 { font-size: 1.05rem; }
  .tech-step p, .card p { font-size: 0.88rem; }
  .step-num { font-size: 0.74rem; padding: 3px 10px; margin-bottom: 12px; }

  .contact-form { grid-template-columns: 1fr; }
  .results-inner, .contact-inner { padding: 18px; gap: 26px; }
  .results-copy h2, .contact-copy h2 { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  .checklist li { font-size: 0.88rem; }

  .chart { gap: 14px; height: 170px; }
  .bar-fill { width: 38px; }
  .bar-label { font-size: 0.72rem; }
  .chart-title, .chart-cap { font-size: 0.72rem; }

  .cards { gap: 14px; margin-bottom: 24px; }
  .badge { font-size: 0.62rem; padding: 4px 10px; top: 18px; right: 18px; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 16px; }

  .team { gap: 12px; margin-top: 28px; }
  .avatar { width: 54px; height: 54px; font-size: 0.92rem; }
  .member h3 { font-size: 0.9rem; }
  .role { font-size: 0.75rem; }

  .field label { font-size: 0.78rem; }
  .field input, .field select, .field textarea { padding: 10px 12px; font-size: 0.88rem; }
  .btn { font-size: 0.88rem; padding: 12px 20px; }

  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-nav { gap: 6px 16px; justify-content: flex-start; }
  .footer-brand p { font-size: 0.85rem; }

  .tech-figure { padding: 10px; }
  .tech-figure figcaption { font-size: 0.8rem; padding: 12px 4px 2px; }
}

@media (max-width: 400px) {
  .hero-visual { max-width: 160px; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .chart { gap: 8px; }
  .bar-fill { width: 30px; }
  .brand-name { font-size: 0.85rem; }
}
