:root {
    --bg: #05060a;
    --ink: #e8f6ff;
    --ink-dim: #a9eaff;
    --accent-a: #7ae4ff;
    --accent-b: #cda6ff;
    --panel: rgba(255, 255, 255, 0.02);
    --panel-line: rgba(136, 225, 255, 0.20);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
    color: var(--accent-a);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Topbar / Nav */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(5, 6, 10, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	margin-right: 10vw;
}

.brand {
    font-weight: 700;
    letter-spacing: .02em;
}

.nav a {
    margin-left: 18px;
}

/* Hero */
.hero {
  padding: 8vh 8vw 10vh;        /* was 12vh 8vw 10vh */
}

.hero-tight {
  padding: 6vh 8vw 4vh;         /* was 8vh 8vw 4vh */
}


.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: .01em;
}

.hero .sub {
    opacity: .85;
    max-width: 72ch;
}



.lead {
    opacity: .85
}

/* Service sections */
.svc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
    padding: 2vh 8vw;
}

.svc .text h2 {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 3.4vw, 36px);
}

.bullets {
    margin: 0 0 18px;
    padding-left: 1.1em;
}

.bullets li {
    margin: .35rem 0;
}

/* Small note under bullet lists */
.note {
  margin-top: 8px;
  opacity: .7;
  font-size: 0.95rem;
}

/* Slightly richer glass for visuals on hover */
.svc .visual:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(122, 228, 255, 0.06),
              inset 0 0 0 1px rgba(205, 166, 255, 0.12);
}

.svc .visual {
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    min-height: 380px;
    height: 46vh;
    max-height: 560px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

#quantumCircuit,
#aiVisual,
#aiCallFlow {
    width: 100%;
    height: 100%;
    display: block;
}

/* CTA buttons */
.cta-strip {
    display: flex;
    gap: 14px;
    justify-content: center;
    padding: 8vh 8vw;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(122, 228, 255, 0.08);
    border: 1px solid rgba(122, 228, 255, 0.35);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    border: 0;
    color: #04141b;
}

.btn:hover {
    filter: brightness(1.08);
    border-width: 2px;
    border-color: rgba(136, 225, 255, 0.55); /* lighter, brighter */
    transition: border-color 0.25s ease, border-width 0.25s ease;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: .9;
}

.footer .links a {
    margin-left: 16px;
}

/* Page + Form (shared) */
.page.pad {
    padding: 3vh 8vw;
}

.form {
    display: grid;
    gap: 1rem;
    max-width: 900px;
}

fieldset {
    border: 1px solid rgba(136, 225, 255, 0.20);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

legend {
    padding: 0 .5rem;
    font-weight: 700;
    color: var(--ink);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(136, 225, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink);
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.form .grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* Pills for method callouts */
.pill-wrap { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pill {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; font-size:.9rem; border-radius:999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--panel-line);
}

/* 3-up responsive grid for sector panels */
.grid3 {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 18px);
}
@media (max-width: 1200px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .grid3 { grid-template-columns: 1fr; } }

/* Small note style (if not already added) */
.note { margin-top: 8px; opacity: .7; font-size: 0.95rem; }

@media (max-width: 880px) {
    .form .grid2 {
        grid-template-columns: 1fr;
    }
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.check {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page.pad.center {
    text-align: center;
}

.pulse {
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.02);
        filter: brightness(1.12);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Company section label spacing parity */
.form .company label {
    padding-top: 6px;
    display: block;
}

/* Dark selects with custom arrow (shared across site) */
.form select {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--ink) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 18px) calc(50% - 5px),
        calc(100% - 12px) calc(50% - 5px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.form option {
    color: #0e1820;
    background: #e9f7ff;
}

.form select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(122, 228, 255, 0.25);
    border-color: rgba(122, 228, 255, 0.65);
}

/* Investors page layout (works with either .card or .panel wrapper) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 48px);
    align-items: start;
    padding: 8vh 8vw;
}

.card,
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    padding: clamp(16px, 2.2vw, 28px);
}

.card h2,
.panel h2 {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 3vw, 32px);
}

.card p.lead,
.panel p.lead {
    opacity: .9;
    margin: 8px 0 18px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 960px) {
    .svc {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    /* Optional order swaps for service sections on mobile */
    .svc.svc-ai .visual {
        order: 0;
    }

    .svc.svc-quantum .text {
        order: 0;
    }
}

/* === Global Nav === */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--top, #0b0f1a);
  border-bottom: 1px solid var(--panel-line);
  padding: 10px 16px;
}
.topbar .brand a { text-decoration: none; }

.nav { display: flex; gap: 12px; align-items: center; }
.nav-link { padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { background: var(--panel, rgba(255,255,255,.06)); }

.menu-item { position: relative; }
.submenu-toggle {
  background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.submenu-toggle::after {
  content: "▾"; font-size: .8rem; opacity: .8; transform: translateY(-1px);
}
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg) translateY(1px); }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--panel, #111725); border: 1px solid var(--panel-line); border-radius: 10px;
  padding: 8px; display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.submenu .submenu { left: 100%; top: -8px; } /* second-level menu (Quantum under Services) */

.menu-item.open > .submenu { display: block; }
.submenu-link {
  display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none;
}
.submenu-link:hover { background: rgba(255,255,255,.06); }
.submenu-label {
  pointer-events: none; opacity: .66; font-size: .8rem; padding: 6px 10px 2px; text-transform: uppercase;
}

/* Active link marker (optional) */
.nav a.active, .submenu a.active {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}

/* === Mobile === */
.nav-toggle {
  display: none;
  width: 42px; height: 36px; border: 1px solid var(--panel-line); border-radius: 8px;
  background: transparent; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: currentColor;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 58px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--top, #0b0f1a); border-bottom: 1px solid var(--panel-line);
    padding: 8px;
  }
  .nav.open { display: flex; }
  .nav > .nav-link,
  .nav > .menu-item > .submenu-toggle { padding: 12px; border-radius: 8px; }
  .menu-item { width: 100%; }
  .submenu {
    position: static; display: none; box-shadow: none; border-radius: 8px; margin: 6px 0 8px;
  }
  .menu-item.open > .submenu { display: block; }
  .submenu .submenu { position: static; margin: 6px 0 0; }
}

/* ==== NAV FIXES: z-index, gaps, colors ==== */
.topbar { z-index: 1000; overflow: visible; }
.topbar, .topbar a, .topbar a:visited, .submenu-toggle { color: var(--top-fg, #e7ecf3); }
.nav a { color: inherit; }                       /* kill neon on plain links */
.menu-item { position: relative; z-index: 0; }
.menu-item.open { z-index: 2001; }               /* stack above neighbors */

.submenu {
  position: absolute;
  top: calc(100% - 1px);                         /* no gap under trigger */
  left: 0;
  margin: 0;
  z-index: 2000;                                 /* above topbar border */
}

/* second-level (Quantum under Services) – no gap to the right */
.submenu .submenu {
  top: -1px;
  left: calc(100% - 2px);                        /* overlap borders; no gap */
}

/* hover bridges to prevent flicker when crossing borders */
.submenu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -8px; height: 8px;     /* bridge from trigger → submenu */
}
.submenu .submenu::before {
  content: "";
  position: absolute;
  top: 0; left: -8px; width: 8px; height: 100%;  /* bridge from submenu → sub-submenu */
}

/* optional: consistent hover bg for both plain links and toggles */
.nav-link:hover,
.submenu-toggle:hover,
.submenu-link:hover { background: rgba(255,255,255,.06); }

.hpc-hero { padding: 20px 0 0; }
.hero-graphic { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--panel-line); }
@media (max-width: 760px){
  .hero-graphic { border-radius: 10px; }
}

:root {
    --bg: #05060a;
    --ink: #e8f6ff;
    --ink-dim: #a9eaff;
    --accent-a: #7ae4ff;
    --accent-b: #cda6ff;
    --panel: rgba(255, 255, 255, 0.02);
    --panel-line: rgba(136, 225, 255, 0.20);
    --top: #0b0f1a;
    --top-fg: #e7ecf3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--panel-line);
  background: rgba(255,255,255,0.03); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn.primary { background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); color: #081018; font-weight: 700; }
.btn:hover { filter: brightness(1.06); }

/* Layout helpers */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: start; padding: 8vh 8vw;
}
.svc {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: center; padding: 2vh 8vw;
}
.svc-col.visual:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(122, 228, 255, 0.06),
              inset 0 0 0 1px rgba(205, 166, 255, 0.12);
}

.hero { padding: 8vh 8vw 10vh; }
.hero-tight { padding: 6vh 8vw 4vh; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 64px); line-height: 1.05; }

.text h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3.4vw, 36px); }
.text p { margin: 0 0 14px; color: var(--ink-dim); }

/* HERO image */
.hero-graphic { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--panel-line); }

/* Topbar / Nav */
.topbar {
  position: sticky; top: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5, 6, 10, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
}
.topbar .brand a { text-decoration: none; }
.topbar, .topbar a, .topbar a:visited, .submenu-toggle { color: var(--top-fg); }

.nav a { margin-left: 18px; }
.nav { position: relative; display: flex; gap: 12px; align-items: center; }
.nav-link { padding: 8px 10px; border-radius: 8px; color: inherit; }
.nav-link:hover { background: var(--panel, rgba(255,255,255,.06)); }
.nav a.active, .submenu a.active {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}

.nav-toggle {
  display: none;
  width: 42px; height: 36px; border: 1px solid var(--panel-line); border-radius: 8px;
  background: transparent; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle-bar {
  width: 18px; height: 2px; background: var(--top-fg); display: block;
}

/* Menus */
.menu-item { position: relative; z-index: 0; }
.menu-item.open { z-index: 4500; }

.submenu-toggle {
  background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.submenu-toggle::after {
  content: "▾"; font-size: .8rem; opacity: .8; transform: translateY(-1px);
}
.submenu-toggle[aria-expanded="true"]::after { transform: rotate(180deg) translateY(1px); }

.submenu {
  position: absolute; z-index: 4000;
  top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--panel, #111725);
  border: 1px solid var(--panel-line); border-radius: 10px;
  padding: 8px; display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.menu-item.open > .submenu { display: block; }
.submenu .submenu { left: 100%; top: -8px; } /* nested */

.submenu::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: -8px; height: 8px; /* pointer bridge */
}
.submenu .submenu::before {
  content: ""; position: absolute;
  top: 0; left: -8px; width: 8px; height: 100%;
}

/* submenu items */
.submenu-link {
  display: block; padding: 8px 10px; border-radius: 8px;
  background: var(--top, #0b0f1a); color: inherit; text-decoration: none;
}
.submenu-label {
  padding: 6px 10px; color: var(--ink-dim); font-size: .85rem; margin-top: 4px;
}
.nav-link:hover,
.submenu-toggle:hover,
.submenu-link:hover { background: rgba(255,255,255,.06); }

/* CTA strip */
.cta-strip {
  display: flex; gap: 12px; justify-content: center; padding: 28px 8vw;
  border-top: 1px solid var(--panel-line);
}

/* Footer */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 8vw; border-top: 1px solid rgba(255,255,255,0.04);
}
.footer a { color: var(--ink); text-decoration: none; }

/* Responsive */
@media (max-width: 1200px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px)  { .grid3 { grid-template-columns: 1fr; } }

@media (max-width: 960px) {
  .svc { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }

  /* Mobile nav: full-width overlay under topbar */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: 56px; z-index: 3500;
    flex-direction: column; align-items: stretch;
    background: var(--top, #0b0f1a);
    border-bottom: 1px solid var(--panel-line);
    padding: 8px;
    display: none;
  }
  .nav.open { display: flex; }

  .menu-item { width: 100%; }
  .nav > .nav-link, .nav > .menu-item > .submenu-toggle { padding: 12px; border-radius: 8px; }

  /* On mobile, submenus stack inline and get their own panel background */
  .submenu {
    position: static; z-index: auto; display: none; margin-top: 6px;
    background: rgba(11,15,26,0.96);
    border: 1px solid var(--panel-line);
  }
  .menu-item.open > .submenu { display: block; }
  .submenu .submenu { position: static; margin-top: 6px; }
  .submenu-link { width: 100%; }
}

/* Mobile image sizing */
@media (max-width: 760px){
  .visual picture, .visual img { display:block; width: 100%; height: auto; }
  img.hero-graphic { width: 100%; height: auto; max-height: none; object-fit: contain; }
}

/* Ensure the toggle has a visible foreground color */
.nav-toggle {
  display: none;
  width: 42px; height: 36px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  color: var(--top-fg);               /* <- makes currentColor non-null */
}

/* Make the SVG bulletproof across mobile browsers */
.nav-quantum-icon {
  display: inline-block;              /* avoid collapse in some resets */
  width: 24px; height: 24px;
  pointer-events: none;               /* clicks go to the button */
  flex-shrink: 0;
}

/* Explicit stroke color so it doesn't rely on inheritance quirks */
.nav-quantum-icon,
.nav-quantum-icon * {
  fill: none !important;
  stroke: var(--top-fg) !important;   /* <- force visible stroke */
}

/* Optional: a tiny hover/press affordance */
.nav-toggle:active .nav-quantum-icon,
.nav-toggle:hover .nav-quantum-icon { transform: scale(1.06); }

/* Show the button on mobile */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
}
/* === Fix for Include Overage Buffer checkbox + label === */
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;   /* aligns box with first line of text */
  flex: 0 0 auto;
  accent-color: var(--accent-a); /* uses your theme accent */
}

.check label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  white-space: normal;   /* allow natural wrapping */
  word-break: normal;
  overflow-wrap: normal;
  color: var(--ink);
}

.nowrap {
  white-space: nowrap;   /* keep "(adds +10% plan)" together */
}

/* === Mobile media fixes (safe overrides) === */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Keep images from stretching inside grid/flex cards */
.visual img, .visual picture, .hero img, .card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Fluid canvas: respect container width; avoid fixed pixel heights */
.canvas-fluid {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Optional aspect helpers you can opt-in to (only if needed) */
.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3  { aspect-ratio: 4 / 3; }

/* If any parent sets a fixed height on mobile, neutralize it */
@media (max-width: 960px) {
  .visual, .hero .visual, .media-card {
    min-height: auto !important;
    height: auto !important;
  }
}
#aiTraining { width: 100%; height: 100%; display: block; }

/* === Services page: stagger visuals R / L / R / L on desktop === */
/* Scope to the Services page only (main#services) so other pages are unaffected */
#services .svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* default: text left, visual right */
  grid-template-areas: "text visual";
}

#services .svc .text  { grid-area: text; }
#services .svc .visual{ grid-area: visual; }

/* Flip the areas on even sections so the visual goes to the LEFT */
@media (min-width: 961px) {
  #services .svc:nth-of-type(even) {
    grid-template-areas: "visual text";
  }
}

/* Mobile: always stack text first, then visual (no staggering on small screens) */
@media (max-width: 960px) {
  #services .svc {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "visual";
  }
}
/* === Fix crushed visuals on Services page (mobile) === */
@media (max-width: 960px) {
  #aiTrainingl {
    min-height: 440px;   /* ensures enough space for image/canvas */
    height: auto !important;
  }

  .svc .visual img,
  .svc .visual canvas,
  .svc .visual picture {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }
}

