/* ===== CSS VARIABLES ===== */
:root {
  --primary: #5652CC;
  --primary-lighter: #8F9AFF;
  --amber: #F28C0F;
  --slate-900: #090917;
  --slate-500: #35328C;
  --slate-400: #8F9AFF;
  --slate-100: #ffffff;
  --white: #ffffff;
  --text: #191742;
  --border: 0.0625rem solid var(--primary-lighter);
  --nav-height: 4.5rem;
  --max-width: 71.25rem;
  --section-py: 3.5rem;
  --hero-pt: 11rem;
  --hero-pb: 9rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 0.1875rem solid var(--primary); outline-offset: 0.125rem; border-radius: 0.25rem; }
[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 1001;
  padding: 0.75rem 1.5rem; background: var(--primary); color: var(--white);
  border-radius: 0 0 0.5rem 0.5rem; font-weight: 600; font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== SECTIONS ===== */
.page { display: block; scroll-margin-top: var(--nav-height); }
.page:first-of-type { padding-top: 0; }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger > .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger > .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn-secondary { background: var(--white); color: var(--primary); border: 0.0938rem solid var(--primary-lighter); }
.btn-secondary:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }
.btn-sm { padding: 0.625rem 1.375rem; font-size: 0.88rem; border-radius: 0.625rem; }
.btn-neon {
  padding: 0.65rem 1.4rem; font-size: 0.9rem; border-radius: 0.75rem;
  background: var(--primary);
  color: var(--white); font-weight: 700;
  position: relative; overflow: hidden;
  transition: all 0.3s ease;
}
.btn-neon:hover {
  transform: translateY(-0.125rem);
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 2rem; border-top: 0.375rem solid var(--primary-lighter); padding-top: var(--section-py); }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--slate-900); margin-bottom: 0.75rem; }
.section-header p { color: var(--slate-500); font-size: 1.05rem; margin: 0 auto; }
.section-header .bar { display: block; width: 3rem; height: 0.1875rem; border-radius: 0.1875rem; background: var(--amber); margin: 1rem auto 0; }

/* ===== HERO ===== */
.hero {
  min-height: auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--text);
  position: relative; overflow: hidden;
}
.hero-inner { position: relative; text-align: center; max-width: 46.25rem; padding: var(--hero-pt) 1.5rem var(--hero-pb); }
.hero-logo { width: 15rem; max-width: 60vw; position: absolute; top: 1.5rem; left: 1.5rem; }
.hero-nav { position: absolute; top: 1.5rem; right: 1.5rem; display: flex; gap: 0.25rem; z-index: 1; }
.hero-nav a {
  color: var(--slate-400); font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.875rem; border-radius: 0.375rem; transition: color 0.2s, background 0.2s;
}
.hero-nav a:hover { color: var(--white); background: var(--slate-500); }
.hero-nav-toggle { display: none; }
.hero-nav-links { display: flex; gap: 0.25rem; }
.hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 .gradient { color: var(--amber); }
.hero-actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero p { font-size: 1rem; color: var(--slate-400); max-width: 33.75rem; margin: 0 auto; }
.hero .hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--white); line-height: 1.5; max-width: 38rem; margin: 0 auto 1.75rem; letter-spacing: 0.01em; }

/* ===== HERO HOOK ===== */
.hero-hook {
  display: flex; align-items: stretch; justify-content: center;
  gap: 1.25rem; max-width: 42rem; margin: 0 auto 1.75rem;
}
.hook-panel {
  background: none; border: none; overflow: hidden;
  display: flex; flex-direction: column;
}
.panel-bb  { flex: 1; max-width: 15rem; }
.panel-rules { flex: 1; max-width: 15rem; }
.hook-panel-header {
  padding: 0.625rem 1rem; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06rem; text-align: center;
  line-height: 1.4;
}
.hook-panel-header small {
  display: block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.08rem;
}
.panel-bb .hook-panel-header { color: var(--slate-400); }
.panel-rules .hook-panel-header { color: var(--amber); }
.hook-panel-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Neural network SVG panel */
.hook-nn-wrap {
  width: 100%; height: 16rem; overflow: hidden; position: relative;
}
.hook-nn { width: 100%; height: 100%; display: block; }
.hook-nn .node { fill: none; stroke: var(--white); stroke-width: 1.5; }
.hook-nn .edge { stroke: var(--white); stroke-width: 1; opacity: 0.6; }
.hook-nn .wt {
  font-family: 'Cascadia Code','Fira Code','SF Mono',Consolas,monospace;
  font-size: 3.2px; fill: var(--white); opacity: 0.7;
}

/* Rules panel */
.hook-pre {
  margin: 0; font-size: 0.82rem; line-height: 2.2; white-space: pre-wrap;
  font-family: 'Cascadia Code','Fira Code','SF Mono',Consolas,monospace;
  color: var(--white); text-align: left;
}
.hook-pre .kw { color: var(--slate-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02rem; }
.hook-pre .val { color: var(--white); font-weight: 500; }
.hook-pre .pos { color: var(--amber); font-weight: 700; }
.hook-pre .neg { color: var(--amber); font-weight: 700; }

/* VS divider */
.hook-vs {
  display: flex; align-items: center; justify-content: center;
  align-self: center; opacity: 0;
  transition: opacity 0.5s ease 0.6s;
}
.hero-hook.visible .hook-vs { opacity: 1; }
.hook-arrow {
  width: 1.75rem; height: 1.75rem; color: var(--white); opacity: 0.7;
}

/* Panel entrance animations */
.hero-hook .panel-bb {
  opacity: 0; transform: translateX(-2rem);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.hero-hook .panel-rules {
  opacity: 0; transform: translateX(2rem);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}
.hero-hook.visible .panel-bb,
.hero-hook.visible .panel-rules {
  opacity: 1; transform: translateX(0);
}

/* Scrolling weights animation */
@keyframes scrollWeights {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.hook-nn-scroll {
  animation: scrollWeights 12s linear infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-hook .panel-bb,
  .hero-hook .panel-rules,
  .hook-vs { opacity: 1; transform: none; transition: none; }
  .hook-nn-scroll { animation: none; }
}

/* ===== STATS STRIP ===== */
.stats-strip {
  padding: 3.5rem 0;
  background: var(--slate-900);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  text-align: center;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 15%; height: 70%;
  width: 0.0625rem; background: var(--slate-500);
}
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800;
  color: var(--amber);
  line-height: 1.1; margin-bottom: 0.375rem;
  display: inline-block; min-width: 2.5ch; letter-spacing: 0.02em;
}
.stat-label {
  font-size: 0.9rem; font-weight: 600; color: var(--slate-400);
  text-transform: uppercase; letter-spacing: 0.05rem; margin-bottom: 0.25rem;
}
.stat-detail {
  font-size: 0.88rem; color: var(--slate-400); line-height: 1.4;
}

/* ===== USE CASES ===== */
.use-cases { padding: var(--section-py) 0; }
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.use-case-card {
  padding: 2.25rem 2rem; border-radius: 1rem;
  background: var(--white);
  border: var(--border);
  transition: transform 0.2s;
}
.use-case-card:hover { transform: translateY(-0.1875rem); }
.use-case-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.5rem;
  background: var(--primary-lighter); color: var(--slate-900);
}
.use-case-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.use-case-card p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.6; margin-bottom: 0.75rem; }
.use-case-value {
  font-size: 0.88rem; font-weight: 600; color: var(--primary);
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: var(--white); border: var(--border);
  display: inline-block;
}

/* ===== SPLIT LAYOUT ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-reverse > :last-child { order: 1; }
.split-text h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 700; color: var(--slate-900); line-height: 1.3; margin-bottom: 1rem; }
.split-text p { color: var(--slate-500); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Rule card */
.terminal {
  background: var(--white);
  border-radius: 1.125rem; padding: 1.625rem 1.875rem 1.375rem;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: auto; position: relative;
  border: var(--border);
}
.terminal::before {
  content: attr(data-title);
  display: block; padding-bottom: 0.875rem; margin-bottom: 1rem;
  font-size: clamp(0.65rem, 1.8vw, 0.82rem); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.075rem; color: var(--primary);
  border-bottom: var(--border);
}
.terminal[data-title=""]::before { display: none; }
.terminal pre {
  margin-top: 0; font-size: clamp(0.75rem, 2.2vw, 0.95rem); line-height: 2.5; white-space: pre-wrap;
  font-family: 'Cascadia Code', 'Fira Code', 'SF Mono', Consolas, monospace;
}
.terminal .kw {
  color: var(--primary); font-weight: 700; font-size: clamp(0.7rem, 2vw, 0.88rem);
  letter-spacing: 0.0312rem; text-transform: uppercase;
}
.terminal .val {
  color: var(--slate-900); font-weight: 500;
  display: inline; white-space: nowrap;
}
.terminal .pos {
  color: var(--amber); font-weight: 700;
  display: inline; white-space: nowrap;
}
.terminal .neg {
  color: var(--amber); font-weight: 700;
  display: inline; white-space: nowrap;
}

/* ===== TECHNOLOGY PAGE ===== */
.tech-section { padding: var(--section-py) 0; }

/* Comparison block */
.comparison-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.75rem; }
.comparison-card {
  padding: 1.75rem 1.5rem; border-radius: 1rem;
  border: var(--border); background: var(--white);
  display: flex; flex-direction: column;
}
.comparison-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 1rem; }
.comparison-list { list-style: none; padding: 0; margin: 0; margin-top: auto; }
.comparison-list li {
  padding: 0.5rem 0; font-size: 0.95rem; color: var(--slate-900); line-height: 1.5;
}
.comparison-list li:not(:last-child) { border-bottom: var(--border); }
.comparison-illustration { margin-bottom: 1.25rem; height: 12rem; display: flex; align-items: center; justify-content: center; }
.comparison-illustration svg,
.comparison-illustration img { width: 100%; max-height: 100%; display: block; object-fit: contain; }
.comparison-illustration .terminal { border: none; padding: 0; width: 100%; }

/* Tech example card */
.tech-example-card {
  padding: 2rem 0; margin-bottom: 1.75rem;
}
.tech-example-card .split { gap: 2.5rem; }
.tech-example-card .terminal { margin: 0; border: none; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card {
  padding: 1.75rem 1.5rem; border-radius: 1rem;
  background: var(--white); border: var(--border);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-0.1875rem); }
.feature-card-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
  background: var(--primary-lighter); color: var(--slate-900);
}
.feature-card-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--slate-900); }
.feature-card p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.5; }

/* ===== PUBLICATIONS ===== */
.pub-list { list-style: none; max-width: 48rem; margin: 0 auto; }
.pub-item {
  padding: 1.25rem 1.5rem; border-radius: 0.75rem;
  border: var(--border);
  background: var(--white); margin-bottom: 0.75rem;
  cursor: pointer; transition: border-color 0.2s;
}
.pub-item:hover { border-color: var(--primary); }
.pub-title { font-size: 0.95rem; font-weight: 600; color: var(--primary); line-height: 1.4; margin-bottom: 0.25rem; }
.pub-item a { display: block; text-decoration: none; color: inherit; }
.pub-item a:hover { color: inherit; }
.pub-meta { font-size: 0.88rem; color: var(--slate-500); }
.pub-venue { font-weight: 600; color: var(--primary); }

/* ===== TEAM ===== */
.team-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem; max-width: 60rem; margin: 0 auto;
}
.team-card {
  width: calc((100% - 4rem) / 3); max-width: 15rem;
  background: var(--white); border-radius: 1rem;
  border: 0.125rem solid var(--primary-lighter);
  transition: transform 0.2s; text-align: center;
  margin-top: 3.5rem; position: relative;
}
.team-card:hover { transform: translateY(-0.1875rem); }
.team-card-img-wrap {
  margin-top: -3.5rem; padding: 0;
  background: none;
  display: flex; justify-content: center;
}
.team-card-img {
  width: 6rem; height: 6rem; object-fit: cover; object-position: top center;
  border-radius: 50%; border: 0.125rem solid var(--primary-lighter);
  background: var(--white);
}
.team-card-body { padding: 1.25rem 1.375rem 1.5rem; }
.team-card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.125rem; }
.team-card-body .role { font-size: 0.88rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }
.team-card-body ul { list-style: none; padding: 0; text-align: left; }
.team-card-body li { font-size: 0.88rem; color: var(--slate-500); padding: 0.125rem 0; padding-left: 0.875rem; position: relative; }
.team-card-body li::before { content: ''; position: absolute; left: 0; top: 0.625rem; width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--amber); }

/* ===== CONTACT PAGE ===== */
.contact-content { padding: var(--section-py) 0; }
.contact-selling-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 50rem; margin: 0 auto 3rem;
}
.contact-point { text-align: center; }
.contact-point h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem;
}
.contact-point p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; }
.pilot-partners {
  display: grid;
  gap: 2rem;
  max-width: 50rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.pilot-partners-text {
  font-size: 1.05rem;
  color: var(--slate-500);
  margin: 0 0 1rem;
}
.pilot-partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.pilot-partners-logos img {
  height: 3.5rem;
  width: auto;
  opacity: 0.85;
}
.hero .pilot-partners-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--amber);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero .pilot-partners {
  gap: 2.25rem;
}
.hero .pilot-partners-group {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.hero .pilot-partners-logos img { opacity: 1; }
.hero .pilot-partners-logos img[alt="Tampere University"],
.hero .pilot-partners-logos img[alt="Business Finland"] {
  filter: brightness(0) invert(1);
}
.contact-card {
  padding: 2rem 1.5rem; border-radius: 1rem; text-align: center;
  background: var(--slate-100); border: var(--border);
  transition: transform 0.2s;
}
.contact-card:hover { transform: translateY(-0.125rem); }
.contact-card-icon {
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary-lighter);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.875rem;
}
.contact-card-icon svg { width: 1.25rem; height: 1.25rem; color: var(--slate-900); }
.contact-card h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.375rem; }
.contact-card p { color: var(--slate-500); font-size: 0.9rem; }
.contact-card a { color: var(--primary); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
a.contact-card-link { display: block; cursor: pointer; }
a.contact-card-link:hover { text-decoration: none; }

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  max-width: 42rem;
  margin: 0 auto 3rem;
  background: var(--slate-100);
  border: var(--border);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form-row { display: flex; gap: 1.25rem; }
.contact-form-row > * { flex: 1; }
.contact-form label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--slate-500); margin-bottom: 0.375rem;
}
.contact-form label .required { color: var(--amber); margin-left: 0.125rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.75rem 1rem; border: var(--border);
  border-radius: 0.5rem; font-size: 0.95rem; font-family: inherit;
  color: var(--slate-900); background: var(--white); transition: border-color 0.2s;
}
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2335328C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.contact-form select.placeholder { color: var(--slate-400); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0.125rem solid var(--primary); outline-offset: 0.0625rem;
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }
.contact-form-status {
  font-size: 0.95rem; font-weight: 600; margin-top: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.5rem; display: none;
}
.contact-form-status.success {
  display: block; color: #15803d; background: #f0fdf4; border: 0.0625rem solid #bbf7d0;
}
.contact-form-status.error {
  display: block; color: #b91c1c; background: #fef2f2; border: 0.0625rem solid #fecaca;
}

/* ===== FOOTER ===== */
.footer { padding: 2rem 0; border-top: 0.0625rem solid var(--slate-100); background: var(--slate-100); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; }
.footer-logos { display: flex; align-items: center; gap: 2rem; }
.footer-logos img { height: 1.875rem; width: auto; }
.footer-text { font-size: 0.82rem; color: var(--slate-500); }

/* ===== CONTACT INFO GRID ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 50rem;
  margin: 3.5rem auto 0;
}

/* ===== MOBILE ===== */
@media (max-width: 48rem) {
  :root { --nav-height: 4rem; --section-py: 2.5rem; --hero-pt: 6rem; --hero-pb: 4.5rem; }
  .hero-logo { width: 7rem; top: 0.75rem; left: 0.75rem; }
  .hero-nav { top: 0.75rem; right: 0.75rem; flex-direction: column; align-items: flex-end; gap: 0; }
  .hero-nav-toggle {
    display: flex; flex-direction: column; gap: 0.25rem;
    background: none; border: none; cursor: pointer; padding: 0.625rem;
  }
  .hero-nav-toggle span {
    display: block; width: 1.25rem; height: 0.15rem; background: var(--white); border-radius: 0.125rem; transition: 0.3s;
  }
  .hero-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(0.175rem, 0.225rem); }
  .hero-nav-toggle.open span:nth-child(2) { opacity: 0; }
  .hero-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(0.175rem, -0.225rem); }
  .hero-nav-links { display: none; flex-direction: column; position: fixed; top: 3.5rem; left: 0; right: 0; background: var(--slate-900); padding: 0.75rem 1.25rem; gap: 0.125rem; border-bottom: var(--border); z-index: 2; }
  .hero-nav-links.open { display: flex; }
  .hero-nav a { font-size: 0.925rem; padding: 0.6rem 0.875rem; border-radius: 0.5rem; color: var(--slate-400); font-weight: 500; }
  .hero h1 { margin-bottom: 1.25rem; }
  .hero .hero-sub { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .hero-actions { margin-bottom: 1.25rem; }
  .pilot-partners { gap: 1.5rem; }
  .hero .pilot-partners { gap: 1.75rem; }
  .hero .pilot-partners-group { gap: 0.875rem; }
  .pilot-partners-logos { gap: 1rem 1.5rem; }
  .pilot-partners-logos img { height: 2.5rem; }
  .btn-neon { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
  .hero-hook { flex-direction: column; align-items: center; gap: 0.75rem; max-width: 20rem; }
  .hook-panel, .panel-bb, .panel-rules { max-width: 100%; width: 100%; }
  .hook-vs { align-self: center; }
  .stat-detail { font-size: 0.7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .split { grid-template-columns: 1fr; }
  .split .split-text { order: -1; }
  .split-reverse > :first-child { order: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .comparison-block { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .stat-item:not(:last-child)::after { display: none; }
  .stats-strip { padding: 2.5rem 0; }
  .terminal { padding: 1.25rem 1rem 1rem; }
  .team-grid { max-width: 21.25rem; }
  .team-card { width: 100%; max-width: 15rem; }
  .team-card-img { width: 5rem; height: 5rem; }
  .contact-selling-points { grid-template-columns: 1fr; max-width: 25rem; margin: 0 auto 2rem; }
  .contact-form-row { flex-direction: column; }
  .contact-info-grid { grid-template-columns: 1fr; max-width: 25rem; margin: 1.5rem auto 0; gap: 0.75rem; }
  .contact-card { padding: 1.5rem 1.25rem; }
  .footer-inner { text-align: center; }
}
@media (max-width: 30rem) {
  .hero-actions { flex-direction: column; align-items: center; }
}
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .team-card { width: calc((100% - 4rem) / 3); max-width: 15rem; }
  .split { gap: 2.25rem; }
}

/* ===== SOLUTION FLOW DIAGRAM ===== */
.solution-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 2.5rem 0 1.5rem;
}

.flow-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  border: 0.0625rem solid var(--primary-lighter);
  background: var(--white);
  flex: 1;
  max-width: 15rem;
}

.flow-panel-center {
  background: var(--slate-900);
  border-color: var(--slate-900);
  max-width: 16rem;
}

.flow-panel-icon {
  width: 4.5rem; height: 4.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--primary-lighter); color: var(--slate-900);
}
.flow-panel-icon svg { width: 2.25rem; height: 2.25rem; }

.flow-panel-center .flow-panel-icon {
  background: var(--primary); color: var(--white);
}

.flow-panel-title {
  font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem;
}
.flow-panel-center .flow-panel-title { color: var(--white); }

.flow-panel-desc { font-size: 0.88rem; color: var(--slate-500); line-height: 1.5; }
.flow-panel-center .flow-panel-desc { color: var(--primary-lighter); }

.flow-panel-rules {
  width: 100%; margin-bottom: 1rem;
  padding: 0.875rem 1rem; border-radius: 0.75rem;
  border: 0.0625rem solid var(--primary-lighter); background: var(--white); text-align: left;
}
.flow-panel-rules pre {
  margin: 0; font-size: 0.75rem; line-height: 1.9; white-space: pre-wrap;
  font-family: 'Cascadia Code', 'Fira Code', 'SF Mono', Consolas, monospace;
}
.flow-panel-rules .kw { color: var(--primary); font-weight: 700; text-transform: uppercase; }
.flow-panel-rules .val { color: var(--slate-900); font-weight: 500; }
.flow-panel-rules .pos { color: var(--amber); font-weight: 700; }

.flow-connector {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 3rem;
}
.flow-connector svg { width: 2.5rem; height: 1.5rem; }

@media (max-width: 48rem) {
  .solution-flow { flex-direction: column; align-items: center; gap: 0; }
  .flow-panel { max-width: 22rem; width: 100%; }
  .flow-panel-center { max-width: 22rem; }
  .flow-connector { width: auto; height: 2rem; }
  .flow-connector svg { width: 1.5rem; height: 2.5rem; transform: rotate(90deg); }
}
