:root {
  --bg:            #0b1020;
  --panel:         #121933;
  --panel-alt:     #0e1629;
  --text:          #e8ecff;
  --muted:         #b8c1ea;
  --subtle:        #7a85b0;
  --accent:        #6ea8ff;
  --accent-dim:    #3d6fcc;
  --accent-glow:   rgba(110,168,255,0.15);
  --border:        #27305c;
  --border-light:  #1e2850;
  --badge-live-bg:     #0d3326;
  --badge-live-text:   #3ee8a4;
  --badge-live-border: #1a5c44;
  --badge-soon-bg:     #1a2e50;
  --badge-soon-text:   #6ea8ff;
  --badge-soon-border: #2a4070;
  --badge-dev-bg:      #1c1a30;
  --badge-dev-text:    #9088cc;
  --badge-dev-border:  #2e2850;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container { width: min(1060px, 92%); margin: 0 auto; }
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; height: 70vh;
  background: radial-gradient(ellipse at 50% -5%, #1a2d5a 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer, section { position: relative; z-index: 1; }

/* ── Nav ── */
.site-header {
  border-bottom: 1px solid var(--border-light);
  background: rgba(11,16,32,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.3px; color: var(--text);
  text-decoration: none;
}
.brand-lens {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(110,168,255,0.35);
  flex-shrink: 0;
}
.brand-lens-inner {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(110,168,255,0.9);
}
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(110,168,255,0.07); }

/* ── Hero ── */
.hero {
  padding: 5.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.hero-content { max-width: 640px; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.3rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Lens Mascot ── */
.hero-mascot {
  width: 320px; height: 320px;
  flex-shrink: 0;
  cursor: none;
}
.lens-svg { width: 100%; height: 100%; overflow: visible; }
.lens-layer { transition: transform 0.08s ease-out; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #04102b;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.btn:hover { opacity: 0.88; box-shadow: 0 0 20px rgba(110,168,255,0.3); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--accent-dim);
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { background: rgba(110,168,255,0.07); border-color: var(--accent); }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.section-lead {
  color: var(--muted);
  max-width: 700px;
  margin: 0 0 2.8rem;
  font-size: 1rem;
  line-height: 1.7;
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* ── Tier Labels ── */
.tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin: 2.5rem 0 1rem;
}
.tier-live  { color: var(--badge-live-text); }
.tier-soon  { color: var(--badge-soon-text); }
.tier-dev   { color: var(--badge-dev-text); }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover { border-color: var(--accent-dim); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.product-card:hover::before { opacity: 1; }
.product-card h4 {
  font-size: 1.05rem; font-weight: 700;
  margin: 0.55rem 0 0.2rem;
}
.product-family {
  font-size: 0.76rem; color: var(--subtle);
  margin: 0 0 0.8rem; font-weight: 500;
}
.product-card p:last-child {
  font-size: 0.88rem; color: var(--muted);
  margin: 0; line-height: 1.6;
}
.card-dev { opacity: 0.75; }

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  padding: 0.18rem 0.5rem;
  border-radius: 5px; border-width: 1px; border-style: solid;
}
.badge-live   { background: var(--badge-live-bg);  color: var(--badge-live-text);  border-color: var(--badge-live-border); }
.badge-soon   { background: var(--badge-soon-bg);  color: var(--badge-soon-text);  border-color: var(--badge-soon-border); }
.badge-dev    { background: var(--badge-dev-bg);   color: var(--badge-dev-text);   border-color: var(--badge-dev-border); }

/* ── Ecosystem Map ── */
.ecosystem-wrap {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 3rem;
  overflow: hidden;
}
.ecosystem-wrap h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 0 0 0.4rem;
}
.ecosystem-wrap > p {
  font-size: 0.88rem; color: var(--muted);
  margin: 0 0 1.5rem;
}
#ecosystem-svg { width: 100%; display: block; }

/* ── Platform Grid ── */
.platform-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.platform-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}
.platform-icon { font-size: 1.5rem; margin-bottom: 0.7rem; opacity: 0.75; }
.platform-card h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.platform-card p  { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── Hey PC Block ── */
.hey-pc-block {
  background: linear-gradient(135deg, #111c3a 0%, #0e1629 100%);
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-top: 1.5rem;
}
.hey-pc-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 0.4rem;
}
.hey-pc-block h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 1rem; }
.hey-pc-block p  { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.8rem; line-height: 1.65; }
.hey-pc-block p:last-child { margin-bottom: 0; }
.hey-pc-note {
  color: var(--subtle) !important; font-size: 0.82rem !important;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem; margin-top: 0.8rem;
}
code {
  background: rgba(110,168,255,0.1); color: var(--accent);
  padding: 0.1rem 0.35rem; border-radius: 4px;
  font-family: "JetBrains Mono","Fira Code",Menlo,Consolas,monospace;
  font-size: 0.88em;
}

/* ── Investor Block ── */
.investor-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 760px;
}
.investor-block > p:first-child {
  color: var(--muted); margin: 0 0 1.5rem;
  font-size: 0.95rem; line-height: 1.7;
}
.investor-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.disclaimer {
  font-size: 0.78rem; color: var(--subtle);
  line-height: 1.6; margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

/* ── Contact ── */
.contact-grid { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.contact-item { min-width: 180px; }
.contact-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  color: var(--subtle); margin: 0 0 0.3rem;
}
.contact-item a { color: var(--accent); text-decoration: none; font-size: 0.92rem; }
.contact-item a:hover { text-decoration: underline; }
.contact-item span { color: var(--muted); font-size: 0.92rem; }

/* ── Footer ── */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
}
.footer p:first-child { color: var(--muted); margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-disclaimer {
  color: var(--subtle); font-size: 0.76rem;
  line-height: 1.65; max-width: 800px; margin: 0;
}

/* ── Live Pulse ── */
.live-pulse {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; color: var(--badge-live-text);
  text-transform: uppercase; letter-spacing: 1px;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--badge-live-text);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ── Aperture open animation ── */
@keyframes apertureOpen {
  from { transform: rotate(0deg) scale(0.85); opacity: 0.3; }
  to   { transform: rotate(45deg) scale(1);   opacity: 1; }
}
.lens-blades { animation: apertureOpen 1.2s cubic-bezier(0.34,1.1,0.64,1) both; }

/* ══════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — LAW 2026-05-15
   Mascot ALWAYS visible. Never display:none.
   Test at 375px (iPhone SE) before deploy.
   ══════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .hero-mascot { width: 260px; height: 260px; }
}

/* ── Mobile landscape / large phone ── */
@media (max-width: 840px) {
  /* Hero: stack mascot above content */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    text-align: center;
    padding: 3rem 0 2rem;
  }
  .hero-content { order: 2; }
  .hero-mascot {
    order: 1;
    width: 150px; height: 150px;
    margin: 0 auto 1.5rem;
    /* Never hidden — mascot IS the brand on mobile */
  }
  .hero-actions { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }

  /* Cards: 2-col on tablet */
  .product-grid,
  .platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* Ecosystem map: let SVG breathe */
  #ecosystem-svg { min-height: 280px; }

  /* Contact */
  .contact-grid { justify-content: center; }
}

/* ── Phone ── */
@media (max-width: 600px) {
  /* Nav: pill row, no overflow */
  .nav {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0;
    text-align: center;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem;
  }
  .nav-links a {
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
  }

  /* Hero */
  .hero { padding: 2.5rem 0 1.8rem; }
  .hero-mascot {
    width: 130px; height: 130px;
    margin-bottom: 1.2rem;
  }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .lead { font-size: 0.95rem; }

  /* Full-width CTAs — min 44px touch target */
  .hero-actions,
  .investor-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn, .btn-outline {
    text-align: center;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }

  /* Cards: single column */
  .product-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  /* Ecosystem SVG: full width, shorter on phone */
  .ecosystem-wrap { padding: 1.2rem; }
  #ecosystem-svg {
    min-height: 320px;
    /* Scale the viewBox content to fit narrow screens */
    width: 100%;
  }

  /* Platform / Hey PC */
  .hey-pc-block { padding: 1.2rem; }

  /* Investor */
  .investor-block { padding: 1.4rem; }

  /* Contact */
  .contact-grid {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* Footer */
  .footer { padding: 2rem 0 2.5rem; }
}

/* ── Small phone (SE, 375px) ── */
@media (max-width: 390px) {
  .hero-mascot { width: 110px; height: 110px; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.78rem; }
  .section h2 { font-size: clamp(1.2rem, 7vw, 1.6rem); }
  .product-card { padding: 1.1rem; }
}

/* ── Copyright Block ── */
.km-copyright-block {
  padding: 1.4rem 0 0.5rem;
  border-top: 1px solid var(--border-light);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.km-copyright-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.km-copyright-symbol {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.km-copyright-text {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}
.km-copyright-text strong {
  color: var(--text);
  font-weight: 600;
}
.km-copyright-detail {
  font-size: 0.74rem;
  color: var(--subtle);
  line-height: 1.65;
  max-width: 820px;
  margin: 0;
}
.km-copyright-contact {
  font-size: 0.74rem;
  color: var(--subtle);
  margin: 0;
}
.km-copyright-contact a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.75;
}
.km-copyright-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-bottom: 2rem;
}
.service-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.service-card:hover { border-color: var(--accent-dim); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  opacity: 0.65;
}
.service-card h4 {
  font-size: 1rem; font-weight: 700;
  margin: 0 0 0.25rem;
}
.service-tag {
  font-size: 0.72rem; color: var(--accent);
  font-weight: 600; margin: 0 0 0.75rem;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.service-card > p:last-child {
  font-size: 0.88rem; color: var(--muted);
  margin: 0; line-height: 1.65;
}

/* Services CTA block */
.services-cta-block {
  background: linear-gradient(135deg, #111c3a 0%, #0e1629 100%);
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 2rem;
}
.services-cta-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin: 0 0 0.5rem;
}
.services-cta-text {
  font-size: 0.95rem; color: var(--muted);
  margin: 0 0 1.5rem; max-width: 680px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-cta-block { padding: 1.3rem; }
}
