:root {
  --bg: #0b0f17;
  --panel: #0a1f3d;
  --text: #f4f7fb;
  --muted: #b0bdc9;
  --border: rgba(177, 212, 231, .13);
  --border-strong: rgba(177, 212, 231, .25);
  --accent: #00d4ff;
  --accent-blue: #0066ff;
  --accent-soft: rgba(0, 212, 255, .08);
  --max-width: 1360px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; color-scheme: dark; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: min(90%, var(--max-width)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--accent); color: var(--bg); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-shell { position: relative; isolation: isolate; overflow: clip; }
.hero-backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: 850px; pointer-events: none; background: linear-gradient(to bottom, transparent 72%, var(--bg)), url("assets/data-wave.webp") center top / cover no-repeat; }
.site-header { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 650; letter-spacing: -.035em; }
.brand-logo { display: block; width: 260px; max-width: 100%; height: auto; }
.brand-name { font-size: 1.65rem; }
.brand-name span { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 42px; color: var(--muted); font-size: .95rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; transition: color 160ms ease; }
.primary-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; cursor: pointer; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--panel); color: var(--text); }
.nav-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; }
.hero { display: flex; align-items: flex-start; min-height: 680px; padding-block: 90px 130px; }
.hero-content { min-width: 0; width: 100%; }
.eyebrow, .kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 600; }
.eyebrow { color: #c1cfda; margin-bottom: 38px; }
.hero h1 { max-width: 1000px; margin: 0; font-size: clamp(3rem, 5.35vw, 5.25rem); line-height: 1.05; letter-spacing: -.055em; text-wrap: initial; }
.hero h1 span { display: block; color: var(--accent); }
.hero-copy { max-width: 620px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.6; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; }
.button { min-height: 54px; display: inline-flex; gap: 28px; align-items: center; justify-content: center; padding: 12px 26px; border: 1px solid transparent; border-radius: 8px; font-size: .95rem; font-weight: 650; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #061016; box-shadow: 0 8px 28px rgba(0,212,255,.08); }
.button-primary:hover { background: #83eafa; }
.button-primary span { font-size: 1.4rem; line-height: 1; }
.button-secondary { border-color: #8cb6c9; background: rgba(7,12,16,.78); }
.button-secondary:hover { border-color: var(--accent); background: #10232b; }
.button-case-study { border-color: var(--accent); color: var(--text); transition-property: background, border-color, transform, box-shadow; }
.button-case-study:hover { box-shadow: 0 0 18px rgba(0,212,255,.15); }
.demo-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; color: var(--accent); font-size: .9rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.demo-link:hover { color: var(--text); }
.service-demo-link { margin-top: 20px; }
.section { padding-block: 88px; }
#services { border-top: 1px solid var(--border-strong); padding-top: 28px; }
.section-heading { max-width: 750px; margin-bottom: 40px; }
.kicker { color: var(--accent); }
#services .kicker { color: var(--muted); margin-bottom: 40px; }
.section-heading h2, .about-copy h2, .contact-card h2 { margin: 10px 0 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.12; letter-spacing: -.045em; }
.section-heading > p:last-child, .about-copy > p:last-child, .contact-card p { color: var(--muted); line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.service-card { padding: 30px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg,rgba(0,212,255,.035),transparent),var(--panel); }
.service-number { color: var(--accent); font-size: .76rem; letter-spacing: .12em; font-weight: 700; }
.service-card h3 { margin: 32px 0 10px; font-size: 1.35rem; letter-spacing: -.03em; }
.service-card p { margin-bottom: 0; max-width: 48ch; color: var(--muted); line-height: 1.75; }
.about-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-copy, .contact-card > div { min-width: 0; }
.flow-panel { padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.flow-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.flow-chip { min-height: 94px; display: grid; place-items: center; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .9rem; font-weight: 700; }
.flow-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(0,212,255,.5); }
.flow-connector { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 22px 0; }
.flow-connector span { height: 1px; background: var(--border-strong); }
.flow-connector p { margin: 0; color: var(--muted); font-size: .75rem; }
.flow-result { padding: 18px; text-align: center; border: 1px solid rgba(0,212,255,.25); border-radius: 10px; background: var(--accent-soft); font-weight: 700; }
.principles-section { padding-bottom: 0; }
.principles-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.principles-grid article { padding-inline: 24px; border-left: 1px solid var(--border-strong); }
.principles-grid .kicker { margin-top: 0; }
.principles-grid h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.principles-grid p:last-child { color: var(--muted); line-height: 1.7; }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 38px; padding: 40px; border: 1px solid var(--border-strong); border-radius: 16px; background: radial-gradient(ellipse at top right,rgba(0,212,255,.08),transparent 65%),var(--panel); }
.contact-actions { justify-content: flex-end; gap: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 26px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.site-footer > div { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer strong { color: var(--text); }
.site-footer p { margin: 0; }
@media (min-width: 1600px) { .hero-backdrop { background-size: 100% auto; } }
@media (max-width: 900px) {
  .hero { min-height: 650px; padding-top: 86px; }
  .hero-backdrop { height: 820px; background-position: 58% top; }
  .about-section, .contact-card { grid-template-columns: 1fr; gap: 36px; }
  .contact-actions { justify-content: flex-start; }
  .principles-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; min-height: 88px; padding-block: 20px; gap: 16px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 1.35rem; }
  .brand-logo { width: clamp(190px, 48vw, 230px); }
  .primary-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .primary-nav a { padding: 12px; }
  .nav-ready .nav-toggle { display: block; }
  .nav-ready .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--border-strong); border-radius: 12px; background: #0c141c; box-shadow: 0 16px 36px #0008; }
  .nav-ready .primary-nav.is-open { display: flex; }
  .hero { min-height: 660px; padding-block: 70px 150px; }
  .hero-backdrop { height: 850px; background-image: linear-gradient(to bottom,rgba(7,12,16,.55) 15%,rgba(7,12,16,.5) 60%,var(--bg)),url("assets/data-wave.webp"); background-position: 60% top; }
  .eyebrow { max-width: 32ch; margin-bottom: 28px; font-size: .65rem; line-height: 1.8; letter-spacing: .18em; }
  .hero h1 { font-size: clamp(2.1rem, 7.8vw, 3.4rem); }
  .hero-copy { font-size: 1.05rem; margin-top: 24px; }
  .hero-actions { gap: 12px; margin-top: 28px; }
  .section { padding-block: 64px; }
  .service-grid { grid-template-columns: 1fr; }
  .flow-row { gap: 8px; }
  .flow-chip { padding: 12px 6px; min-height: 76px; }
  .contact-card { padding: 28px 22px; }
  .principles-section { padding-bottom: 0; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-actions { max-width: 340px; }
  .flow-panel { padding: 18px; }
  .flow-connector { gap: 8px; }
  .service-card { padding: 24px; }
  .contact-card h2 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Contact form: shared by the homepage and the PHP fallback response. */
.contact-card-form { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; gap: clamp(28px,4vw,64px); }
.contact-form {
  min-width: 0;
  padding: 24px clamp(12px, 2vw, 24px);
  border-top: 1px solid var(--border-strong);
  border-radius: 0 0 12px 12px;
  background: radial-gradient(ellipse at top right,rgba(0,212,255,.08),transparent 65%),var(--panel);
}
.contact-form h3 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.025em; }
/* Every field stays in one vertical column at every viewport size. */
.form-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.form-group { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0; }
.form-label { display: block; margin: 0; color: var(--text); font-size: .9rem; font-weight: 600; line-height: 1.5; }
.optional { color: var(--muted); font-weight: 400; }
.form-control {
  display: block;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #51636f;
  border-radius: 10px;
  background-color: #090f15;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-control:hover { border-color: #8cb6c9; }
.form-control:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-control[aria-invalid="true"] { border-color: #ffb0ae; }
.form-control::placeholder { color: var(--muted); opacity: 1; }
select.form-control {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2300d4ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  cursor: pointer;
}
select.form-control option { background: #090f15; color: var(--text); }
textarea.form-control { height: 160px; min-height: 140px; resize: vertical; }
.contact-card .form-help, .form-help { display: block; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.contact-form > .form-help { margin-bottom: 24px; }
.field-error { display: block; color: #ffb0ae; font-size: .85rem; }
.field-error:empty { display: none; }
/* Keep the bot trap in the DOM and submitted data, but out of visual/AT navigation. */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.form-actions .button { cursor: pointer; font-family: inherit; }
.form-actions .button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-help a, .contact-response a:not(.button) { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .form-control { transition: none; } }
@media (forced-colors: active) { select.form-control { appearance: auto; background-image: none; } }
.form-status { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--accent); border-radius: 10px; background: #10262c; color: var(--text); line-height: 1.6; overflow-wrap: anywhere; }
.form-status[data-state="error"] { border-color: #ffb0ae; background: #2b1b20; }
.contact-response { min-height: 100svh; display: grid; align-content: center; max-width: 760px; padding-block: 64px; }
.contact-response .contact-card { display: block; }
.contact-response h1 { font-size: clamp(2rem,5vw,3rem); line-height: 1.1; letter-spacing: -.04em; }
@media (max-width: 1000px) { .contact-card-form { grid-template-columns: 1fr; } }

/* Legal reading pages share the site's header, footer, and color tokens. */
.policy-page { max-width: 760px; padding-block: clamp(40px, 7vw, 88px); }
.policy-heading { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border-strong); }
.policy-heading h1 { margin: 0 0 18px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -.045em; }
.policy-page p, .policy-page li, .policy-page address { color: var(--muted); line-height: 1.85; }
.policy-page p { margin: 0 0 18px; }
.policy-page .policy-date { margin: 0; font-size: .9rem; }
.policy-page section { margin-top: 40px; }
.policy-page h2 { margin: 0 0 16px; font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.3; letter-spacing: -.025em; }
.policy-page ul { margin: 0 0 20px; padding-left: 24px; }
.policy-page li + li { margin-top: 6px; }
.policy-page li::marker { color: var(--accent); }
.policy-page address { font-style: normal; }
.policy-page a, .footer-privacy { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.policy-page a:hover, .footer-privacy:hover { color: var(--text); }
.site-footer { flex-wrap: wrap; align-items: baseline; }
.footer-privacy { display: inline-flex; align-items: center; min-height: 44px; }

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Private AI Knowledge Assistant page only. */
.offer-page .primary-nav [aria-current="page"] { color: var(--accent); }
.offer-page .offer-hero { min-height: 740px; padding-block: 70px 88px; }
.offer-page .hero h1 { max-width: 930px; }
.offer-page .hero-copy { max-width: 730px; font-size: 1.1rem; line-height: 1.8; }
.offer-page .offer-positioning { max-width: 740px; margin: 28px 0 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; }
.offer-page .offer-pilot-note { margin-top: 20px; color: var(--muted); }
.offer-page .offer-pilot-note strong { color: var(--text); }
.offer-page .offer-divider { border-top: 1px solid var(--border); }
.offer-page .offer-inclusions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; padding: 0; margin: 0; list-style: none; }
.offer-page .offer-inclusions li { padding: 18px 0 18px 24px; border-bottom: 1px solid var(--border); position: relative; }
.offer-page .offer-inclusions li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.offer-page .offer-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.offer-page .offer-steps li { padding-top: 24px; border-top: 2px solid var(--accent); }
.offer-page .offer-steps h3 { font-size: 1.35rem; margin: 18px 0 12px; }
.offer-page .offer-steps p { margin: 0; color: var(--muted); line-height: 1.8; }
.offer-page .offer-card h3 { margin-top: 0; }
.offer-page .offer-pricing { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.offer-page .offer-pricing article { display: flex; flex-direction: column; }
.offer-page .offer-pricing .button { margin-top: auto; }
.offer-page .offer-pricing p { margin: 0 0 28px; }
.offer-page .offer-pricing .kicker { margin-bottom: 18px; font-size: .65rem; }
.offer-page .offer-pricing .offer-price { color: var(--text); font-size: clamp(2rem,3vw,2.8rem); line-height: 1.2; letter-spacing: -.03em; }
.offer-page .offer-price span { display: block; margin: 10px 0; color: var(--muted); font-size: .85rem; letter-spacing: 0; }
.offer-page .offer-pilot { border-color: var(--accent); }
.offer-page .offer-addons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 36px; padding-left: 20px; margin: 0; }
.offer-page .offer-addons li { padding-left: 4px; line-height: 1.65; }
.offer-page .offer-addons li::marker { color: var(--accent); }
.offer-page .offer-addons span { color: var(--muted); }
@media (max-width: 1000px) {
  .offer-page .offer-inclusions, .offer-page .offer-steps, .offer-page .offer-addons { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-page .offer-pricing { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .offer-page .offer-hero { min-height: auto; padding-block: 48px 64px; }
  .offer-page .hero-copy { font-size: 1rem; }
  .offer-page .offer-inclusions, .offer-page .offer-steps, .offer-page .offer-addons { grid-template-columns: 1fr; }
}
.offer-page .hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,15,23,.75),rgba(11,15,23,.4) 65%,transparent); }
