/* ===== Tokens ===== */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --primary: #1d4ed8;
  --primary-text: #1e40af;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, .10);
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 18px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 2000;
  background: var(--primary); color: #fff;
  padding: 12px 18px; border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===== Scene stack ===== */
#sceneStack { scroll-snap-type: y proximity; }
.scene {
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 24px 44px;
}
.scene.alt { background: var(--bg-alt); }
.scene-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 2.4px;
  font-size: .8rem; font-weight: 700; color: var(--primary-text);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--ink-soft); max-width: 660px; margin: 10px auto 0; }

[data-reveal] {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ===== Header / nav ===== */
.site-header {
  position: fixed; z-index: 1000; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo .wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 14px; text-decoration: none;
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  border-radius: 8px; transition: color .2s ease, background .2s ease;
}
.primary-nav a:hover { color: var(--primary-text); background: #eff6ff; }
.primary-nav a.active { color: var(--primary-text); font-weight: 600; }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  font-weight: 600 !important; border-radius: 10px !important;
  margin-left: 8px; padding: 0 18px !important;
}
.nav-cta:hover { background: var(--primary-text) !important; }
.nav-toggle {
  display: none; min-width: 44px; min-height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1.2rem; color: var(--ink); cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; z-index: 999;
  top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: 8px 16px 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 12px 14px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--bg-alt); color: var(--primary-text); }

@media (max-width: 899px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ===== Dot nav ===== */
.dot-nav { display: none; position: fixed; z-index: 900; right: 18px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 6px; }
.dot-nav button {
  width: 44px; height: 44px; padding: 16px; /* 44px hit area */
  background: none; border: none; cursor: pointer; position: relative;
}
.dot-nav button::after {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 99px;
  background: var(--line); transition: all .25s ease;
}
.dot-nav button.active::after { height: 24px; background: var(--primary); }
@media (min-width: 1024px) { .dot-nav { display: flex; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 10px; border: 2px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-text); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

/* ===== AI briefing band ===== */
.ai-band { background: #fff; border-top: 4px solid var(--primary); }
.ai-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.ai-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.ai-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ai-note { margin-top: 18px; color: var(--ink-soft); font-size: .9rem; font-style: italic; text-align: center; }
.ai-copied { color: #15803d; font-weight: 600; font-style: normal; min-height: 1.4em; display: block; }

/* ===== Cards & grids ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 999px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: #eff6ff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card-link { display: block; text-decoration: none; color: inherit; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.chip i { color: var(--primary); }

/* ===== Hero ===== */
.hero .eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .85rem; font-weight: 700; color: var(--primary-text); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.5vw, 84px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { margin-top: 22px; font-size: 21px; color: var(--ink-soft); max-width: 640px; }
.hero .cta-row { margin-top: 36px; }
.stat-strip {
  display: flex; flex-wrap: wrap; gap: 16px 56px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-text); }
.stat span { font-size: .95rem; color: var(--ink-soft); }

/* ===== Case studies ===== */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-text));
  color: #fff; padding: 20px 22px; font-size: 1.05rem; font-weight: 700;
}
.case-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.case-body .result { font-weight: 600; color: var(--primary-text); margin-bottom: 10px; }
.case-body p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.case-body ul { text-align: left; padding-left: 1.2em; font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.case-body li { margin-bottom: 4px; }
.case-body .btn { margin-top: auto; align-self: flex-start; }

/* ===== Testimonials carousel ===== */
.carousel { max-width: 760px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.slide { flex: 0 0 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 34px 32px 28px; }
.slide blockquote { font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.75; }
.slide cite { display: block; margin-top: 18px; font-style: normal; font-weight: 700; }
.slide cite span { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.carousel-controls button {
  width: 44px; height: 44px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: border-color .2s, color .2s;
}
.carousel-controls button:hover { border-color: var(--primary); color: var(--primary-text); }
.carousel-status { font-size: .9rem; color: var(--ink-soft); }

/* ===== Whitepapers ===== */
.wp-card { text-align: left; display: flex; flex-direction: column; }
.wp-card .card-ic { background: #fef3c7; color: #b45309; }
.wp-card p { flex: 1; }
.wp-card .btn { margin-top: 18px; align-self: flex-start; min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* ===== Awards ===== */
.award-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; padding: 44px 32px; max-width: 860px; margin: 0 auto; }
.award-card img { width: 100%; max-width: 380px; margin: 0 auto 24px; }
.award-card h3 { font-size: 1.3rem; color: var(--primary-text); margin-bottom: 12px; }
.award-card blockquote {
  margin: 24px auto; max-width: 640px; padding: 18px 22px;
  border-left: 4px solid var(--primary); background: var(--bg-alt);
  text-align: left; font-style: italic; color: var(--ink-soft); border-radius: 0 8px 8px 0;
}
.award-card blockquote footer { margin-top: 8px; font-style: normal; font-size: .9rem; }
.award-card .link-inline { color: var(--primary-text); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.award-card .link-inline:hover { text-decoration: underline; }

/* ===== Schedule / Calendly ===== */
.schedule-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.calendly-frame { width: 100%; max-width: 800px; max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cal-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 420px; width: 100%; color: var(--ink-soft); }
.cal-loading i { font-size: 2.4rem; color: var(--primary); animation: cal-pulse 1.6s infinite ease-in-out; }
@keyframes cal-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 32px 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .8rem; color: var(--ink-soft); margin: 6px 0 18px; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.ok { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-msg.err { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.contact-side h3 { font-size: 1.2rem; margin-bottom: 14px; }
.contact-side ul { list-style: none; }
.contact-side li { margin-bottom: 14px; color: var(--ink-soft); }
.contact-side li i { color: var(--primary); width: 26px; }
.contact-side a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.contact-side a:hover { text-decoration: underline; }

/* ===== About + footer ===== */
.about-card { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.05rem; color: var(--ink-soft); }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 20px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.footer-arcade { color: var(--ink-soft); text-decoration: none; font-size: .85rem; opacity: .7; }
.footer-arcade:hover { opacity: 1; color: var(--primary-text); }

/* ===== Lead modal ===== */
.lead-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1500;
  background: rgba(15, 23, 42, .62); overflow-y: auto; padding: 4vh 16px;
}
.lead-modal-overlay.open { display: block; }
.lead-modal {
  position: relative; max-width: 600px; margin: 0 auto;
  background: #fff; border-radius: 16px; padding: 34px 30px 30px;
}
.lead-modal h2 { font-size: 1.4rem; margin-bottom: 6px; padding-right: 44px; }
.lead-modal .modal-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 22px; }
.lead-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; border-radius: 10px;
}
.lead-modal-close:hover { background: var(--bg-alt); color: var(--ink); }

/* ===== shared note ===== */
.center-note { max-width: 800px; margin: 28px auto 0; text-align: center; color: var(--ink-soft); font-size: 1.05rem; }

/* ===== chip groups ===== */
.chip-group { margin-top: 30px; text-align: center; }
.chip-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 12px; color: var(--ink); }

/* ===== Force-fit adjustments for scenes exceeding 900px at 1440x900 ===== */

/* #development: 1122px -> need to save 122px */
#development .section-head { margin-bottom: 28px; }
#development .card { padding: 18px 16px; }
#development .card-ic { margin-bottom: 10px; }
#development .card h3 { margin-bottom: 4px; }
#development .chip-row { gap: 8px; }
#development .chip { padding: 6px 12px; font-size: .85rem; }
#development .cert-card { padding: 18px 16px; }

/* #cloud: 1102px -> need to save 102px */
#cloud .section-head { margin-bottom: 28px; }
#cloud .card { padding: 18px 16px; }
#cloud .card-ic { margin-bottom: 10px; }
#cloud .card h3 { margin-bottom: 4px; }
#cloud .grid { gap: 14px; }
#cloud .grid-2 { margin-top: 14px; }
#cloud .card[style*="margin-top"] { margin-top: 14px !important; }

/* #ai-solutions: 977px -> need to save 77px */
#ai-solutions .section-head { margin-bottom: 28px; }
#ai-solutions .card { padding: 18px 16px; }
#ai-solutions .card-ic { margin-bottom: 10px; }
#ai-solutions .card h3 { margin-bottom: 4px; }
#ai-solutions .chip-row { gap: 8px; margin-top: 14px; }
#ai-solutions .chip { padding: 6px 12px; font-size: .85rem; }

/* #security: 929px -> need to save 29px */
#security .section-head { margin-bottom: 28px; }
#security .card { padding: 18px 16px; }
#security .card-ic { margin-bottom: 10px; }
#security .card h3 { margin-bottom: 4px; }
#security .chip-row { gap: 8px; }
#security .chip { padding: 6px 12px; font-size: .85rem; }

/* #awards: 940px -> need to save 40px */
#awards .section-head { margin-bottom: 24px; }
#awards .award-card { padding: 28px 24px; }
#awards .award-card blockquote { padding: 14px 18px; margin: 16px auto; }
#awards .award-card h3 { margin-bottom: 8px; }
