/* QAISS — Quantum AI Security Solutions
   Brand palette derived from logo artwork */

:root {
  --navy-900: #00102F;
  --navy-800: #001848;
  --navy-700: #00246C;
  --navy-600: #003078;
  --blue-500: #0048E4;
  --blue-400: #0060F0;
  --blue-300: #3D8BFF;
  --slate-600: #303C48;
  --slate-400: #6C7884;
  --slate-200: #C9D1DA;
  --slate-100: #E8EDF2;
  --slate-50:  #F5F8FB;
  --tint:      #DFE8F4;
  --tint-line: #C6D4E7;
  --white: #FFFFFF;

  --maxw: 1180px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,16,47,.08), 0 1px 2px rgba(0,16,47,.04);
  --shadow-md: 0 4px 16px rgba(0,16,47,.10);
  --shadow-lg: 0 12px 40px rgba(0,16,47,.16);
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy-800);
  line-height: 1.18;
  letter-spacing: -0.021em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.35rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1.15em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 132px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 96px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy-800);
}
.nav-toggle svg { width: 26px; height: 26px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  color: var(--navy-800);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .005em;
  padding: 6px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav a:hover { color: var(--blue-500); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue-500); }

.site-nav .nav-cta a {
  background: var(--navy-800);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.site-nav .nav-cta a::after { display: none; }
.site-nav .nav-cta a:hover { background: var(--blue-500); transform: translateY(-1px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 4px 14px rgba(0,72,228,.28); }
.btn-primary:hover { background: var(--blue-400); box-shadow: 0 8px 22px rgba(0,72,228,.34); color:#fff; }

.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.34); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding: 92px 0; }
.section-sm { padding: 66px 0; }
.section-tint {
  background: var(--tint);
  border-top: 1px solid var(--tint-line);
  border-bottom: 1px solid var(--tint-line);
}
.section-line { border-top: 1px solid var(--slate-100); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate-400); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; line-height: 1.62; color: var(--slate-600); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(0,72,228,.42), transparent 62%),
    radial-gradient(760px 420px at 8% 110%, rgba(0,96,240,.22), transparent 60%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  color: #fff;
  padding: 116px 0 122px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* Neural network overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -6%;
  width: 74%;
  aspect-ratio: 1400 / 900;
  transform: translateY(-50%);
  background: url("neural.svg") center/contain no-repeat;
  opacity: .92;
  pointer-events: none;
  z-index: 1;
  animation: neuralDrift 26s ease-in-out infinite alternate;
}

@keyframes neuralDrift {
  from { transform: translateY(-50%) translateX(0) scale(1); }
  to   { transform: translateY(-52%) translateX(-14px) scale(1.03); }
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 58%;
  aspect-ratio: 1400 / 900;
  transform: translateY(-50%);
  background: url("neural.svg") center/contain no-repeat;
  opacity: .6;
  pointer-events: none;
  z-index: 1;
}

.hero .wrap { position: relative; z-index: 3; }
.hero-inner { max-width: 760px; }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent {
  background: linear-gradient(96deg, #6FA8FF, #2E86FF 55%, #9FC6FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255,255,255,.84);
  max-width: 660px;
  margin-bottom: 12px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #8FBEFF;
  margin-bottom: 30px;
}
.hero-tag::before {
  content: "";
  width: 34px; height: 2px;
  background: linear-gradient(90deg, var(--blue-400), transparent);
}

.hero .btn-row { margin-top: 36px; }

/* Page hero (interior pages) */
.page-hero {
  background:
    radial-gradient(820px 360px at 82% 0%, rgba(0,72,228,.34), transparent 62%),
    linear-gradient(155deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 84px 0 78px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content:"";
  position:absolute; inset:0; z-index:2;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 100%);
}
.page-hero .wrap { position: relative; z-index: 3; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 660px; margin-bottom: 0; }
.page-hero .eyebrow { color: #8FBEFF; }

/* ---------- Grid / Cards ---------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 34px 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--slate-200);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--slate-400); font-size: .97rem; margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--navy-800), var(--blue-500));
  margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 1.7; }

.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: .92rem; font-weight: 600;
  color: var(--blue-500);
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Capability columns */
.cap-col h3 {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--slate-100);
  font-size: 1.12rem;
}
.cap-col h3 .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative;
  padding: 8px 0 8px 27px;
  font-size: .97rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-100);
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 17px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
  transform: rotate(45deg);
}

/* Numbered process */
.steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 0 26px 0 0; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--slate-200);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .45em; }
.step p { font-size: .94rem; color: var(--slate-400); margin: 0; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px; right: 26px;
  width: calc(100% - 78px);
  height: 1px;
  background: linear-gradient(90deg, var(--slate-200), transparent);
}

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 11px; margin: 0; padding: 0; list-style: none; }
.pills li {
  padding: 10px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--navy-800);
  background: #fff;
  transition: all .2s var(--ease);
}
.pills li:hover { border-color: var(--blue-500); color: var(--blue-500); }

.pills-light li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); color: rgba(255,255,255,.94); }
.pills-light li:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }

/* Feature grid (checkable capability items) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--slate-200); border: 1px solid var(--slate-200); border-radius: 10px; overflow: hidden; }
.feature-grid div {
  background: #fff;
  padding: 22px 24px;
  font-size: .97rem;
  font-weight: 500;
  color: var(--navy-800);
  display: flex; align-items: center; gap: 12px;
  transition: background .2s var(--ease);
}
.feature-grid div:hover { background: var(--slate-50); }
.feature-grid div::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* Split content */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 68px; align-items: start; }

/* Stat / value rows */
.value-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--slate-100);
  align-items: baseline;
}
.value-row:last-child { border-bottom: 1px solid var(--slate-100); }
.value-row h3 { margin: 0; font-size: 1.09rem; }
.value-row p { margin: 0; color: var(--slate-400); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(760px 340px at 20% 0%, rgba(0,72,228,.36), transparent 62%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto .5em; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 620px; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 62px; align-items: start; }

.contact-list { list-style: none; margin: 0 0 30px; padding: 0; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}
.contact-list li:first-child { border-top: 1px solid var(--slate-100); }
.contact-list svg { width: 19px; height: 19px; stroke: var(--blue-500); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 3px; }
.contact-list .label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--slate-400); font-weight: 600; margin-bottom: 2px; }
.contact-list .val { color: var(--navy-800); font-weight: 500; }
.contact-list a.val:hover { color: var(--blue-500); }

.form-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: .97rem;
  color: var(--navy-800);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,72,228,.10);
}
.form-note { font-size: .84rem; color: var(--slate-400); margin: 16px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.62);
  padding: 66px 0 0;
  font-size: .93rem;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; padding-bottom: 46px; }
.site-footer img.flogo {
  height: 91px;
  width: auto;
  display: block;
  margin: 0 0 22px;
}
.site-footer p { color: rgba(255,255,255,.58); margin-bottom: 0; max-width: 340px; font-size: .93rem; }
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 18px;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer ul a, .site-footer .fcontact a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .18s var(--ease); }
.site-footer ul a:hover, .site-footer .fcontact a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .87rem;
  color: rgba(255,255,255,.44);
}

/* ---------- QR contact card ---------- */

.qr-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 22px;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 12px;
}
.qr-card img {
  width: 118px;
  height: 118px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--slate-100);
}
.qr-card h3 { font-size: 1.02rem; margin-bottom: .35em; }
.qr-card p { font-size: .92rem; color: var(--slate-400); margin: 0; }

@media (max-width: 480px) {
  .qr-card { flex-direction: column; text-align: center; gap: 16px; }
}

/* ---------- Approach flow figure ---------- */

.approach-figure { margin: 0; }
.approach-figure img { width: 100%; height: auto; }
.steps-fallback { display: none; }

@media (max-width: 860px) {
  .approach-figure { display: none; }
  .steps-fallback { display: grid; }
}

/* ---------- VMS demo figure ---------- */

.vms-stage { background: var(--navy-900); padding: 0 0 78px; }
.vms-stage .wrap { position: relative; }
.vms-figure {
  margin: 0;
  transform: translateY(-46px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  background: #050B14;
}
.vms-figure img { width: 100%; height: auto; }
.vms-caption {
  margin: 20px 0 0;
  text-align: center;
  font-size: .89rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
  .hero::before { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .step:not(:last-child)::after { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .hero::before { width: 100%; right: -18%; opacity: .5; }
  .page-hero::before { display: none; }
  .site-nav {
    position: absolute;
    top: 132px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 12px 0 20px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 28px; }
  .site-nav li { border-bottom: 1px solid var(--slate-100); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 15px 0; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 14px; }
  .site-nav .nav-cta a { text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .hero { padding: 78px 0 84px; }
  .page-hero { padding: 60px 0 56px; }
  .wrap { padding: 0 20px; }
  .grid-4, .feature-grid, .steps { grid-template-columns: 1fr; }
  .vms-figure { transform: translateY(-28px); }
  .vms-stage { padding-bottom: 48px; }
  .form-card { padding: 26px 22px; }
  .brand img { height: 62px; }
  .header-inner { height: 92px; }
  .site-nav { top: 92px; }
  .btn { width: 100%; }
}
