@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-alt: #F1F3F5;
  --text: #0A0F1C;
  --text-muted: #5C657A;

  --dark-panel: #0A0F1C;
  --dark-surface: #131A2B;
  --dark-border: rgba(255, 255, 255, 0.1);

  --accent: #2AD4FF;
  --accent-hover: #1AB8E0;
  --accent-2: #5C6CFF;

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --shadow-sm: 0 4px 6px rgba(10, 15, 28, 0.05);
  --shadow-md: 0 10px 20px rgba(10, 15, 28, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 15, 28, 0.12);
  --shadow-panel: 0 24px 48px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --max-width: 1200px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
  width: 100%;
}

/* Global Background Motif */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('assets/ai-neural-core.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.24;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

p { margin-top: 0; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
button, input { font-family: inherit; }

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }

/* Typography */
.section-eyebrow {
  display: block;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5C6CFF;
  margin-bottom: 0.75rem;
}

.section-head { margin-bottom: 3rem; max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0B1020;
  margin-bottom: 1rem;
}

.roi-title span {
  display: block;
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #5F6B7E;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--text);
  color: var(--surface);
}
.button.primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 108, 255, 0.3);
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.button.secondary:hover {
  background: rgba(10, 15, 28, 0.05);
}

/* Header */
.control-panel-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.brand-logo img { height: 36px; width: auto; object-fit: contain; }
.control-panel-footer .brand-logo img { width: clamp(120px, 15vw, 180px); height: auto; }
.desktop-nav { display: flex; gap: 2rem; font-weight: 600; font-size: 0.875rem; color: var(--text-muted); }
.desktop-nav a:hover { color: var(--text); }
.header-action {
  background: var(--accent);
  color: var(--dark-panel);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.header-action:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(42, 212, 255, 0.3);
}

.burger-menu-btn, .mobile-menu { display: none; }

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .control-panel-header { top: 0.5rem; width: calc(100% - 1rem); }
  .header-inner { padding: 0.5rem 0.75rem; }
  .brand-logo img { height: 28px; }
  .header-action { display: none; }

  .burger-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; padding: 0.5rem; cursor: pointer; color: var(--text);
  }
  .mobile-menu {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: var(--surface); padding: 1.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); border: 1px solid rgba(10, 15, 28, 0.1);
    flex-direction: column; gap: 1.5rem; z-index: 40;
  }
  .mobile-menu:not([hidden]) { display: flex; }
  .mobile-nav { display: flex; flex-direction: column; gap: 1rem; font-size: 1.125rem; font-weight: 600; text-align: center; }
  .mobile-nav a { padding: 0.5rem; }
}

/* Shell */
.section-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 6rem auto;
}

/* Hero Section (Premium Control Room) */
.hero-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 3rem auto;
  background: var(--dark-panel);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-panel);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border: 1px solid var(--dark-border);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-copy h1 { color: var(--surface); font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.hero-lead { font-size: 1.25rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.hero-bullets { list-style: none; padding: 0; margin-bottom: 2rem; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: rgba(255,255,255,0.9); }
.hero-bullets svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .button.primary { background: var(--surface); color: var(--text); }
.hero-actions .button.primary:hover { background: var(--accent); color: var(--dark-panel); }
.hero-actions .button.secondary { color: var(--surface); border-color: rgba(255,255,255,0.3); }
.hero-actions .button.secondary:hover { background: rgba(255,255,255,0.1); }

.hero-panel-preview {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.panel-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--dark-border);
}
.mac-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mac-dot.red { background: #FF5F56; }
.mac-dot.yellow { background: #FFBD2E; }
.mac-dot.green { background: #27C93F; }
.panel-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.panel-nodes {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.node-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  text-align: left;
}
.node-card.active { border-color: var(--accent); background: rgba(42, 212, 255, 0.05); }
.node-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.node-icon svg {
  width: 24px;
  height: 24px;
  stroke: rgba(255, 255, 255, 0.6);
  transition: stroke 0.3s ease;
}
.node-card.active .node-icon svg { stroke: var(--accent); }
.node-text { display: flex; flex-direction: column; text-align: left; }
.node-text strong { display: block; font-size: 0.875rem; color: var(--surface); }
.node-text small { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.6); }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-section { padding: 3rem 1.5rem; margin: 1rem auto; border-radius: var(--radius-lg); }
  .hero-copy h1 { font-size: 2.25rem; }
  .hero-bullets { display: inline-block; text-align: left; max-width: 100%; }
  .hero-bullets li { font-size: 0.95rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
}

/* KPI Strip */
.kpi-strip-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: -2rem auto 4rem; /* Overlap hero slightly */
  position: relative;
  z-index: 10;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.kpi-item {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}
.kpi-item:last-child { border-right: none; }
.kpi-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.kpi-item p { margin: 0; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.kpi-item.positive strong { color: var(--success); }

@media (max-width: 992px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi-item:nth-child(2) { border-right: none; }
  .kpi-item:nth-child(1), .kpi-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .kpi-strip { grid-template-columns: 1fr; }
  .kpi-item { border-right: none; border-bottom: 1px solid var(--line); padding: 1.25rem; }
  .kpi-item:last-child { border-bottom: none; }
}

/* Problems Grid */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.problem-node:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.problem-node h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.problem-node p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

@media (max-width: 992px) { .problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .problems-grid { grid-template-columns: 1fr; } }

/* Architecture Solution */
.architecture-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.sticky-copy { position: sticky; top: 6rem; }
.architecture-nodes { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.arch-line {
  position: absolute;
  left: 24px; top: 24px; bottom: 24px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.arch-node {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.node-number {
  width: 48px; height: 48px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-2);
  flex-shrink: 0;
}
.node-content h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.node-content p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

@media (max-width: 992px) {
  .architecture-layout { grid-template-columns: 1fr; gap: 2rem; }
  .sticky-copy { position: relative; top: 0; }
}
@media (max-width: 480px) {
  .arch-node { flex-direction: column; gap: 1rem; }
  .arch-line { left: 40px; }
}

/* Premium Product Card */
.premium-product-card {
  background: var(--dark-panel);
  color: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.product-header {
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(42,212,255,0.1), rgba(92,108,255,0.1));
  border-bottom: 1px solid var(--dark-border);
}
.product-header h2 { color: var(--surface); margin-bottom: 1rem; font-size: 2.5rem; }
.price-tag { font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent); }
.price-tax-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -0.35rem 0 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 999px;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.product-header .section-lead { max-width: 600px; margin: 0 auto; color: rgba(255,255,255,0.8); }

.product-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3rem;
  gap: 3rem;
}
.included-list h3 { color: var(--surface); margin-bottom: 1.5rem; }
.tech-check-list { list-style: none; padding: 0; margin: 0; }
.tech-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.8);
}
.tech-check-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2310B981" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
}

.presentation-download-title {
  margin: 0 auto 0.75rem;
  font-size: 13px;
  color: #5C6CFF;
  text-align: center;
}

.presentation-download-head {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.presentation-download-head .section-title {
  margin-bottom: 0;
}

.presentation-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.presentation-download p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

.presentation-download-button {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .presentation-download {
    align-items: stretch;
    flex-direction: column;
    padding: 1.25rem;
  }

  .presentation-download-button {
    width: 100%;
    justify-content: center;
  }
}

.product-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  color: var(--text);
}
.mini-form label { display: block; margin-bottom: 1rem; }
.mini-form label span { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.mini-form input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem;
}
.mini-form input:focus { outline: none; border-color: var(--accent-2); }

@media (max-width: 992px) {
  .product-body { grid-template-columns: 1fr; padding: 2rem; }
  .product-header { padding: 2rem; }
}

/* Modules Grid */
.premium-modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.premium-module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.module-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: var(--surface-alt); color: var(--text-muted);
  border-radius: 999px; margin-bottom: 1.5rem;
}
.premium-module h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.module-desc { color: var(--text-muted); margin-bottom: 2rem; min-height: 48px; }
.module-flow {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem; background: var(--surface-alt); border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.pipe-step {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.5rem; background: var(--surface); border-radius: 4px;
  white-space: nowrap;
}
.pipe-step:not(:last-child)::after { content: '→'; margin-left: 0.5rem; color: var(--text-muted); }
.premium-module .tech-check-list li { color: var(--text); }
.premium-module .tech-check-list li::before { stroke: var(--accent-2); filter: hue-rotate(220deg); }

@media (max-width: 768px) { .premium-modules-grid { grid-template-columns: minmax(0, 1fr); } }

/* Process Flow */
.step-flow-container { max-width: 900px; margin: 0 auto; }
.step-flow {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.step-flow li {
  display: flex; gap: 1.5rem;
}
.step-marker {
  font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700;
  color: var(--accent-2); padding-top: 0.25rem;
}
.step-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 640px) { .step-flow { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Calculator Panel */
.calculator-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
}
.calc-panel-controls { padding: 3rem; }
.panel-label { display: block; margin-bottom: 2rem; }
.panel-label span { font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 0.5rem; }
.control-value { font-family: var(--font-mono); font-size: 2.5rem; color: var(--text); display: block; margin-bottom: 1rem; }
.tech-slider { width: 100%; height: 6px; background: var(--surface-alt); border-radius: 3px; outline: none; -webkit-appearance: none; }
.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-2); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.calc-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.tech-fieldset { border: none; padding: 0; margin: 0; }
.tech-fieldset legend { font-weight: 600; color: var(--text-muted); margin-bottom: 1rem; }
.tariff-options-dash, .addon-options-dash { display: flex; flex-direction: column; gap: 0.75rem; }
.dash-radio, .dash-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.dash-radio input, .dash-checkbox input { margin-top: 0.25rem; width: 16px; height: 16px; accent-color: var(--accent-2); }
.dash-radio-content, .dash-checkbox-content { display: flex; flex-direction: column; }
.dash-radio-content b, .dash-checkbox-content b { font-size: 0.875rem; }
.dash-radio-content span, .dash-checkbox-content span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.option-desc { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.3; }

.calc-panel-results {
  background: var(--dark-panel);
  color: var(--surface);
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
}
.result-header { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #2AD4FF; margin-bottom: 2rem; font-size: 1.125rem; }
.result-metrics { display: flex; flex-direction: column; gap: 1.5rem; }
.result-box { border-bottom: 1px solid var(--dark-border); padding-bottom: 1.5rem; }
.result-box:last-child { border-bottom: none; padding-bottom: 0; }
.result-label { font-size: 0.875rem; color: rgba(255,255,255,0.8); display: block; margin-bottom: 0.25rem; font-weight: 600; }
.result-value { font-family: var(--font-mono); font-size: 1.75rem; display: block; color: var(--surface); }
.result-box.positive .result-value { color: #10B981; }
.result-box.highlight .result-value { color: #2AD4FF; font-size: 2.5rem; }

@media (max-width: 992px) {
  .calculator-panel { grid-template-columns: 1fr; }
  .calc-panel-controls { padding: 2rem; }
  .calc-panel-results { padding: 2rem; }
}
@media (max-width: 640px) {
  .calc-options-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Contact Panel */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  box-shadow: var(--shadow-lg);
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info .section-subtitle { margin-bottom: 2rem; }
.contact-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.badge { padding: 0.5rem 1rem; background: var(--surface-alt); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.tech-lead-form label { display: block; margin-bottom: 1.5rem; }
.tech-lead-form label span { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.tech-lead-form input[type="text"], .tech-lead-form input[type="tel"] {
  width: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem;
}
.consent { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.5rem; }
.consent input { margin-top: 0.25rem; }

@media (max-width: 992px) {
  .contact-panel { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
}

/* Footer */
.control-panel-footer {
  position: relative;
  background: var(--dark-panel);
  color: rgba(255,255,255,0.6);
  padding: 4rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--dark-border);
  overflow: hidden;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.footer-links { display: flex; gap: 2rem; font-weight: 600; }
.footer-links a:hover { color: var(--surface); }
.footer-meta p { margin: 0; }
.footer-meta small { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.5; }

@media (max-width: 480px) {
  .section-shell { margin: 3rem auto; }
  .section-head { margin-bottom: 2rem; }
  .price-tag { font-size: 2.5rem; }
  .product-body { padding: 1.5rem; gap: 2rem; }
  .contact-panel { padding: 1.5rem; }
  .product-form { padding: 1.5rem; }
  .premium-module { padding: 1.5rem; width: 100%; }
  .module-flow {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .hero-section { padding: 2rem 1rem; }
  .hero-copy h1 { font-size: 2rem; }
}

/* Motion/Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
}
  html { scroll-behavior: auto; }
}

/* Scroll to top */
#scrollToTopBtn.scroll-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  left: auto;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0B1020;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(11, 16, 32, 0.26);
  cursor: pointer;
  z-index: 9999;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease, box-shadow .2s ease;
}
#scrollToTopBtn.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollToTopBtn.scroll-to-top:hover {
  background: #111827;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(42, 212, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
#scrollToTopBtn.scroll-to-top:active {
  transform: translateY(0);
}
#scrollToTopBtn.scroll-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #scrollToTopBtn.scroll-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: auto;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }
}

/* ===== CANONICAL UI SYSTEM: CTA, scroll button, calculator ===== */

:root {
  --brand-green: #10B981;
  --brand-green-hover: #059669;
  --brand-blue: #5C6CFF;
  --brand-cyan: #2AD4FF;
  --brand-navy: #1E3A5F;
  --brand-text: #0B1020;
  --brand-muted: #6B7280;
}

/* CTA system */
.button.primary,
a.button.primary,
button.button.primary,
.mobile-menu-cta {
  background: var(--brand-green);
  color: #FFFFFF;
  border-color: var(--brand-green);
}

.button.primary:hover,
a.button.primary:hover,
button.button.primary:hover,
.mobile-menu-cta:hover {
  background: var(--brand-green-hover);
  border-color: var(--brand-green-hover);
  color: #FFFFFF;
}

.button.secondary,
a.button.secondary,
button.button.secondary {
  background: #FFFFFF;
  color: var(--brand-text);
  border: 1px solid rgba(11, 16, 32, 0.14);
}

.button.secondary:hover,
a.button.secondary:hover,
button.button.secondary:hover {
  background: #F8FAFC;
  border-color: rgba(11, 16, 32, 0.22);
  color: var(--brand-text);
}

/* Scroll-to-top floating action button */
button#scrollToTopBtn.scroll-to-top,
#scrollToTopBtn.scroll-to-top {
  position: fixed;
  inset: auto 32px 32px auto;
  left: auto;
  right: 32px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0B1020;
  color: #FFFFFF;
  box-shadow: 0 18px 42px rgba(11, 16, 32, 0.34), 0 0 0 1px rgba(42, 212, 255, 0.08);
  cursor: pointer;
  z-index: 99999;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

button#scrollToTopBtn.scroll-to-top.is-visible,
#scrollToTopBtn.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

button#scrollToTopBtn.scroll-to-top:hover,
#scrollToTopBtn.scroll-to-top:hover {
  background: #111827;
  box-shadow: 0 22px 52px rgba(11, 16, 32, 0.42), 0 0 0 1px rgba(42, 212, 255, 0.18);
  transform: translate3d(0, -2px, 0) scale(1);
}

button#scrollToTopBtn.scroll-to-top svg,
#scrollToTopBtn.scroll-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  button#scrollToTopBtn.scroll-to-top,
  #scrollToTopBtn.scroll-to-top {
    inset: auto 18px 24px auto;
    right: 18px;
    bottom: 24px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  button#scrollToTopBtn.scroll-to-top svg,
  #scrollToTopBtn.scroll-to-top svg {
    width: 22px;
    height: 22px;
  }
}

@supports (bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    button#scrollToTopBtn.scroll-to-top,
    #scrollToTopBtn.scroll-to-top {
      bottom: calc(24px + env(safe-area-inset-bottom));
      inset: auto 18px calc(24px + env(safe-area-inset-bottom)) auto;
    }
  }
}

/* Calculator semantic system */
.calc-control-title,
.calc-panel-controls .calc-control-title,
.calc-panel-controls .panel-label > .calc-control-title {
  color: var(--brand-text);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.calc-panel-controls .control-value,
.control-value,
#monthlyCostLabel,
#automationLabel {
  color: var(--brand-green);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.calc-panel-controls fieldset > legend {
  color: var(--brand-text);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.25;
}

.dash-radio-content b,
.dash-checkbox-content b {
  display: block;
  color: var(--brand-text);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: 0.16rem;
}

.calc-option-price,
.dash-radio-content > .calc-option-price,
.dash-checkbox-content > .calc-option-price {
  display: block;
  color: var(--brand-navy);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0.18rem;
}

.dash-radio-content .option-desc,
.dash-checkbox-content .option-desc,
.option-desc {
  display: block;
  color: var(--brand-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 500;
  margin-top: 0.1rem;
}

.calc-panel-results .result-header,
.result-header {
  color: var(--brand-cyan);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calc-panel-results .result-label,
.result-label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.calc-panel-results .result-value,
.result-value {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.result-box.positive .result-value {
  color: var(--brand-green);
}

.result-box.highlight .result-value {
  color: var(--brand-cyan);
}

@media (max-width: 768px) {
  .calc-control-title,
  .calc-panel-controls .calc-control-title,
  .calc-panel-controls fieldset > legend {
    font-size: 1rem;
  }

  .calc-panel-controls .control-value,
  .control-value {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .dash-radio-content b,
  .dash-checkbox-content b {
    font-size: 1rem;
  }

  .calc-option-price {
    font-size: 0.9rem;
  }
}

/* CTA context mappings inside canonical UI system */
.hero-actions .button.primary,
.control-panel-header .button.primary,
.start-package-form .button.primary,
.tech-lead-form .button.primary,
.quick-form-card .button.primary {
  background: var(--brand-green);
  color: #FFFFFF;
  border-color: var(--brand-green);
}

.hero-actions .button.primary:hover,
.control-panel-header .button.primary:hover,
.start-package-form .button.primary:hover,
.tech-lead-form .button.primary:hover,
.quick-form-card .button.primary:hover {
  background: var(--brand-green-hover);
  color: #FFFFFF;
  border-color: var(--brand-green-hover);
}

.hero-actions .button.secondary {
  background: #FFFFFF;
  color: var(--brand-text);
  border: 1px solid rgba(11, 16, 32, 0.14);
}

.hero-actions .button.secondary:hover {
  background: #F8FAFC;
  color: var(--brand-text);
  border-color: rgba(11, 16, 32, 0.22);
}

/* ===== CANONICAL FORM FIELD SYSTEM ===== */
/* Unified input styling for all lead forms. Do not style checkbox/radio/range/buttons here. */

:root {
  --form-field-bg: #FFFFFF;
  --form-field-border: rgba(11, 16, 32, 0.14);
  --form-field-border-hover: rgba(11, 16, 32, 0.24);
  --form-field-focus: var(--brand-green, #10B981);
  --form-field-text: var(--brand-text, #0B1020);
  --form-field-placeholder: #8A8F9E;
  --form-field-shadow-focus: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
.tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
.quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
.start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]) {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--form-field-border);
  border-radius: 14px;
  background: var(--form-field-bg);
  color: var(--form-field-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"])::placeholder,
.tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"])::placeholder,
.quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"])::placeholder,
.start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"])::placeholder,
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"])::placeholder {
  color: var(--form-field-placeholder);
  opacity: 1;
}

.mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):hover,
.tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):hover,
.quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):hover,
.start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):hover,
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):hover {
  border-color: var(--form-field-border-hover);
}

.mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus,
.mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus-visible,
.tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus,
.tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus-visible,
.quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus,
.quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus-visible,
.start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus,
.start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus-visible,
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus,
form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):focus-visible {
  border-color: var(--form-field-focus);
  box-shadow: var(--form-field-shadow-focus);
  outline: none;
}

/* Keep consent checkbox compact and untouched by text input styling */
form input[type="checkbox"] {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--brand-green, #10B981);
}

@media (max-width: 768px) {
  .mini-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  .tech-lead-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  .quick-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  .start-package-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]) {
    min-height: 50px;
    border-radius: 13px;
    padding: 0.82rem 0.95rem;
  }
}

/* ===== SECURITY TRUST SECTION ===== */
.security-trust-section {
}
.security-trust-card {
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
  border: 1px solid rgba(92, 108, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(10, 15, 28, 0.08);
  overflow: hidden;
}
.security-trust-left {
  padding: clamp(0.25rem, 1vw, 0.5rem);
}
.security-trust-text {
  margin: 0 0 1.25rem;
  color: #5F6B7E;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 620px;
}
.security-trust-text:last-child { margin-bottom: 0; }
.security-trust-right {
  display: grid;
  gap: 0.85rem;
  align-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #0B1020;
  border-radius: 24px;
}
.security-trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #F3F5FA;
  font-size: 0.96rem;
  line-height: 1.4;
}
.security-trust-item span:last-child {
  white-space: nowrap;
}
.security-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  font-weight: 800;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .security-trust-card { width: 100%; grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem; border-radius: 22px; }
  .security-trust-right { border-radius: 18px; }
  .security-trust-item { padding: 0.75rem 0.9rem; }
  .security-trust-item span:last-child { white-space: normal; }
}

/* ===== PROCESS SECTION ===== */
.process-section-dark {
  background: linear-gradient(135deg, rgba(42,212,255,0.1), rgba(92,108,255,0.1)), var(--dark-panel);
  color: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}
.process-section-dark .step-flow-container {
  max-width: 1000px;
  margin: 0 auto;
}
.process-section-dark .step-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 4rem;
}
.process-section-dark .section-title {
  color: var(--surface);
}
.process-section-dark .step-marker {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}
.process-section-dark .step-content h3 {
  color: var(--surface);
}
.process-section-dark .step-content p {
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 992px) {
  .process-section-dark { padding: 3rem 1.5rem; }
}
@media (max-width: 640px) {
  .process-section-dark .step-flow { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ===== FOOTER MOBILE NAV FIX ===== */
/* Footer links must never overflow viewport on mobile. */

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .control-panel-footer,
  .site-footer {
    overflow: hidden;
  }

  .footer-inner {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 320px;
    gap: 0.75rem 1rem;
    margin: 1.5rem auto 0;
    text-align: center;
  }

  .footer-links a {
    display: block;
    min-width: 0;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .footer-meta {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .footer-links {
    grid-template-columns: 1fr;
    max-width: 260px;
  }
}
