/* ================================================================
 * Harbor Security Technologies — preview multi-page shared styles
 * Extracted from ui_kits/harbor_site_kit.html and extended with
 * light-mode overrides so the preview matches the live site's
 * theme-toggle behavior.
 *
 * Default theme: dark (preview is dark-themed by design).
 * Light theme is activated via html[data-theme="light"].
 * ================================================================ */

:root {
  --ink:        #03070F;
  --ink-2:      #08101F;
  --ink-3:      #0E1A32;
  --ink-4:      #16243F;
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.18);
  --fg:         #F3F6FB;
  --fg-mute:    rgba(243, 246, 251, 0.68);
  --fg-dim:     rgba(243, 246, 251, 0.42);
  --accent:     #38BDF8;
  --accent-2:   #0EA5E9;
  --accent-3:   #7DD3FC;
  --harbor:     #0B3B66;
  --gold:       #C9A227;

  --btn-primary-fg:   #041021;
  --btn-primary-bg:   linear-gradient(135deg, var(--accent), var(--accent-2));
  --btn-ghost-bg:     rgba(255, 255, 255, 0.05);
  --btn-ghost-fg:     var(--fg);
  --btn-ghost-border: var(--line-2);

  --nav-bg:        rgba(3, 7, 15, 0.78);
  --footer-bg:     #01040A;

  --card-ink:      rgba(8, 16, 31, 0.85);
  --card-ink-lg:   linear-gradient(160deg, rgba(14, 26, 50, 0.85), rgba(8, 16, 31, 0.85));
  --card-border:   var(--line-2);
  --input-bg:      rgba(255, 255, 255, 0.03);
  --input-placeholder: rgba(243, 246, 251, 0.3);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Light-mode overrides ────────────────────────────────────
 * The live site's light palette (from css/styles.css:root) is
 * pale slate with sky-500 accent. We map the kit's ink-scale
 * tokens to that palette so the existing component styles
 * keep working without per-element rewrites.
 * Ambient skyline/stars/clouds/water effects assume a dark
 * backdrop — they're hidden below to avoid looking broken
 * against white surfaces.
 * -----------------------------------------------------------*/
html[data-theme="light"] {
  color-scheme: light;
  --ink:        #ffffff;
  --ink-2:      #f8fafc;
  --ink-3:      #f1f5f9;
  --ink-4:      #e2e8f0;
  --line:       #e2e8f0;
  --line-2:     #cbd5e1;
  --fg:         #0f172a;
  --fg-mute:    #475569;
  --fg-dim:     #64748b;
  --accent:     #0EA5E9;
  --accent-2:   #0284C7;
  --accent-3:   #0369A1;

  --btn-primary-fg:   #ffffff;
  --btn-primary-bg:   linear-gradient(135deg, #0EA5E9, #0284C7);
  --btn-ghost-bg:     #f8fafc;
  --btn-ghost-fg:     #0f172a;
  --btn-ghost-border: #cbd5e1;

  --nav-bg:        rgba(255, 255, 255, 0.92);
  --footer-bg:     #f8fafc;

  --card-ink:      #ffffff;
  --card-ink-lg:   linear-gradient(160deg, #ffffff, #f8fafc);
  --input-bg:      #ffffff;
  --input-placeholder: #94a3b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--ink);
  font-family: var(--font-sans);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============================================================
 * AMBIENT SKYLINE / STARS / CLOUDS / WATER / SCANLINE
 * (dark-only; hidden in light mode)
 * ============================================================ */
.skyline-layer {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 65%; pointer-events: none; overflow: hidden; z-index: 0;
  /* Layered bg: color glow on top, photo skyline beneath */
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(11, 59, 102, 0.6) 0%, rgba(3, 7, 15, 0.4) 55%, transparent 85%),
    linear-gradient(180deg, transparent 0%, rgba(14, 26, 50, 0.35) 60%, rgba(3, 7, 15, 0.75) 100%),
    url('../images/hero-home.jpg') center bottom / cover no-repeat;
  filter: saturate(0.8) brightness(0.85);
  mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%, black 85%, transparent 100%);
  opacity: 0.8;
}
.skyline-layer.lg {
  height: 100%; opacity: 0.85;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, black 50%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, black 50%, black 100%);
}
.tint-cyan {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(56, 189, 248, 0.22) 0%, transparent 70%),
              radial-gradient(ellipse 70% 50% at 85% 70%, rgba(11, 59, 102, 0.5) 0%, transparent 70%);
}
.scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(3, 7, 15, 0.3) 0%, rgba(3, 7, 15, 0.7) 60%, rgba(3, 7, 15, 0.95) 100%);
}

/* animated star dots */
.stars {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #7DD3FC 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, #38BDF8 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 55%, #7DD3FC 50%, transparent 100%),
    radial-gradient(1px 1px at 15% 70%, #38BDF8 50%, transparent 100%),
    radial-gradient(1px 1px at 75% 15%, #7DD3FC 50%, transparent 100%);
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.6; } }

.clouds {
  position: absolute; top: 8%; left: 0; right: 0; height: 180px;
  pointer-events: none; z-index: 1; opacity: 0.25;
  background:
    radial-gradient(ellipse 180px 40px at 10% 30%, rgba(125, 211, 252, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 240px 50px at 60% 60%, rgba(125, 211, 252, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 200px 45px at 90% 40%, rgba(125, 211, 252, 0.3) 0%, transparent 60%);
  animation: drift 60s linear infinite;
}
@keyframes drift { 0% { transform: translateX(0); } 100% { transform: translateX(-100px); } }

.water {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14%; pointer-events: none; z-index: 2; overflow: hidden;
}
.water::before,
.water::after {
  content: ''; position: absolute; left: -10%; right: -10%; bottom: 0; height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.08) 70%, rgba(56, 189, 248, 0.18) 100%);
  transform: skewY(-1deg);
}
.water::after { animation: ripple 7s ease-in-out infinite; opacity: 0.5; }
@keyframes ripple { 0%, 100% { transform: skewY(-1deg) translateX(0); } 50% { transform: skewY(-0.3deg) translateX(30px); } }

/* Dark-only ambient extras hidden in light mode (they were composed
 * against an ink-dark background and would look like grey smudges). */
html[data-theme="light"] .stars,
html[data-theme="light"] .clouds,
html[data-theme="light"] .scrim,
html[data-theme="light"] .beam {
  display: none !important;
}

/* Skyline, cyan glow, and water stay in light mode but are re-tuned
 * so the photo reads as a muted daytime silhouette rather than a
 * grey smudge over white. */
html[data-theme="light"] .skyline-layer {
  filter: saturate(0.85) brightness(1) contrast(1);
  opacity: 0.55;
}
html[data-theme="light"] .skyline-layer.lg {
  opacity: 0.7;
}
html[data-theme="light"] .tint-cyan {
  opacity: 0.35;
}
html[data-theme="light"] .water {
  opacity: 0.35;
}

/* ============================================================
 * PHOTO-BG sections — full-bleed skyline photo + dark scrim.
 * Used on .hero.hero-photo and any .sec.photo-bg. Always dark
 * regardless of theme so the text stays legible over the photo.
 * ============================================================ */
.hero.hero-photo,
.sec.photo-bg {
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.70) 60%, rgba(15,23,42,0.95) 100%),
    url('../images/hero-home.jpg') center center / cover no-repeat;
}
.hero.hero-photo .content { text-align: center; }
.hero.hero-photo .lead { margin-left: auto; margin-right: auto; }
.hero.hero-photo .hero-cta { justify-content: center; }
.hero.hero-photo h1,
.hero.hero-photo .lead,
.sec.photo-bg h1,
.sec.photo-bg h2,
.sec.photo-bg h3,
.sec.photo-bg p,
.sec.photo-bg .lead,
.sec.photo-bg .lead-copy,
.sec.photo-bg .eyebrow,
.sec.photo-bg blockquote,
.sec.photo-bg cite {
  color: #f1f5f9;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.sec.photo-bg p,
.sec.photo-bg .lead,
.sec.photo-bg .lead-copy { color: #cbd5e1; }
.hero.hero-photo .lead { color: #cbd5e1; }
.sec.photo-bg .eyebrow { color: var(--accent); text-shadow: none; }
.sec.photo-bg .accent-inline,
.sec.photo-bg .accent-line { color: var(--accent); }
.hero.hero-photo .btn-ghost,
.sec.photo-bg .btn-ghost {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.hero.hero-photo .btn-ghost:hover,
.sec.photo-bg .btn-ghost:hover {
  background: rgba(56,189,248,0.12);
}
/* If a photo-bg section still has ambient divs inside, hide them —
 * the section-level background already provides the photo + scrim. */
.sec.photo-bg > .skyline-layer,
.sec.photo-bg > .tint-cyan,
.sec.photo-bg > .scrim,
.sec.photo-bg > .water,
.sec.photo-bg > .beam,
.sec.photo-bg > .stars,
.sec.photo-bg > .clouds { display: none; }
html[data-theme="light"] .hero.hero-photo h1,
html[data-theme="light"] .hero.hero-photo .lead,
html[data-theme="light"] .sec.photo-bg h1,
html[data-theme="light"] .sec.photo-bg h2,
html[data-theme="light"] .sec.photo-bg h3,
html[data-theme="light"] .sec.photo-bg .lead,
html[data-theme="light"] .sec.photo-bg .lead-copy,
html[data-theme="light"] .sec.photo-bg p,
html[data-theme="light"] .sec.photo-bg blockquote,
html[data-theme="light"] .sec.photo-bg cite {
  color: #f1f5f9;
}
html[data-theme="light"] .sec.photo-bg .lead,
html[data-theme="light"] .sec.photo-bg .lead-copy,
html[data-theme="light"] .sec.photo-bg p {
  color: #cbd5e1;
}

/* Cards with their own light/glass backgrounds sit inside .photo-bg
 * sections. Don't let the photo-bg white-text override leak into them —
 * restore the card's intrinsic dark-on-light text colors. */
.sec.photo-bg .partner-entry,
.sec.photo-bg .partner-entry *,
.sec.photo-bg .team-card,
.sec.photo-bg .team-card *,
.sec.photo-bg .tc-feature-card,
.sec.photo-bg .tc-feature-card *,
.sec.photo-bg .tc-step,
.sec.photo-bg .tc-step *,
.sec.photo-bg .pillar,
.sec.photo-bg .pillar *,
.sec.photo-bg .quote-card,
.sec.photo-bg .quote-card *,
.sec.photo-bg .callout,
.sec.photo-bg .callout *,
.sec.photo-bg .product-card,
.sec.photo-bg .product-card * {
  text-shadow: none;
}
html[data-theme="light"] .sec.photo-bg .partner-entry .partner-title,
html[data-theme="light"] .sec.photo-bg .team-card h3,
html[data-theme="light"] .sec.photo-bg .tc-feature-card h3,
html[data-theme="light"] .sec.photo-bg .tc-feature-card p,
html[data-theme="light"] .sec.photo-bg .tc-step h4,
html[data-theme="light"] .sec.photo-bg .tc-step p,
html[data-theme="light"] .sec.photo-bg .pillar h3,
html[data-theme="light"] .sec.photo-bg .pillar .meta,
html[data-theme="light"] .sec.photo-bg .quote-card cite strong,
html[data-theme="light"] .sec.photo-bg .product-card .title {
  color: var(--text);
}
html[data-theme="light"] .sec.photo-bg .form-group label,
html[data-theme="light"] .sec.photo-bg .contact-wrap label {
  color: #f1f5f9;
}
html[data-theme="light"] .sec.photo-bg .partner-entry .partner-description p,
html[data-theme="light"] .sec.photo-bg .partner-entry .partner-description,
html[data-theme="light"] .sec.photo-bg .partner-entry .metistry-callout-box p,
html[data-theme="light"] .sec.photo-bg .partner-entry .cap-card h3,
html[data-theme="light"] .sec.photo-bg .partner-entry .cap-card p,
html[data-theme="light"] .sec.photo-bg .partner-entry .trust-node-label,
html[data-theme="light"] .sec.photo-bg .partner-entry .trust-node-sub,
html[data-theme="light"] .sec.photo-bg .team-card p,
html[data-theme="light"] .sec.photo-bg .team-card .role,
html[data-theme="light"] .sec.photo-bg .pillar p,
html[data-theme="light"] .sec.photo-bg .quote-card blockquote,
html[data-theme="light"] .sec.photo-bg .quote-card cite,
html[data-theme="light"] .sec.photo-bg .product-card .sub,
html[data-theme="light"] .sec.photo-bg .product-card .desc {
  color: var(--text-muted);
}
html[data-theme="light"] .sec.photo-bg .partner-entry .partner-type {
  color: var(--accent);
}

/* section base */
.sec { position: relative; overflow: hidden; isolation: isolate; }
.sec > .content { position: relative; z-index: 4; }

/* ============================================================
 * NAV
 * ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 28px;
}
.brand-lockup {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none;
}
.brand-lockup .mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  color: #041021; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.brand-lockup .a { color: var(--accent); }

.nav-links {
  display: flex; gap: 24px;
  font-size: 0.94rem; font-weight: 500;
  margin-left: auto; margin: 0; padding: 0; list-style: none;
  align-items: center;
}
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--fg-mute); text-decoration: none;
  position: relative; padding: 6px 2px;
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
.nav-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  padding: 7px 16px; border-radius: 8px;
  font-size: 0.86rem; font-weight: 700;
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }

/* Theme toggle — pill button, matches live site idea */
.theme-toggle {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg-mute);
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
html[data-theme="light"] .theme-toggle { background: #ffffff; }
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* ============================================================
 * HERO — immersive skyline
 * ============================================================ */
.hero { min-height: 620px; padding: 110px 28px 90px; }
.hero .content { max-width: 1200px; margin: 0 auto; }

.eyebrow-strip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.eyebrow-strip .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 12px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.4); } }

.hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.3rem);
  font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.02; margin: 0 0 20px;
  max-width: 960px; color: var(--fg);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}
html[data-theme="light"] .hero h1 { text-shadow: none; }
.hero h1 .accent-line {
  background: linear-gradient(120deg, var(--accent-3) 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p.lead {
  font-size: 1.22rem; color: var(--fg-mute);
  max-width: 680px; line-height: 1.55; margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.95rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: 0.98rem; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shine 3.5s 1s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { left: -150%; } 20%, 40% { left: 150%; } }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5);
  text-decoration: none;
}
.btn-primary .arr { transition: transform 0.2s ease; }
.btn-primary:hover .arr { transform: translateX(5px); }
.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-fg);
  border-color: var(--btn-ghost-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  text-decoration: none;
}
html[data-theme="light"] .btn-ghost:hover {
  background: #f1f5f9;
}

/* marquee */
.marquee {
  position: relative; margin-top: 36px; overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 15, 0.4);
  backdrop-filter: blur(6px);
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
html[data-theme="light"] .marquee { background: #f8fafc; }
.marq-track {
  display: flex; gap: 36px;
  animation: marq 28s linear infinite;
  width: max-content;
}
.mi {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute); white-space: nowrap;
}
.mi .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
 * MISSION + QUOTE
 * ============================================================ */
.mission { padding: 5rem 2rem 6rem; }
.mission .content { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--accent);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.022em;
  line-height: 1.12; margin: 0 0 18px;
  color: var(--fg); max-width: 880px;
}
h2 .accent-inline { color: var(--accent); }
.lead-copy {
  font-size: 1.14rem; color: var(--fg-mute);
  line-height: 1.65; max-width: 780px; margin: 0 0 1rem;
}

.mission-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 40px; margin-top: 44px; align-items: start;
}
@media (max-width: 820px) { .mission-grid { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--card-ink-lg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 2rem;
  backdrop-filter: blur(18px); position: relative;
}
.quote-card::before {
  content: '"'; position: absolute; top: 6px; left: 22px;
  font-size: 5rem; font-family: Georgia, serif;
  color: var(--accent); opacity: 0.25; line-height: 1;
}
.quote-card blockquote {
  margin: 28px 0 18px;
  font-size: 1.15rem; line-height: 1.55;
  color: var(--fg); font-style: italic;
}
.quote-card cite {
  font-style: normal; font-size: 0.84rem;
  color: var(--fg-mute); display: block;
}
.quote-card cite strong {
  color: var(--accent); display: block;
  font-weight: 600; margin-bottom: 2px;
}

/* ============================================================
 * STAT BAND
 * ============================================================ */
.stat-band { padding: 5.5rem 2rem 6rem; }
.stat-band .content { max-width: 1100px; margin: 0 auto; }

/* ============================================================
 * PRODUCT CARD
 * ============================================================ */
.product-sec { padding: 5rem 2rem; }
.product-sec .content { max-width: 1100px; margin: 0 auto; }
.product-card {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 40px;
  background: linear-gradient(160deg, var(--ink-3) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px; padding: 2.4rem;
  align-items: center; position: relative; overflow: hidden;
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .product-card {
  background: linear-gradient(160deg, #ffffff, #f8fafc);
}
.product-card::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  pointer-events: none;
}
.product-photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #0E1A32 0%, #03070F 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .product-photo {
  background: radial-gradient(ellipse at 50% 40%, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
}
.shield { width: 62%; height: auto; }
.halo {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(56, 189, 248, 0.2), transparent 30%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pc-body .sub {
  color: var(--accent); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.pc-body .sub::before {
  content: ''; width: 24px; height: 1px;
  background: var(--accent);
}
.pc-body .title {
  font-size: 2.1rem; font-weight: 700;
  margin: 0 0 12px; letter-spacing: -0.02em;
  color: var(--fg);
}
.pc-body .desc {
  color: var(--fg-mute); margin: 0 0 20px;
  font-size: 1.02rem; line-height: 1.6;
}
.caps {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px; margin-bottom: 24px;
}
.cap {
  font-size: 0.92rem; color: var(--fg);
  display: flex; align-items: center; gap: 10px;
}
.cap::before {
  content: ''; width: 14px; height: 14px;
  border-radius: 50%; border: 1.5px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 30%, transparent 35%);
  flex: none;
}
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .product-card { grid-template-columns: 1fr; padding: 1.8rem; }
}

/* ============================================================
 * PILLARS
 * ============================================================ */
.features { padding: 6rem 2rem; }
.features .content { max-width: 1100px; margin: 0 auto; }
.features-head { max-width: 720px; margin-bottom: 42px; }
.features-head p { color: var(--fg-mute); font-size: 1.1rem; margin: 0; }
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--card-ink-lg);
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 2rem;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
  backdrop-filter: blur(14px);
}
.pillar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(56, 189, 248, 0.06) 100%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.pillar:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.3);
}
html[data-theme="light"] .pillar:hover {
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.4);
}
.pillar:hover::after { opacity: 1; }
.pillar .ico {
  width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.06));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}
.pillar:hover .ico {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-primary-fg);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.45);
  transform: rotate(-3deg) scale(1.05);
}
.pillar .meta {
  font-size: 0.72rem; color: var(--accent); font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 8px;
}
.pillar h3 {
  font-size: 1.28rem; margin: 0 0 10px;
  letter-spacing: -0.01em; color: var(--fg);
}
.pillar p {
  font-size: 0.96rem; color: var(--fg-mute);
  line-height: 1.6; margin: 0;
}

/* ============================================================
 * CALLOUT
 * ============================================================ */
.callout-sec { padding: 3rem 2rem 5rem; }
.callout-sec .content { max-width: 900px; margin: 0 auto; }
.callout {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(11, 59, 102, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px; padding: 1.7rem 2rem;
  display: flex; gap: 20px; align-items: center;
  backdrop-filter: blur(14px);
}
html[data-theme="light"] .callout {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
}
.callout .bolt {
  width: 46px; height: 46px; flex: none; border-radius: 10px;
  background: rgba(56, 189, 248, 0.25); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.callout .lbl {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; display: block;
}
.callout p { margin: 0; color: var(--fg); font-size: 1.02rem; line-height: 1.55; }

/* ============================================================
 * TEAM
 * ============================================================ */
.team-sec { padding: 6rem 2rem; }
.team-sec .content { max-width: 1100px; margin: 0 auto; }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 36px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--card-ink);
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 1.8rem 1.5rem;
  text-align: center;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
  backdrop-filter: blur(12px);
}
.team-card::before {
  content: ''; position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%); width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}
.team-card:hover::before { opacity: 1; }
.avatar-wrap {
  position: relative; width: 130px; height: 130px;
  margin: 0 auto 16px; z-index: 1;
}
.avatar-wrap::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), transparent 30%, var(--accent) 80%);
  animation: spin 8s linear infinite;
  opacity: 0; transition: opacity 0.3s ease;
}
.team-card:hover .avatar-wrap::before { opacity: 0.7; }
.avatar {
  width: 130px; height: 130px; border-radius: 50%;
  object-fit: cover; background: var(--ink-3);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3), 0 0 40px rgba(56, 189, 248, 0.2);
  position: relative; z-index: 1;
}
.team-card h3 {
  font-size: 1.1rem; margin: 0 0 4px;
  letter-spacing: -0.01em; color: var(--fg);
  position: relative; z-index: 1;
}
.team-card .role {
  font-size: 0.72rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.team-card p {
  font-size: 0.9rem; color: var(--fg-mute);
  line-height: 1.55; margin: 0;
  position: relative; z-index: 1;
}

/* ============================================================
 * PARTNERS
 * ============================================================ */
.partners-sec { padding: 6rem 2rem; }
.partners-sec .content { max-width: 1100px; margin: 0 auto; }
.partner-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 36px;
}
@media (max-width: 820px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card {
  background: var(--card-ink-lg);
  border: 1px solid var(--line-2);
  border-radius: 16px; padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
}
.partner-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.partner-card h3 {
  font-size: 1.3rem; margin: 0 0 6px;
  color: var(--fg);
}
.partner-card .url {
  color: var(--accent); font-size: 0.88rem;
  margin-bottom: 14px; display: inline-block;
  text-decoration: none;
}
.partner-card .url:hover { text-decoration: underline; }
.partner-card p {
  color: var(--fg-mute); font-size: 0.96rem;
  line-height: 1.6; margin: 0 0 16px;
}

.capabilities {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 16px;
}
.cap-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
  text-align: center; font-size: 0.78rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: var(--fg-mute);
  transition: all 0.2s ease;
}
html[data-theme="light"] .cap-chip { background: #ffffff; border-color: #e2e8f0; }
.cap-chip:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--fg);
  border-color: rgba(56, 189, 248, 0.3);
}
.cap-chip svg { color: var(--accent); }

/* "Why this matters" block (partners page) */
.metistry-block {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.metistry-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.35rem;
}
.metistry-callout-box {
  padding: 1.1rem 1.4rem;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
}
.metistry-callout-box p {
  color: var(--fg-mute); line-height: 1.7;
  margin: 0; font-size: 0.95rem;
}

.cap-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2rem;
}
@media (max-width: 680px) { .cap-grid-3 { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--card-ink);
  border: 1px solid var(--line-2);
  border-radius: 10px; padding: 1.4rem 1.25rem;
}
.cap-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.cap-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cap-card h3 {
  font-size: 0.9rem; font-weight: 700;
  color: var(--fg); margin: 0 0 0.45rem;
}
.cap-card p {
  font-size: 0.85rem; color: var(--fg-mute);
  line-height: 1.6; margin: 0;
}

/* Trust architecture strip */
.trust-strip-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-mute);
  text-align: center; margin: 0 0 0.75rem;
}
.trust-strip {
  background: var(--card-ink);
  border: 1px solid var(--line-2);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.trust-node {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.2rem;
  padding: 0.5rem 1.25rem;
  text-align: center; min-width: 160px;
}
.trust-node-label {
  font-size: 0.875rem; font-weight: 700;
  color: var(--fg); white-space: nowrap;
}
.trust-node-label.highlight { color: var(--accent); }
.trust-node-sub {
  font-size: 0.72rem; color: var(--fg-mute);
  letter-spacing: 0.03em; white-space: nowrap;
}
.trust-sep {
  color: var(--accent); font-size: 1.1rem;
  line-height: 1; padding: 0 0.25rem; flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-node { min-width: 0; }
  .trust-node-label, .trust-node-sub { white-space: normal; }
}

/* ============================================================
 * CONTACT FORM
 * ============================================================ */
.contact-sec { padding: 6rem 2rem; }
.contact-sec .content { max-width: 720px; margin: 0 auto; }
.form { display: grid; gap: 18px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.82rem; color: var(--fg-mute); font-weight: 500; }
.field input,
.field textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--fg);
  font-family: inherit; font-size: 1rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--input-placeholder); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field textarea:focus {
  background: #ffffff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.contact-info {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--fg-mute); font-size: 0.95rem;
}
.contact-info p { margin: 0.4rem 0; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-feedback {
  padding: 0.8rem 1rem; margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--fg);
  font-size: 0.92rem;
  display: none;
}
.form-feedback.success { display: block; }

/* ============================================================
 * CLOSING CTA
 * ============================================================ */
.closing-cta { padding: 6rem 2rem 7rem; text-align: center; }
.closing-cta .content { position: relative; z-index: 4; max-width: 860px; margin: 0 auto; }
.beam {
  position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.5; transform: translateX(-50%); z-index: 3;
  animation: beam-pulse 4s ease-in-out infinite;
}
@keyframes beam-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.closing-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 auto 16px; color: var(--fg);
  font-weight: 700; letter-spacing: -0.02em;
  max-width: none;
}
.closing-cta p {
  max-width: 620px; margin: 0 auto 32px;
  color: var(--fg-mute); font-size: 1.1rem; line-height: 1.6;
}
.closing-cta .ctas { justify-content: center; }

/* ============================================================
 * SECTION / PAGE HEADERS (generic)
 * ============================================================ */
.page-intro {
  padding: 5rem 2rem 3rem;
  max-width: 1100px; margin: 0 auto;
}
.page-intro .content { max-width: 900px; }
.page-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; margin: 0 0 16px;
  color: var(--fg);
}
.page-intro p.lead {
  font-size: 1.15rem; color: var(--fg-mute);
  line-height: 1.6; margin: 0; max-width: 780px;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
.footer-sec {
  background: var(--footer-bg);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-sec h4 {
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg); margin: 0 0 14px;
}
.footer-sec a {
  display: block; font-size: 0.92rem;
  color: var(--fg-mute); text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}
.footer-sec a:hover { color: var(--accent); }
.brand-blurb {
  color: var(--fg-mute); font-size: 0.9rem;
  line-height: 1.65; margin-top: 12px;
}
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: var(--fg-dim);
  flex-wrap: wrap; gap: 0.75rem;
}

/* ============================================================
 * RESPONSIVE NAV — HAMBURGER DRAWER
 * ============================================================ */
/* desktop: hide toggle + overlay */
.nav-toggle { display: none; }
.nav-overlay { display: none; }

/* keep nav link labels on one line at desktop width */
.nav-links a { white-space: nowrap; }

@media (max-width: 820px) {
  .nav-inner { flex-wrap: nowrap; padding: 12px 18px; justify-content: space-between; }
  .nav-cta { display: none; }
  .hero { padding: 70px 20px 60px; min-height: 520px; }
  .mission, .features, .team-sec, .partners-sec, .contact-sec,
  .stat-band, .product-sec, .closing-cta, .callout-sec {
    padding: 4rem 1.25rem;
  }

  /* hamburger button */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    gap: 5px;
    transition: border-color 0.2s;
    z-index: 101;
  }
  .nav-toggle:hover { border-color: var(--accent); }
  .nav-toggle span {
    width: 20px; height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* nav wrapper becomes off-canvas drawer */
  #main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  #main-nav.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    font-size: 1rem;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.04); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: rgba(56, 189, 248, 0.12); color: var(--accent); }
  .theme-toggle { margin-top: 8px; width: 100%; justify-content: center; }

  /* dark overlay behind drawer */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99;
  }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* lock body scroll when nav open */
  body.nav-open { overflow: hidden; }

  /* site-nav is sticky with z:50 which creates a stacking context — when the
   * drawer is open we must lift the whole nav above the overlay (z:99) so the
   * drawer's links are clickable. */
  body.nav-open .site-nav { z-index: 101; }
}

html[data-theme="light"] #main-nav {
  background: #ffffff;
  border-left: 1px solid rgba(0,0,0,0.08);
}

/* ensure body layout for sticky footer */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main, body > .sec { flex: 1 0 auto; }
