:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-ink: #ffffff;
  --hero-bg: #0b1220;
  --hero-ink: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .07);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.main-nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: 600 .95rem/1 var(--font);
  padding: 13px 24px; border-radius: 10px;
  text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--hero-ink); border: 1px solid rgba(226, 232, 240, .35); }
.btn-ghost:hover { border-color: rgba(226, 232, 240, .7); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #060609;
  color: var(--hero-ink);
  padding: 110px 0 120px;
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: clamp(380px, 46vw, 920px); aspect-ratio: 1; border-radius: 50%;
  top: -42%; right: -6%;
  background: radial-gradient(circle at 68% 26%, #4f86f7 0%, #6a66f5 28%, #8250f0 52%, #7c3aed 74%, #6d2fd8 100%);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-36px, 28px); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -.02em;
  color: #f8fafc;
  max-width: 800px; margin: 0 auto 20px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #94a3b8; max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Services ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #eff6ff; color: var(--brand);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #cbd5e1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- About ---------- */
.about-text { max-width: 760px; }
.about-text p { color: var(--ink-soft); }
.about-text p + p { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-info address {
  font-style: normal; color: var(--ink-soft); font-size: .95rem;
  border-left: 3px solid var(--brand); padding-left: 16px;
}
.contact-info address strong { color: var(--ink); display: block; margin-bottom: 4px; }

.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 .95rem var(--font); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: #cbd5e1; }
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { display: none; color: #dc2626; font-size: .82rem; margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }
.form-note a { color: var(--brand); }

.form-success {
  display: none; text-align: center; padding: 48px 20px;
}
.form-success.visible { display: block; }
.form-success .tick {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: #dcfce7; color: #16a34a; display: grid; place-items: center;
}
.form-success h3 { font-size: 1.25rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-bg); color: #94a3b8;
  padding: 56px 0 40px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.site-footer .logo { color: #f8fafc; margin-bottom: 16px; }
.site-footer h4 {
  color: #e2e8f0; font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #e2e8f0; }
.footer-legal {
  border-top: 1px solid rgba(148, 163, 184, .15);
  padding-top: 24px; font-size: .82rem; line-height: 1.7;
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 72px 0 96px; max-width: 760px; }
.legal-page h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { padding-left: 22px; margin-top: 8px; }
.legal-page li + li { margin-top: 6px; }
.legal-page a { color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 88px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--bg); cursor: pointer; color: var(--ink);
  }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .main-nav .btn { margin-top: 8px; text-align: center; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
