/* =========================================================
   CognitionIQ — single-page site
   ========================================================= */

:root {
  --navy-900: #0f1426;
  --navy-800: #151b30;
  --navy-700: #1f2a4a;
  --navy-600: #2e3e66;
  --red: #e23b47;
  --red-dark: #c42a36;
  --blue: #2a63b8;
  --blue-light: #5b8ce0;

  --ink: #141a2e;
  --ink-soft: #4a5370;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 20, 38, .08);
  --shadow-lg: 0 24px 60px rgba(15, 20, 38, .18);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: inherit;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff8a92;
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--red); }

.body-lg { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(226, 59, 71, .3); }
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(15, 20, 38, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(15, 20, 38, .95); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: calc(var(--header-h) + 80px) 0 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(226, 59, 71, .45), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(42, 99, 184, .35), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 80px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -.02em;
  margin-bottom: .4em;
}
.hero h1 strong { display: block; font-weight: 700; }

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, .78);
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.eye-graphic { display: block; width: 100%; height: auto; }
.eye-graphic .ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.eye-graphic .ring-2 { stroke-dasharray: 4 8; animation: spin 60s linear infinite; transform-origin: 200px 200px; }
.hero-mark {
  position: absolute;
  inset: 22.5%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-mark img { width: 70%; height: auto; }
.eye-graphic .gaze { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 6; opacity: .9; }
.eye-graphic .gaze-dot { fill: #fff; }
.eye-graphic .gaze-dot.accent { fill: var(--red); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Key facts strip */
.stats {
  list-style: none;
  margin: 0;
  padding: 32px 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats li { padding: 0 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong {
  display: block;
  font: 600 1.4rem/1.2 var(--font-head);
  color: #fff;
}
.stats span { font-size: .9rem; color: rgba(255, 255, 255, .62); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
#technology h2 { color: var(--blue); }

/* Features */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature h3 { margin-bottom: .2em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.feature-icon,
.contact-icon,
.step-icon,
.app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.feature-icon svg,
.contact-icon svg,
.step-icon svg,
.app-icon svg,
.values svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Applications */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.app-card {
  flex: 1 1 180px;
  max-width: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 18px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(42, 99, 184, .35); }
.app-card h3 { margin: 0; font-size: 1.05rem; }
.app-icon { width: 56px; height: 56px; border-radius: 50%; }
.app-icon svg { width: 26px; height: 26px; }

/* Mission statement */
.mission {
  position: relative;
  padding: 96px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(226, 59, 71, .55), transparent 55%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-600) 100%);
}
.mission-text {
  max-width: 900px;
  margin: 0 auto;
  font: 300 clamp(1.4rem, 3vw, 2.15rem)/1.45 var(--font-head);
  color: rgba(255, 255, 255, .88);
}
.mission-text strong { font-weight: 600; color: #fff; }
.mission-text::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 auto 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue-light));
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: #fff;
  padding: 32px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.step-num {
  font: 700 2.25rem/1 var(--font-head);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(42, 99, 184, .5);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Process values */
.values {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}
.values p { margin: 0; font: 400 1.3rem/1.2 var(--font-head); color: var(--ink-soft); }
.values ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.values li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font: 600 1.05rem/1 var(--font-head);
}
.values svg { width: 18px; height: 18px; stroke: #ff8a92; }

/* Story */
.story {
  color: #fff;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(226, 59, 71, .4), transparent 55%),
    linear-gradient(160deg, var(--navy-600) 0%, var(--navy-800) 100%);
}
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.story-photo {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story .body-lg { color: rgba(255, 255, 255, .8); }
.story .btn { margin-top: .75rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 16px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
  transition: color .2s;
}
.contact-list a:hover { color: var(--blue); }
.contact-list li:first-child .contact-icon { background: linear-gradient(135deg, var(--red), #f06b74); }

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field label span { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42, 99, 184, .15);
}

.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.form-note.error { color: var(--red-dark); }
.form-note.success { color: #1a7f4b; font-weight: 500; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .65); padding: 36px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: 0; }
.footer-inner a:not(.brand) { text-decoration: none; }
.footer-inner a:not(.brand):hover { color: #fff; }
.site-footer .brand img { height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(15, 20, 38, .98);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links .btn { margin-top: 16px; }

  .hero-grid,
  .two-col,
  .story-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .hero { text-align: center; }
  .hero-grid { margin-bottom: 56px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual { max-width: 260px; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .story-photo { max-width: 640px; width: 100%; margin: 0 auto; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .steps { grid-template-columns: 1fr; }
  .mission { padding: 72px 0; }
  .app-card { flex-basis: 140px; padding: 26px 14px 22px; }
  .contact-form { padding: 26px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand img { height: 24px; }
  .hero-actions .btn { width: 100%; }
  .stats li { padding: 0 12px; }
  .stats strong { font-size: 1.15rem; }
  .stats span { font-size: .8rem; line-height: 1.4; display: block; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
