:root {
  --ink: #07111f;
  --navy: #0b1d33;
  --blue: #2563eb;
  --sky: #38bdf8;
  --teal: #2dd4bf;
  --paper: #f5f8fc;
  --white: #ffffff;
  --muted: #5f7188;
  --line: #dbe5f0;
  --shadow: 0 24px 70px rgba(7, 17, 31, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--paper); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #0b7898;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(2.75rem, 6vw, 5.25rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin-bottom: 12px; font-size: 1.18rem; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.section-head { max-width: 760px; margin-bottom: 50px; }

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 0 14px 30px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 18px 38px rgba(37, 99, 235, .32); }
.btn-secondary { color: var(--navy); border-color: var(--line); background: rgba(255, 255, 255, .8); }
.btn-secondary:hover { border-color: #a7bad0; background: var(--white); }
.btn-white { color: var(--ink); background: var(--white); }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(7, 17, 31, .78);
  backdrop-filter: blur(18px);
}
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); font-family: Manrope, sans-serif; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--ink); background: linear-gradient(135deg, var(--teal), var(--sky)); font-size: .82rem; letter-spacing: -.08em; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; color: #bdd0e4; font-size: .92rem; font-weight: 600; }
.nav-links a:hover { color: var(--white); }
.nav .btn { min-height: 44px; padding-inline: 17px; border-color: rgba(255, 255, 255, .16); color: var(--white); background: rgba(255, 255, 255, .06); }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; color: white; background: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  padding: 168px 0 88px;
  color: var(--white);
  background: var(--ink);
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .19;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero::after { position: absolute; content: ""; width: 600px; height: 600px; right: -250px; top: -220px; border-radius: 50%; background: rgba(56, 189, 248, .16); filter: blur(90px); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 46px; }
.hero .kicker { color: #84e8dc; }
.hero h1 span { color: var(--sky); }
.hero .lead { color: #b9c9da; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .055); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 34px 0 0; padding: 0; color: #97adc3; font-size: .88rem; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .1); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; border: 1px solid rgba(255, 255, 255, .12); border-radius: 28px; box-shadow: 0 35px 90px rgba(0, 0, 0, .46); }
.hero-visual::before { position: absolute; z-index: -1; inset: 15% -12% -15% 15%; content: ""; background: rgba(37, 99, 235, .32); filter: blur(70px); }
.visual-label { position: absolute; left: -26px; bottom: 26px; width: 220px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(8, 22, 39, .84); box-shadow: 0 18px 40px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.visual-label small { display: block; margin-bottom: 8px; color: #88a1ba; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.visual-label strong { display: flex; align-items: center; gap: 9px; font-family: Manrope, sans-serif; font-size: .95rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(45, 212, 191, .12); }

.capability-strip { position: relative; z-index: 4; margin-top: -44px; }
.capability-inner { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.capability { padding: 25px 26px; border-right: 1px solid var(--line); }
.capability:last-child { border: 0; }
.capability strong { display: block; margin-bottom: 3px; font-family: Manrope, sans-serif; font-size: .95rem; }
.capability span { color: var(--muted); font-size: .83rem; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; overflow: hidden; min-height: 310px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #b6c9dc; box-shadow: var(--shadow); }
.service-card.featured { color: var(--white); border-color: transparent; background: var(--navy); }
.service-card.featured::after { position: absolute; content: ""; width: 240px; height: 240px; right: -110px; bottom: -130px; border-radius: 50%; background: rgba(45, 212, 191, .2); filter: blur(30px); }
.icon-box { display: grid; width: 48px; height: 48px; margin-bottom: 56px; place-items: center; border-radius: 13px; color: var(--blue); background: #eaf2ff; }
.featured .icon-box { color: var(--teal); background: rgba(255,255,255,.09); }
.service-card h3 { font-size: 1.4rem; }
.service-card p { max-width: 490px; margin-bottom: 22px; color: var(--muted); }
.featured p { color: #afc2d6; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; }
.featured .text-link { color: #77e7da; }

.problem-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: start; gap: 72px; }
.sticky-copy { position: sticky; top: 120px; }
.problem-list { display: grid; gap: 12px; }
.problem-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.problem-num { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: #086f87; background: #def9f5; font-family: Manrope, sans-serif; font-weight: 800; }
.problem-item h3 { margin-bottom: 6px; font-size: 1.04rem; }
.problem-item p { margin: 0; color: var(--muted); font-size: .93rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.process-card { position: relative; padding: 28px; border-top: 2px solid var(--line); counter-increment: steps; }
.process-card::before { display: grid; width: 36px; height: 36px; margin-bottom: 42px; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); content: "0" counter(steps); font-size: .78rem; font-weight: 800; }
.process-card:not(:last-child)::after { position: absolute; width: calc(100% - 64px); height: 1px; left: 54px; top: -2px; content: ""; background: linear-gradient(90deg, var(--sky), transparent); }
.process-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.proof { color: var(--white); background: var(--ink); }
.proof-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.proof .kicker { color: #79e6d9; }
.proof .lead { color: #afc2d6; }
.architecture { padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.045); }
.architecture-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.architecture-head strong { font-family: Manrope, sans-serif; font-size: .9rem; }
.architecture-head span { color: #7fe7db; font-size: .75rem; font-weight: 700; }
.flow-grid { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 10px; }
.flow-col { display: grid; gap: 10px; }
.flow-node { padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; color: #c2d1e0; background: rgba(255,255,255,.045); font-size: .82rem; }
.flow-node strong { display: block; margin-bottom: 2px; color: var(--white); font-size: .87rem; }
.flow-core { display: grid; min-height: 154px; place-items: center; border: 1px solid rgba(56,189,248,.35); border-radius: 15px; color: var(--sky); background: rgba(37,99,235,.13); font-family: Manrope, sans-serif; font-size: .78rem; font-weight: 800; text-align: center; writing-mode: vertical-rl; transform: rotate(180deg); }

.values-grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 18px; }
.values-intro { padding-right: 36px; }
.value-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; }
.value-card span { display: block; margin-bottom: 36px; color: var(--blue); font-family: Manrope, sans-serif; font-size: .8rem; font-weight: 800; }
.value-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border: 0; color: var(--ink); background: transparent; font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer; }
.faq-icon { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--blue); transition: .2s ease; }
.faq-item.open .faq-icon { color: var(--white); background: var(--blue); transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 720px; margin: 0; padding: 0 0 24px; color: var(--muted); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.contact { padding: 104px 0; background: var(--paper); }
.contact-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; padding: 56px; border-radius: 28px; color: var(--white); background: var(--navy); }
.contact-panel::after { position: absolute; content: ""; width: 430px; height: 430px; left: -250px; bottom: -300px; border-radius: 50%; background: rgba(45,212,191,.22); filter: blur(60px); }
.contact-copy, .contact-form { position: relative; z-index: 2; }
.contact-copy .kicker { color: #7be8dc; }
.contact-copy p { color: #afc2d6; }
.contact-note { margin-top: 34px; color: #89a2bb !important; font-size: .84rem; }
.contact-form { display: grid; gap: 14px; padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.055); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: #a9bfd4; font-size: .78rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: none; color: var(--white); background: rgba(5,15,27,.6); }
.field input, .field select { min-height: 48px; padding: 0 14px; }
.field textarea { min-height: 112px; padding: 13px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #fb7185; box-shadow: 0 0 0 3px rgba(251,113,133,.14); }
.field select option { color: var(--ink); }
.contact-form .btn { width: 100%; margin-top: 3px; border: 0; }
.form-messages { display: grid; gap: 8px; }
.form-message { margin: 0; padding: 11px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #dbeafe; background: rgba(37,99,235,.18); font-size: .85rem; }
.form-message.success { color: #b8fff5; background: rgba(45,212,191,.14); }
.form-message.error, .form-message.danger { color: #fecaca; background: rgba(239,68,68,.13); }

footer { padding: 34px 0; color: #8da1b6; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-inner p { margin: 0; font-size: .82rem; }
.footer-links { display: flex; gap: 22px; font-size: .82rem; }
.footer-links a:hover { color: var(--white); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .problem-layout, .proof-layout, .contact-panel { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-content { max-width: 760px; }
  .hero-visual { max-width: 760px; }
  .visual-label { left: 18px; }
  .capability-inner, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .capability:nth-child(2) { border-right: 0; }
  .capability:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sticky-copy { position: static; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .values-intro { grid-column: 1 / -1; padding: 0; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav > .btn { display: none; }
  .menu-btn { display: grid; }
  .nav-links { position: fixed; inset: 76px 0 auto; display: grid; gap: 4px; padding: 18px 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(7,17,31,.98); transform: translateY(-125%); transition: transform .25s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 6px; font-size: 1rem; }
  .hero { padding: 132px 0 78px; }
  .hero-grid { gap: 44px; }
  .visual-label { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 12px; }
  .capability-strip { margin-top: -28px; }
  .capability-inner, .services-grid, .process-grid, .values-grid { grid-template-columns: 1fr; }
  .capability { border-right: 0; border-bottom: 1px solid var(--line); }
  .capability:nth-child(3) { border-bottom: 1px solid var(--line); }
  .service-card { min-height: 285px; padding: 28px; }
  .icon-box { margin-bottom: 44px; }
  .problem-layout, .proof-layout, .contact-panel { gap: 42px; }
  .process-card:not(:last-child)::after { display: none; }
  .contact { padding: 76px 0; }
  .contact-panel { padding: 30px 22px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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