:root {
  --navy: #0B1530;
  --navy-2: #111D3E;
  --navy-3: #18264F;
  --teal: #14C8B4;
  --indigo: #5B6CFF;
  --grad: linear-gradient(135deg, var(--teal), var(--indigo));
  --surface: #F5F7FB;
  --white: #FFFFFF;
  --text: #1E2A44;
  --muted: #5A6785;
  --line: #E2E7F0;
  --danger: #E5484D;
  --success: #12A594;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 21, 48, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 24px rgba(91, 108, 255, .35); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(91, 108, 255, .45); }
.btn-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled, .site-header.nav-open {
  background: rgba(11, 21, 48, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--white); }
.brand-name span { font-weight: 500; opacity: .85; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.08); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; top: 72px; left: 0; right: 0;
  display: none; flex-direction: column; gap: .25rem;
  padding: .75rem 1.25rem 1.5rem;
  background: var(--navy);
  box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
}
.nav-open .site-nav { display: flex; }
.site-nav a {
  color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500;
  padding: .75rem .5rem; border-radius: 10px;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.site-nav .nav-cta { margin-top: .5rem; text-align: center; background: var(--grad); color: var(--white); }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: .5rem;
    padding: 0; background: none;
  }
  .site-nav a { padding: .5rem .9rem; }
  .site-nav .nav-cta { margin: 0 0 0 .5rem; padding: .55rem 1.2rem; border-radius: 999px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: rgba(255,255,255,.82);
  padding: calc(72px + clamp(4rem, 10vw, 8rem)) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; margin-bottom: 2rem; }
.hero-inner { position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(91,108,255,.45), transparent 70%),
    radial-gradient(500px 380px at 70% 85%, rgba(20,200,180,.28), transparent 70%),
    radial-gradient(400px 300px at 10% 10%, rgba(91,108,255,.18), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.about-grid { display: grid; gap: 1.5rem; }
.about-grid p { color: var(--muted); font-size: 1.08rem; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
}

/* Cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,21,48,.12); border-color: rgba(91,108,255,.35); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem;
  border-radius: 14px; background: var(--grad); box-shadow: 0 8px 20px rgba(20,200,180,.25);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Approach */
.approach { display: grid; gap: 2rem; }
@media (min-width: 720px) { .approach { grid-template-columns: repeat(3, 1fr); } }
.approach-item { border-top: 2px solid var(--line); padding-top: 1.5rem; }
.approach-item p { color: var(--muted); margin: 0; }
.approach-num {
  display: inline-block; font-weight: 800; font-size: .95rem; margin-bottom: .75rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.stats {
  list-style: none; margin: 3.5rem 0 0; padding: 1.75rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 2rem 2.5rem; } }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.4rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Contact */
.section-dark { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(91,108,255,.25), transparent);
  pointer-events: none;
}
.section-dark h2 { color: var(--white); }
.contact-grid { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; } }
.contact-intro p { font-size: 1.08rem; max-width: 46ch; }
.contact-card {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: .2rem;
}
.contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); font-weight: 600; }
.contact-card a { color: var(--teal); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-card a:hover { text-decoration: underline; }

.contact-form {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem);
  backdrop-filter: blur(10px);
}
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: .6rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: .4rem; }
.optional { font-weight: 400; color: rgba(255,255,255,.5); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: .8rem 1rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(20,200,180,.25);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(229,72,77,.2); }
.field-error { min-height: 1.3em; margin: .3rem 0 0; font-size: .85rem; color: #FF8A8E; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: .5rem; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; font-weight: 500; }
.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: #FF8A8E; }

/* Footer */
.site-footer { background: #070E22; color: rgba(255,255,255,.6); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--white); }
.copyright { margin: 0; font-size: .9rem; width: 100%; }
@media (min-width: 1024px) { .copyright { width: auto; } }

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

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