:root {
  --ink: #2E4E70;
  --ink-2: #54718E;
  --steel: #8296AC;
  --steel-light: #D5DCE6;
  --body: #6A7E93;
  --muted: #8296AC;
  --cyan-text: #0987B8;
  --bg-tint: #F7FAFD;
  --line: #E3EAF2;
  --green: #15803D;
  --green-dark: #14532D;
  --green-tint: #E7F8EF;
  --indigo: #4338CA;
  --indigo-dark: #3730A3;
  --indigo-tint: #EEF2FF;
  --cyan-tint: #E4F9FF;
  --cyan-dark: #075E7A;
  --orange: #C2410C;
  --orange-dark: #7C2D12;
  --orange-tint: #FFF7ED;
  --grad: linear-gradient(80deg, #00A8CC, #18B6FF);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(46, 78, 112, 0.08); background: rgba(255, 255, 255, 0.97); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo-word { font-weight: 800; font-size: 18px; letter-spacing: -0.4px; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14px; color: var(--body); text-decoration: none; font-weight: 600;
}
.nav-links a:hover { color: var(--ink); }

/* products dropdown */
.nav-dd { position: relative; }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.nav-dd-trigger {
  background: none; border: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0;
}
.nav-dd-trigger:hover { color: var(--ink); }
.nav-dd .chev { font-size: 10px; transition: transform 0.2s ease; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; width: 290px;
  box-shadow: 0 16px 40px rgba(46, 78, 112, 0.14); z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd:hover .chev, .nav-dd.open .chev { transform: rotate(180deg); }
.nav-dd-menu a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
}
.nav-dd-menu a:hover { background: var(--bg-tint); }
.nav-dd-menu a strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dd-menu a span { font-size: 12px; font-weight: 500; color: var(--cyan-text); }

/* offset anchored sections below the sticky nav */
section[id], header[id] { scroll-margin-top: 80px; }

.btn {
  display: inline-block; border-radius: 99px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; padding: 11px 24px; font-size: 14px; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(46, 78, 112, 0.25); }
.btn-nav { background: var(--ink); color: #fff; padding: 9px 20px; font-size: 13px; }
.btn-ghost { color: var(--cyan-text); padding: 11px 8px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); padding: 12px 28px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 24px 40px; position: relative; overflow: hidden; }
.hero > *:not(.hero-ambient) { position: relative; z-index: 1; }

/* animated brand lockup — "Aegis" pinned at center seam, suffix cycles */
.ag-lockup { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; }
.ag-iconwrap {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-tint); transition: background 0.45s ease;
}
.ag-icon { width: 30px; height: 30px; color: var(--orange); display: inline-flex; }
.ag-icon svg { width: 100%; height: 100%; }
.ag-word {
  position: relative; height: 1.15em; width: 100%;
  font-weight: 800; font-size: clamp(28px, 5.5vw, 46px); letter-spacing: -1.5px; line-height: 1.15;
}
.ag-prefix { position: absolute; right: 50%; top: 0; color: var(--ink); }
.ag-sfx { position: absolute; left: 50%; top: 0; white-space: nowrap; color: var(--orange); }
.chip {
  display: inline-block; background: var(--cyan-tint); color: var(--cyan-dark);
  font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 99px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; max-width: 720px; margin: 24px auto 0;
}
.hero-sub {
  font-size: 17px; color: var(--body); max-width: 560px; margin: 20px auto 0;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.trust { font-size: 13px; color: var(--muted); margin-top: 20px; }

.hero-visual { max-width: 760px; margin: 48px auto 0; padding: 0 24px 90px; }
.browser-frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px rgba(46, 78, 112, 0.12);
}
.browser-bar {
  display: flex; gap: 6px; padding: 11px 14px;
  background: var(--bg-tint); border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--steel-light); }

.cockpit { padding: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--bg-tint); border-radius: 10px; padding: 14px; text-align: left; }
.kpi-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.5px; }
.kpi-value { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.kpi-risk { background: var(--orange-tint); }
.kpi-risk .kpi-label, .kpi-risk .kpi-value { color: var(--orange); }
.kpi-good .kpi-value { color: var(--cyan-text); }
.bars { display: flex; gap: 5px; align-items: flex-end; height: 64px; margin-top: 14px; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: #A8E1F6; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.tinted { background: var(--bg-tint); }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
}
h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.8px; margin-top: 10px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head p { color: var(--body); font-size: 16px; margin-top: 14px; }

.infographic { max-width: 640px; margin: 0 auto; }
.infographic svg { width: 100%; height: auto; }

/* ---------- product sections ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.6px; margin-top: 8px; }
.product-tag { font-size: 15px; color: var(--body); font-style: italic; margin-top: 6px; }
.product ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.product li {
  font-size: 15px; color: var(--body); padding-left: 26px; position: relative;
}
.product li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cyan-tint);
  box-shadow: inset 0 0 0 4px #7CD3F2;
}
.k-orange { color: var(--orange); }
.k-indigo { color: var(--indigo); }
.k-cyan { color: var(--cyan-text); }
.k-green { color: var(--green); }
.badge {
  display: inline-block; background: var(--cyan-tint); color: var(--cyan-dark);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px;
  vertical-align: middle; margin-left: 10px;
}

.shot {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(46, 78, 112, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: 0 30px 55px rgba(46, 78, 112, 0.16); }
.shot-frame {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 20px 40px rgba(46, 78, 112, 0.10);
}
.shot-frame .browser-bar { border-radius: 0; }
.shot-frame img { width: 100%; display: block; }
.about-photo { width: 100%; border-radius: 16px; display: block; box-shadow: 0 20px 40px rgba(46, 78, 112, 0.12); }

.vignette {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff;
}
.vignette-label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1px; margin-bottom: 12px; }
.vignette-dark { background: #22354C; border: none; }
.vignette-dark .vignette-label { color: #8FB3D9; }

.board-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.board-row .line-name { font-size: 11px; color: var(--muted); width: 44px; flex-shrink: 0; }
.board-row span:not(.line-name) { height: 18px; border-radius: 5px; }

.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-kpi { background: #2E4E70; border-radius: 10px; padding: 12px; }
.mini-kpi .kpi-label { color: #8FB3D9; font-size: 10px; }
.mini-kpi .kpi-value { color: #fff; font-size: 18px; }
.mini-kpi.risk { background: #7C2D12; }
.mini-kpi.risk .kpi-label { color: #FED7AA; }
.mini-kpi.risk .kpi-value { color: #FDBA74; }
.heat { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 12px; }
.heat span { height: 14px; border-radius: 3px; }

.proposal-head { display: flex; justify-content: space-between; align-items: center; }
.fit-badge { background: var(--cyan-tint); color: var(--cyan-dark); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.proposal-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 10px; }
.proposal-why { font-size: 13.5px; color: var(--body); margin-top: 8px; }
.proposal-actions { display: flex; gap: 10px; margin-top: 14px; }
.pill { font-size: 12px; font-weight: 600; padding: 7px 18px; border-radius: 99px; }
.pill-solid { background: var(--ink); color: #fff; }
.pill-line { border: 1px solid var(--steel-light); color: var(--body); }

/* ---------- eagle eye gallery + lightbox ---------- */
.zoomable { cursor: zoom-in; }
.ee-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.ee-gallery figure { margin: 0; }
.ee-gallery figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; padding: 24px;
  background: rgba(11, 18, 32, 0.88); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 96%; max-height: 92vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); }
.lightbox-close {
  position: absolute; top: 18px; right: 26px; background: none; border: none;
  color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- vision / upcoming AI agent ---------- */
.product-next { font-size: 15px; color: var(--cyan-text); font-weight: 600; margin-top: 18px; }
.vision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.vision-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vision-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(46, 78, 112, 0.10); }
.vision-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--cyan-tint); color: var(--cyan-text);
  display: flex; align-items: center; justify-content: center;
}
.vision-ic svg { width: 24px; height: 24px; }
.vision-card h4 { font-size: 16px; font-weight: 600; }
.vision-card p { font-size: 14px; color: var(--body); margin-top: 8px; line-height: 1.6; }

/* ---------- greenlight ---------- */
.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 720px; margin: 0 auto 56px; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; }
.module-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(46, 78, 112, 0.10); }
.module-card h4 { font-size: 16px; font-weight: 600; color: var(--green-dark); }
.module-card p { font-size: 14px; color: var(--body); margin-top: 8px; }

.carousel {
  max-width: 860px; margin: 64px auto 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px rgba(46, 78, 112, 0.12);
}
.carousel-stage { position: relative; aspect-ratio: 16 / 8; background: var(--bg-tint); }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
#carousel-caption { font-size: 13.5px; color: var(--body); transition: opacity 0.4s ease; }
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--steel-light);
  border: none; cursor: pointer; padding: 0; transition: background 0.3s ease;
}
.dot.active { background: var(--green); }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(46, 78, 112, 0.10); border-color: var(--border-strong, #C9D6E4); }
.why-card h4 { font-size: 16px; font-weight: 600; }
.why-card p { font-size: 14px; color: var(--body); margin-top: 8px; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start;
  max-width: 940px; margin: 0 auto;
}
.founder-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; text-align: center; position: sticky; top: 96px;
}
.founder-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, #E4F9FF, #EEF2FF);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.founder-photo span { display: none; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.founder-name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.founder-title { font-size: 14px; color: var(--cyan-text); font-weight: 600; margin-top: 3px; }
.founder-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--cyan-text); text-decoration: none;
  transition: color 0.2s ease;
}
.founder-link svg { width: 16px; height: 16px; }
.founder-link:hover { color: var(--ink); }
.creds {
  list-style: none; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.creds li { font-size: 14px; color: var(--body); }
.creds strong { color: var(--ink); font-weight: 600; }
.about-story p { font-size: 16px; color: var(--body); margin-bottom: 18px; }
.about-story p:last-child { margin-bottom: 0; }
.about-lead { font-size: 19px !important; color: var(--ink) !important; font-weight: 600; }
.about-divider { text-align: center; margin: 60px 0 28px; }

/* ---------- floor photos ---------- */
.floor-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px;
}
.floor-photos figure { margin: 0; }
.floor-photos img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 14px; display: block;
  box-shadow: 0 20px 40px rgba(46, 78, 112, 0.12);
}
.floor-caption {
  grid-column: 1 / -1; text-align: center; font-size: 15px; color: var(--body);
  font-style: italic; margin-top: 4px;
}

/* ---------- cta ---------- */
.cta-band {
  background: var(--ink); border-radius: 20px; padding: 64px 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9CBDE; font-size: 16px; margin-top: 12px; }
.cta-band .btn-light { margin-top: 28px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }
.foot-right { font-size: 13px; color: var(--muted); text-align: right; }
.foot-right a { color: var(--cyan-text); text-decoration: none; }

/* ---------- reveal animations (JS/GSAP-driven) ---------- */
/* Hidden state only applies once JS confirms it can animate; GSAP overrides via
   inline styles, and .reveal-all is the instant-show fallback (no-GSAP / reduced motion). */
html.js .reveal,
html.js .reveal-stagger > *,
html.js .hero .ag-lockup,
html.js .hero .chip,
html.js .hero h1,
html.js .hero .hero-sub,
html.js .hero .hero-ctas,
html.js .hero .trust { opacity: 0; will-change: transform, opacity; }
html.reveal-all .reveal,
html.reveal-all .reveal-stagger > *,
html.reveal-all .hero .ag-lockup,
html.reveal-all .hero .chip,
html.reveal-all .hero h1,
html.reveal-all .hero .hero-sub,
html.reveal-all .hero .hero-ctas,
html.reveal-all .hero .trust { opacity: 1 !important; transform: none !important; }

/* ---------- ambient hero motion ---------- */
.hero-ambient { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-ambient span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
}
.hero-ambient span:nth-child(1) { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, #BEEBFB, transparent 70%); animation: drift1 22s ease-in-out infinite; }
.hero-ambient span:nth-child(2) { width: 400px; height: 400px; top: -60px; right: -60px;
  background: radial-gradient(circle, #E1E9F4, transparent 70%); animation: drift2 26s ease-in-out infinite; }
.hero-ambient span:nth-child(3) { width: 360px; height: 360px; bottom: -140px; left: 40%;
  background: radial-gradient(circle, #D6F3FC, transparent 70%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,50px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,-40px); } }

/* ---------- flowing infographic connectors + gate glow ---------- */
.infographic line[stroke-dasharray] { animation: dashflow 1.3s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -8; } }
.infographic rect[fill="#15803D"] { animation: gateglow 2.6s ease-in-out infinite; }
@keyframes gateglow {
  0%,100% { filter: drop-shadow(0 0 0 rgba(21,128,61,0)); }
  50% { filter: drop-shadow(0 0 9px rgba(21,128,61,0.5)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal-stagger > *,
  html.js .hero .ag-lockup, html.js .hero .chip, html.js .hero h1, html.js .hero .hero-sub,
  html.js .hero .hero-ctas, html.js .hero .trust { opacity: 1 !important; transform: none !important; }
  .slide { transition: none; }
  .btn { transition: none; }
  .hero-ambient span,
  .infographic line[stroke-dasharray],
  .infographic rect[fill="#15803D"] { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-dd { display: none; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-visual { order: -1; }
  .modules { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 28px; max-width: 520px; }
  .founder-card { position: static; }
  .floor-photos { grid-template-columns: 1fr; }
  .floor-photos img { height: 240px; }
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .ee-gallery { grid-template-columns: 1fr; }
  .carousel-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}
