@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #0c1222;
  --ink-soft: #151d32;
  --slate: #2a3550;
  --muted: #5c6b88;
  --line: #e2e8f4;
  --bg: #f7f9fc;
  --white: #ffffff;
  --accent: #1e4fd6;
  --accent-light: #3b6ef0;
  --accent-glow: rgba(30, 79, 214, 0.25);
  --gold: #b8922e;
  --quote-bg: #eef3fc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
.hero__title,
.section__title,
.page-hero__title,
.card__title,
.footer__formula,
.btn {
  font-family: 'Manrope', system-ui, sans-serif;
}
.cursor-dot,
.cursor-ring {
  display: none !important;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(12,18,34,0.08); }
.header__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  gap: 2px;
  margin-left: -8px;
  line-height: 1;
}
.logo__mark {
  display: block;
  height: 1.2em;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0);
}
.logo__word {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1;
  transform: translateY(0.02em);
}
@media (max-width: 640px) {
  .logo { gap: 2px; }
  .logo__word {
    font-size: 1.125rem;
    letter-spacing: 0.025em;
  }
}
.nav { display: none; gap: 28px; }
@media (min-width: 1100px) { .nav { display: flex; } }
.nav a {
  text-decoration: none; color: var(--slate); font-size: 0.875rem; font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; border: none; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.btn--primary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 26px;
}
.btn--primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); padding: 12px 26px;
}
.btn--outline:hover {
  background: var(--ink); color: #fff;
  transform: translateY(-2px);
}
.btn--outline-light {
  border-color: rgba(255,255,255,0.5); color: #fff;
}
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.header__cta { display: none; }
@media (min-width: 1100px) { .header__cta { display: inline-flex; } }
.menu-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 1100px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}
.drawer.open { pointer-events: auto; }
.drawer__overlay {
  position: absolute; inset: 0; background: rgba(12,18,34,0.5);
  opacity: 0; transition: opacity 0.35s;
}
.drawer.open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; width: min(320px, 90vw); height: 100%;
  background: #fff; padding: 100px 32px 32px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__nav a[data-nav] {
  display: block; padding: 12px 0; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer__nav a[data-nav]:hover { color: var(--accent); }
.drawer__panel > .drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 4px;
  padding: 14px 20px;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.drawer__panel > .drawer__cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh; padding: 120px 0 80px;
  background: var(--ink);
  color: #fff; position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(12, 18, 34, 0.92) 12%, rgba(12, 18, 34, 0.8) 55%, rgba(12, 18, 34, 0.9) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30, 79, 214, 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(184, 146, 46, 0.08), transparent),
    linear-gradient(180deg, #0c1222 0%, #151d32 100%);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 22%, rgba(58, 110, 240, 0.28), transparent 45%),
    radial-gradient(circle at 28% 80%, rgba(184, 146, 46, 0.14), transparent 45%);
  animation: bg-drift 24s ease-in-out infinite alternate;
}
.hero canvas { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .container { position: relative; z-index: 2; }
.hero__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 12px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 500;
  color: rgba(255,255,255,0.75); margin-bottom: 8px;
}
.hero__chain {
  font-size: 0.9rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 32px;
}
.hero__text { max-width: 720px; color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 20px; }
.hero__formula {
  margin: 40px 0 32px; padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
}
.hero__formula-main {
  font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; margin-bottom: 8px;
}
.hero__formula-sub { color: rgba(255,255,255,0.55); font-size: 0.95rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--ink); color: #fff; }
.section__eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section--dark .section__eyebrow { color: rgba(255,255,255,0.5); }
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px;
}
.section__lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.section--dark .section__lead { color: rgba(255,255,255,0.65); }

.quote-block {
  padding: 24px 28px; margin: 32px 0;
  background: var(--quote-bg); border-left: 4px solid var(--accent);
  font-weight: 600; font-size: 1.1rem; color: var(--ink-soft);
}
.section--dark .quote-block {
  background: rgba(255,255,255,0.06); border-left-color: var(--gold);
  color: #fff;
}

/* Cards grid */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); padding: 32px;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
  transform-style: preserve-3d;
}
.card:hover {
  border-color: rgba(30, 79, 214, 0.3);
  box-shadow: 0 24px 50px rgba(12, 18, 34, 0.1);
  transform: translateY(-6px);
}
.card--dark {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: #fff;
}
.card--dark:hover { border-color: rgba(255,255,255,0.25); }
.card__num {
  font-size: 0.75rem; font-weight: 800; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.card__text { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.card--dark .card__text { color: rgba(255,255,255,0.6); }
.card ul { margin-top: 12px; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.card ul li { margin-bottom: 6px; }

/* Problem / solution — plain stack */
.solution-stack {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.solution-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.solution-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  font-family: 'Manrope', system-ui, sans-serif;
}
.solution-item__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 12px;
}
.solution-item__text:last-child { margin-bottom: 0; }
.solution-item__list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.solution-item__list li { margin-bottom: 6px; }
.solution-item--wide .solution-item__body {
  background: var(--bg);
  padding: 24px 28px;
}

/* Comparison table */
.compare {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line);
}
.compare th { background: var(--bg); font-weight: 700; }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { font-weight: 600; color: var(--accent); }

/* Pilots */
.pilot-card {
  border: 1px solid var(--line); padding: 28px; background: #fff;
  transition: transform 0.35s, box-shadow 0.35s;
}
.pilot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12,18,34,0.08);
}
.pilot-card__time {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  color: var(--accent); background: var(--quote-bg);
  padding: 6px 12px; margin-bottom: 12px;
}

/* Center incomplete last row for pilots section */
.pilot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.pilot-grid > .pilot-card {
  flex: 1 1 280px;
  max-width: calc((100% - 48px) / 3);
}
@media (max-width: 1024px) {
  .pilot-grid > .pilot-card {
    max-width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 640px) {
  .pilot-grid > .pilot-card {
    max-width: 100%;
  }
}

/* Clients logos */
.logos { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 24px 0; }
.logos span {
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
  padding: 8px 0; border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.logos span:hover { color: var(--accent); border-bottom-color: var(--accent); }
.section--dark .logos span {
  color: rgba(255,255,255,0.72);
}
.section--dark .logos span:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* Segments accordion style */
.segment { border-top: 1px solid var(--line); padding: 24px 0; }
.segment:first-child { border-top: none; }
.segment__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.segment__text { color: var(--muted); font-size: 0.95rem; }

/* Page hero (inner pages) */
.page-hero {
  padding: 140px 0 80px; background: var(--ink); color: #fff;
}
.page-hero__title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero__sub { margin-top: 16px; color: rgba(255,255,255,0.6); max-width: 640px; font-size: 1.1rem; }

/* Lists */
.check-list { list-style: none; margin: 24px 0; }
.check-list li {
  padding: 10px 0 10px 28px; position: relative;
  color: var(--slate); font-size: 0.95rem;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; background: var(--accent); border-radius: 1px;
}

/* Form */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 8px;
}
.form-input {
  width: 100%; border: none; border-bottom: 2px solid var(--line);
  padding: 14px 0; font-size: 1rem; font-family: inherit;
  background: transparent; transition: border-color 0.3s;
}
.form-input:focus { outline: none; border-bottom-color: var(--accent); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 64px 0 32px; font-size: 0.9rem;
}
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px; margin-bottom: 48px;
}
.footer__title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.65); text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer__formula {
  font-size: 1.25rem; font-weight: 800; color: #fff;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.footer__bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.8rem;
}

/* Animations */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

.stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.28s; }

.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
}

.example-box {
  background: var(--bg); border: 1px solid var(--line);
  padding: 28px; margin-top: 32px; border-radius: 2px;
}
.example-box__label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }

/* Subtle image background for ARHI section */
#arhi-block {
  position: relative;
  overflow: hidden;
}
#arhi-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 18, 34, 0.93) 0%, rgba(12, 18, 34, 0.86) 48%, rgba(12, 18, 34, 0.92) 100%),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=2200&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  animation: bg-drift 30s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
#arhi-block > .container {
  position: relative;
  z-index: 1;
}

@keyframes bg-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .fade-up { transition: none !important; animation: none !important; }
  .hero__bg::after,
  #arhi-block::before {
    animation: none !important;
  }
}
