/* ==========================================================================
   HYDRA ECOSYSTEM - MASTER DESIGN SYSTEM
   hydra-verse.site | Premium Futuristic Technology Ecosystem
   ==========================================================================
   Palette:
     --bg-void:    #020810   (pure deep space)
     --bg-deep:    #060d1f   (primary surface)
     --bg-panel:   #0a1428   (panel / card)
     --bg-glass:   rgba(10,20,40,.72)
     --cyan:       #00d4ff   (primary accent)
     --ice:        #5eb8e8   (secondary accent)
     --white:      #f0f8ff
     --muted:      #6e8aaa
   ========================================================================== */

/* ── RESET ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── DESIGN TOKENS ────────────────────────────────────────────────────────── */
:root {
  /* Stratified Midnight Obsidian Foundation */
  --bg-void:       #030712;
  --bg-surface:    #070e1c;
  --bg-panel:      #0a1426;
  --bg-card:       #0c1830;
  --bg-card-hover: #122244;
  --bg-deep:       #060d1e;
  --bg-glass:      #0a1426;
  --bg-hover:      rgba(0, 240, 255, 0.05);

  /* Technical Borders & Accents (Zero-Glow) */
  --border-subtle: #1a2942;
  --border:        #1a2942;
  --border-md:     rgba(0, 240, 255, 0.25);
  --border-active: #00f0ff;

  /* Dual-Tone Technical Accents */
  --cyan:          #00f0ff;
  --cyan-dim:      rgba(0, 240, 255, 0.12);
  --cyan-glow:     transparent;
  --blue-primary:  #3b82f6;
  --blue-hover:    #2563eb;
  --ice:           #38bdf8;
  --ice-dim:       rgba(56, 189, 248, 0.15);
  --purple:        #818cf8;
  --emerald:       #10b981;

  /* High-Contrast Luminous Typography System (WCAG AAA contrast against background) */
  --white:         #ffffff;
  --body-text:     #f1f5f9;
  --dim:           #cbd5e1;
  --muted:         #94a3b8;

  /* Elevated Typographic Hierarchy */
  --font-jp:       "Noto Sans JP", sans-serif;
  --font-handwriting: "Caveat", cursive;
  --font-display:  "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --font:          "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono:          "JetBrains Mono", "Fira Code", monospace;

  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-out:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background-color: var(--bg-void);
  background-image:
    linear-gradient(180deg, 
      rgba(2, 6, 14, 0.88) 0%, 
      rgba(2, 6, 14, 0.74) 140px, 
      rgba(2, 6, 14, 0.84) 60%, 
      rgba(2, 6, 14, 0.95) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 25%, 
      rgba(2, 6, 14, 0.52) 0%, 
      rgba(2, 6, 14, 0.86) 65%, 
      #030712 100%
    ),
    url('assets/hydra-verse-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--cyan-dim);
  border-radius: 999px;
  transition: background .2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── CANVAS ───────────────────────────────────────────────────────────────── */
#hydra-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* ── LAYOUT HELPERS ───────────────────────────────────────────────────────── */
.site-wrapper { position: relative; z-index: 1; }

.container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}


.h1, .h2, .h3, .hero-title, .page-hero h1, .bento-title, .section-title, .app-window-title {
  font-family: var(--font-display);
}

.h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ice {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--ice) 60%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.1rem;
  color: var(--dim);
  line-height: 1.7;
  max-width: 580px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .lead {
  margin: 1rem auto 0;
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease-out), border-color .3s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(3, 7, 18, 0.94);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  
}

.nav-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.nav-brand-name span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .5rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--dim);
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--bg-hover);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: .01em;
  transition: all .25s var(--ease);
}

.btn-primary {
  background: var(--cyan);
  color: #020810;
  box-shadow: none;
}

.btn-primary:hover {
  background: #26e2ff;
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-md);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--dim);
  padding: .6rem 1rem;
}

.btn-ghost:hover { color: var(--cyan); }

.btn svg { width: 16px; height: 16px; pointer-events: none; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,255,.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(94,184,232,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(123,94,167,.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem-wrap {
  position: relative;
  width: min(460px, 90vw);
  height: min(460px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem img {
  position: relative;
  z-index: 2;
  width: 75%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  animation: emblem-float 6s ease-in-out infinite;
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  max-width: 580px;
  position: relative;
  z-index: 5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  background: rgba(4, 10, 22, 0.88);
  border: 1px solid var(--border-md);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.hero-title .accent { color: var(--cyan); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.hero-stat-value span { color: var(--cyan); }

.hero-stat-label {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ── SCROLL INDICATOR ─────────────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .7rem;
  font-family: var(--mono);
  letter-spacing: .1em;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-md);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transform: translateY(-4px);
}

/* ── PRODUCT CARDS ────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.product-card::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity .3s;
}

.product-card:hover::before { opacity: 1; }

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.product-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-logo-wrap.icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.status-badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-available {
  background: rgba(0,229,170,.1);
  color: var(--emerald);
  border: 1px solid rgba(0,229,170,.25);
}
.status-available::before { background: var(--emerald); animation: pulse 2s infinite; }

.status-development {
  background: rgba(94,184,232,.1);
  color: var(--ice);
  border: 1px solid rgba(94,184,232,.25);
}
.status-development::before { background: var(--ice); }

.status-experimental {
  background: rgba(123,94,167,.1);
  color: #b48ede;
  border: 1px solid rgba(123,94,167,.3);
}
.status-experimental::before { background: #b48ede; }

.status-coming {
  background: rgba(255,180,0,.08);
  color: #ffa940;
  border: 1px solid rgba(255,180,0,.2);
}
.status-coming::before { background: #ffa940; }

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .4rem;
}

.product-category {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--cyan);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.product-desc {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.product-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s;
}

.product-link:hover { gap: .6rem; }

.product-link svg { width: 14px; height: 14px; }

.product-domain {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
}

/* ── GLASS PANEL ──────────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── ABOUT ────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-emblem-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-emblem-bg {
  display: none;
}

.about-emblem-wrap img {
  position: relative;
  z-index: 2;
  width: 70%;
  
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}

.pillar:hover {
  border-color: var(--border-md);
  background: var(--bg-hover);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.pillar-icon svg { width: 18px; height: 18px; }

.pillar-content h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.pillar-content p {
  font-size: .82rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ── TECH GRID ────────────────────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tech-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease);
}

.tech-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.tech-icon svg { width: 22px; height: 22px; }

.tech-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.tech-desc {
  font-size: .82rem;
  color: var(--dim);
  line-height: 1.55;
}

/* ── COMMUNITY ────────────────────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease);
}

.social-card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  transition: all .3s;
}

.social-card:hover .social-icon {
  background: var(--cyan);
  color: #000;
  
}

.social-icon svg { width: 22px; height: 22px; }

.social-name {
  font-size: .95rem;
  font-weight: 700;
}

.social-handle {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}

.social-action {
  font-size: .8rem;
  color: var(--cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}



/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.footer-brand-logo img {
  width: 36px;
  
}

.footer-brand-logo strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.footer-brand-logo strong span { color: var(--cyan); }

.footer-about {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 300px;
}

.footer-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-links a {
  font-size: .84rem;
  color: var(--muted);
  transition: color .2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: .78rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: .78rem;
  color: var(--muted);
  transition: color .2s;
}

.footer-legal a:hover { color: var(--cyan); }

/* ── INNER PAGES ──────────────────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,212,255,.1) 0%, transparent 70%);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: 1rem;
}

.page-hero .lead { margin: 0 auto; text-align: center; }

/* ── PRODUCT PAGE ─────────────────────────────────────────────────────────── */
.product-page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.product-page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(0,212,255,.08) 0%, transparent 60%);
}

.product-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-page-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-page-logo-wrap {
  width: min(380px, 90%);
  height: min(380px, 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-page-logo-wrap::before {
  display: none;
}

.product-page-logo-wrap img {
  position: relative;
  z-index: 2;
  width: 70%;
  
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--dim);
}

.feature-item-icon {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong { color: var(--white); }

/* ── BREADCRUMB ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ── CONTACT FORM ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: .4rem;
  font-family: var(--mono);
  letter-spacing: .06em;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* ── ANIMATIONS / UTILITY ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* ── MOBILE NAV DRAWER ────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--bg-void);
  padding: 100px 2rem 2rem;
  flex-direction: column;
  gap: .5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dim);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .2s;
}

.mobile-nav a:hover {
  color: var(--white);
  border-color: var(--border);
  background: var(--bg-hover);
}

.mobile-nav .btn-primary {
  background: var(--cyan);
  color: #020810;
  box-shadow: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-emblem { order: -1; }
  .hero-emblem-wrap { width: min(360px, 80vw); height: min(360px, 80vw); }
  .hero-content { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }

  .product-page-grid { grid-template-columns: 1fr; }
  .product-page-logo { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .products-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-emblem-wrap { width: min(300px, 85vw); height: min(300px, 85vw); }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .community-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
}


/* ==========================================================================
   HYDRA UI COMPLIANCE LAYER — hydra-ui-generic-ui skill
   Zero Native Presence · Dark Luxury · Tactile Micro-interactions
   ========================================================================== */

/* ── CUSTOM SCROLLBARS (Rule §1.5) ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.28);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.55);
}
* { scrollbar-width: thin; scrollbar-color: rgba(0,212,255,.28) var(--bg-deep); }

/* ── FOCUS VISIBLE — keyboard accessibility ───────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── FORM INPUTS — full Hydra theme (Rules §1.2) ─────────────────────────── */
.form-input,
.form-textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #060c18;
  color: var(--white);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-family: var(--font);
  font-size: .9rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  caret-color: var(--cyan);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(107, 143, 173, 0.5);
}

/* Remove number input spinners (Rule §1.2) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* ── CUSTOM SELECT DROPDOWN (Rule §1.1) ───────────────────────────────────── */
/* Wraps a native <select> that has appearance:none applied inline.
   The .custom-select wrapper provides the styled trigger; JS upgrades it. */
.custom-select-wrap {
  position: relative;
}
.custom-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #060c18;
  color: var(--white);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 10px;
  padding: .75rem 2.75rem .75rem 1rem;
  font-family: var(--font);
  font-size: .9rem;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.custom-select-wrap select:focus {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  outline: none;
}
.custom-select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(0, 212, 255, 0.55);
  pointer-events: none;
}
/* Style option elements in supported browsers */
.custom-select-wrap select option {
  background: #0a1428;
  color: var(--white);
}

/* ── CUSTOM CHECKBOXES (Rule §1.6) ───────────────────────────────────────── */
.hydra-checkbox {
  display: flex;
  align-items: center;
  gap: .625rem;
  cursor: pointer;
  user-select: none;
}
.hydra-checkbox input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hydra-checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 4px;
  background: #060c18;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hydra-checkbox input:checked + .hydra-checkbox-box {
  background: var(--cyan);
  border-color: var(--cyan);
  
}
.hydra-checkbox-box svg { display: none; }
.hydra-checkbox input:checked + .hydra-checkbox-box svg {
  display: block;
  color: #020810;
}
.hydra-checkbox:focus-within .hydra-checkbox-box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── CUSTOM RANGE / SLIDER (Rule §1.7) ───────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.15);
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--cyan) var(--pct, 50%), rgba(0,212,255,.15) var(--pct, 50%));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  
  margin-top: -6px;
  cursor: grab;
  transition: box-shadow .15s;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing;  }
input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  
}

/* ── TOAST NOTIFICATION SYSTEM (Rule §1.3) ───────────────────────────────── */
#hydra-toast-root {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  pointer-events: none;
  max-width: 340px;
  width: calc(100vw - 3rem);
}

.hydra-toast {
  pointer-events: all;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 10px;
  padding: .875rem 1.1rem .875rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  animation: toast-in 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

.hydra-toast.removing {
  animation: toast-out 250ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); max-height: 100px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(100%); max-height: 0; margin-bottom: -.625rem; padding: 0; border-width: 0; }
}

.hydra-toast--info    { border-left-color: var(--cyan); }
.hydra-toast--success { border-left-color: var(--emerald); }
.hydra-toast--warning { border-left-color: #f5a623; }
.hydra-toast--error   { border-left-color: #ff4d4d; }

.hydra-toast-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.hydra-toast--info    .hydra-toast-icon { color: var(--cyan); }
.hydra-toast--success .hydra-toast-icon { color: var(--emerald); }
.hydra-toast--warning .hydra-toast-icon { color: #f5a623; }
.hydra-toast--error   .hydra-toast-icon { color: #ff4d4d; }

.hydra-toast-body { flex: 1; min-width: 0; }
.hydra-toast-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.hydra-toast-msg {
  font-size: .78rem;
  color: var(--dim);
  line-height: 1.5;
  margin-top: .2rem;
}

.hydra-toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.hydra-toast-close:hover { color: var(--white); }

.hydra-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  opacity: .4;
  transform-origin: left;
  animation: toast-progress var(--duration, 4s) linear forwards;
}
@keyframes toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── MONOSPACE TELEMETRY BADGES (Rule §3.3) ──────────────────────────────── */
.badge-mono {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .04em;
}
.badge-pass  { background: rgba(0,229,170,.12); color: var(--emerald); border: 1px solid rgba(0,229,170,.2); }
.badge-fail  { background: rgba(255,77,77,.1);  color: #ff4d4d;        border: 1px solid rgba(255,77,77,.2); }
.badge-warn  { background: rgba(245,166,35,.1); color: #f5a623;        border: 1px solid rgba(245,166,35,.2); }
.badge-info  { background: rgba(0,212,255,.1);  color: var(--cyan);    border: 1px solid rgba(0,212,255,.2); }

/* ── SHIMMER LOADER (Rule §3.4) ──────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 25%,
    rgba(0,212,255,.08)   50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

/* ── PIPELINE PROGRESS BAR ───────────────────────────────────────────────── */
.hydra-pipeline {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.hydra-pipeline-step {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  flex-shrink: 0;
}
.hydra-pipeline-step.active { color: var(--cyan); }
.hydra-pipeline-step.done   { color: var(--emerald); }
.hydra-pipeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.hydra-pipeline-step.active .hydra-pipeline-dot {
  opacity: 1;
}
.hydra-pipeline-sep {
  flex: 1;
  height: 1px;
  background: var(--border);
  min-width: 16px;
}

/* ── ICON-ONLY PRODUCT LOGO WRAP (ecosystem future cards) ────────────────── */
.product-logo-wrap.icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.15);
}


/* ── MODERN BENTO GRID ARCHITECTURE ─────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-12 {
  grid-column: span 12;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.bento-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
}

.bento-card-banner {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.bento-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s var(--ease);
}

.bento-card:hover .bento-card-banner img {
  transform: scale(1.03);
}

.bento-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,13,31,0.1) 0%, rgba(13,27,52,0.85) 100%);
  pointer-events: none;
}

.bento-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.bento-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bento-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
}

.bento-category {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.bento-desc {
  font-size: .92rem;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.bento-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.telemetry-pill {
  font-family: var(--mono);
  font-size: .7rem;
  padding: .25rem .6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--dim);
}

.telemetry-pill.accent {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
}

.bento-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Product detail banner showcase */
.product-banner-showcase {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-panel);
}

.product-banner-showcase img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

@media (max-width: 960px) {
  .bento-span-8, .bento-span-4, .bento-span-6 {
    grid-column: span 12;
  }
}


/* ── INTERACTIVE OS COMMAND CENTER (MOCKUP & SIMULATOR) ─────────────────── */
.command-center-section {
  padding: 5rem 0 6rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.app-window-frame {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.app-window-header {
  background: #080f1d;
  border-bottom: 1px solid var(--border-subtle);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-window-controls-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.win-dot.close { background: #ff5f56; }
.win-dot.min   { background: #ffbd2e; }
.win-dot.max   { background: #27c93f; }

.app-window-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  color: var(--white);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-title-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.win-breadcrumbs {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--dim);
  font-weight: 400;
}

.app-window-telemetry {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* Tabs */
.app-window-tabs {
  display: flex;
  background: #060c18;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}
.app-window-tabs::-webkit-scrollbar { display: none; }

.win-tab-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.5rem;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}

.win-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
}

.win-tab-btn.active {
  color: var(--cyan);
  background: var(--bg-panel);
  border-bottom-color: var(--cyan);
}

.tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.tab-badge {
  font-family: var(--mono);
  font-size: .62rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}
.tab-badge.dev {
  background: rgba(94, 184, 232, 0.15);
  color: var(--ice);
}

/* Viewport */
.app-window-viewport {
  padding: 2rem;
  background: var(--bg-panel);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.engine-sim-panel {
  display: none;
  width: 100%;
  animation: fadeIn 250ms var(--ease) forwards;
}
.engine-sim-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Simulation Layout Grid */
.sim-grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.sim-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: .75rem;
}

.sim-pane-title {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sim-steps-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.vn-sim-step-btn, .qr-texture-pill {
  font-family: var(--mono);
  font-size: .72rem;
  padding: .4rem .85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--dim);
  cursor: pointer;
  transition: all .15s;
}

.vn-sim-step-btn:hover, .qr-texture-pill:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.vn-sim-step-btn.active, .qr-texture-pill.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
}

.terminal-box {
  background: #030712;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--dim);
  line-height: 1.7;
  min-height: 140px;
}
.terminal-box .term-cyan { color: var(--cyan); }
.terminal-box .term-green { color: var(--emerald); }
.terminal-box .term-yellow { color: #f5a623; }

.vn-sim-output-step { display: none; }
.vn-sim-output-step.active { display: block; }

/* QR Simulator View */
.qr-sim-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.qr-sim-card {
  width: 190px;
  height: 190px;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform .25s var(--ease);
}
.qr-sim-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-telemetry-panel {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meter-strip {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--dim);
}
.meter-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
}

/* Subtitle Studio Timeline Simulation */
.timeline-track-wrap {
  position: relative;
  height: 52px;
  background: #030712;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.sub-seg-block {
  height: 36px;
  border-radius: 6px;
  background: rgba(94, 184, 232, 0.16);
  border: 1px solid rgba(94, 184, 232, 0.35);
  color: var(--ice);
  font-family: var(--mono);
  font-size: .68rem;
  display: flex;
  align-items: center;
  padding: 0 .6rem;
  position: absolute;
  transition: background .15s, border-color .15s;
}
.sub-seg-block.active {
  background: rgba(34, 211, 238, 0.3);
  border-color: var(--cyan);
  color: var(--white);
}

/* Statusbar */
.app-window-statusbar {
  background: #080f1d;
  border-top: 1px solid var(--border-subtle);
  padding: .5rem 1.25rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.statusbar-left {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.statusbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .sim-grid-split { grid-template-columns: 1fr; }
  .app-window-viewport { padding: 1.25rem; }
  .statusbar-right { display: none; }
}


/* ── LIGHT THEME MODE (MangaTL Harmonized) ────────────────────────────────── */
[data-theme="light"] {
  --bg-void:       #f8fafc;
  --bg-surface:    #ffffff;
  --bg-panel:      #f1f5f9;
  --bg-card:       #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-deep:       #f1f5f9;
  --bg-glass:      rgba(255, 255, 255, 0.9);
  --bg-hover:      rgba(2, 132, 199, 0.06);

  --border-subtle: #e2e8f0;
  --border:        #cbd5e1;
  --border-md:     rgba(2, 132, 199, 0.25);
  --border-active: #0284c7;

  --cyan:          #0284c7;
  --cyan-dim:      rgba(2, 132, 199, 0.12);
  --blue-primary:  #0284c7;
  --blue-hover:    #0369a1;
  --ice:           #0ea5e9;
  --ice-dim:       rgba(14, 165, 233, 0.15);

  --white:         #0f172a;
  --body-text:     #1e293b;
  --dim:           #475569;
  --muted:         #64748b;
}

[data-theme="light"] body {
  background-color: var(--bg-void);
  background-image:
    linear-gradient(180deg, 
      rgba(248, 250, 252, 0.94) 0%, 
      rgba(248, 250, 252, 0.88) 140px, 
      rgba(241, 245, 249, 0.92) 60%, 
      rgba(241, 245, 249, 0.98) 100%
    ),
    radial-gradient(ellipse 90% 70% at 50% 25%, 
      rgba(248, 250, 252, 0.65) 0%, 
      rgba(241, 245, 249, 0.90) 65%, 
      #f8fafc 100%
    ),
    url('assets/hydra-verse-bg.webp');
  color: var(--white);
}

[data-theme="light"] .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
}

[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border-md);
  color: var(--cyan);
}

[data-theme="light"] .app-window-frame {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qr-sim-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ── THEME TOGGLE BUTTON ─────────────────────────────────────────────────── */
.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--dim);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}

[data-theme="light"] .theme-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--dim);
}

.theme-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── JAPANESE VERTICAL CALLIGRAPHY ACCENT (MangaTL Inspired) ──────────────── */
.hero-jp-calligraphy {
  position: absolute;
  right: 24px;
  top: 140px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  opacity: 0.28;
  transition: opacity .3s var(--ease);
}

.jp-vertical-text {
  font-family: var(--font-jp);
  writing-mode: vertical-rl;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  color: var(--white);
}

.jp-sub-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-jp-calligraphy { display: none; }
}

/* ── HANDWRITTEN SLOGAN BAR (MangaTL Inspired) ────────────────────────────── */
.handwritten-strip {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.25rem 0 1.25rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.script-quote {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1.2;
  transform: rotate(-1.5deg);
  opacity: 0.88;
}

.script-quote.right {
  text-align: right;
  transform: rotate(1deg);
  opacity: 0.78;
}

.script-author {
  font-size: 1.2rem;
  opacity: 0.65;
  margin-left: .5rem;
  font-family: var(--font-handwriting);
}

@media (max-width: 768px) {
  .handwritten-strip {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .script-quote.right { text-align: center; }
}
