:root {
  --bg: #0b0d14;
  --bg-alt: #10131c;
  --surface: #151925;
  --surface-2: #1b2030;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf2;
  --muted: #9aa1b5;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --ok: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.9); }
.btn-ghost { border-color: var(--border); background: rgba(255,255,255,0.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.btn-light { background: #fff; color: #111827; }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); }

.gradient-text {
  background: linear-gradient(90deg, var(--primary-2), var(--primary) 50%, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--border); background: rgba(11, 13, 20, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.logo-text { font-weight: 500; letter-spacing: -0.01em; }
.logo-text strong { font-weight: 800; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.logo-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-menu a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; 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; padding: 96px 0 120px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(500px 400px at 85% 30%, rgba(34, 211, 238, 0.18), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.9rem; }
.hero-badges li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 700; }

.hero-visual { position: relative; }
.terminal {
  background: linear-gradient(180deg, #161a27, #10131c);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(99,102,241,0.15);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a3f51; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.terminal pre { margin: 0; padding: 24px; font-family: var(--mono); font-size: 0.88rem; line-height: 1.9; overflow-x: auto; color: var(--text); }
.c-muted { color: #6b7289; }
.c-ok { color: var(--ok); }
.c-accent { color: var(--primary-2); }
.cursor { animation: blink 1s steps(1) infinite; color: var(--primary-2); }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(27, 32, 48, 0.85); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.92rem; }
.float-card small { color: var(--muted); font-size: 0.8rem; }
.fc-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(99,102,241,0.2); font-size: 1.1rem; }
.fc-1 { top: -28px; right: -16px; }
.fc-2 { bottom: -34px; left: -24px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head p { font-size: 1.08rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.45); box-shadow: var(--shadow); }
.service-card.featured {
  background: linear-gradient(180deg, rgba(99,102,241,0.14), var(--surface) 60%);
  border-color: rgba(99,102,241,0.4);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(34,211,238,0.18));
  border: 1px solid rgba(99,102,241,0.35);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(52,211,153,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process li { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.process li:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -24px; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.step { display: inline-block; font-family: var(--mono); font-size: 0.85rem; color: var(--primary-2); padding: 4px 10px; border-radius: 999px; background: rgba(34,211,238,0.1); margin-bottom: 20px; }
.process p { margin: 0; font-size: 0.95rem; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.why-copy p { font-size: 1.08rem; margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-item { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.why-item h3 { display: flex; align-items: center; gap: 10px; }
.why-item h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.why-item p { margin: 0; font-size: 0.95rem; }

/* Tech */
.tech { padding: 64px 0; }
.tech-label { text-align: center; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; margin-bottom: 28px; }
.tech-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-list li {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 500; font-size: 0.92rem; color: var(--muted); transition: color .2s, border-color .2s;
}
.tech-list li:hover { color: var(--text); border-color: rgba(99,102,241,0.5); }

/* About */
.about-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
}
.about-map { position: relative; aspect-ratio: 1; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--border); display: grid; place-items: center; }
.about-map svg { width: 80%; }
.about-map .ring { fill: none; stroke: rgba(99,102,241,0.35); stroke-width: 1; stroke-dasharray: 3 5; }
.about-map .pin { fill: var(--primary-2); filter: drop-shadow(0 0 10px var(--primary-2)); animation: pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 50% { transform: scale(1.4); } }
.coords { position: absolute; bottom: 16px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 112px; }
.cta-inner {
  text-align: center; padding: 72px 32px; border-radius: 28px;
  background:
    radial-gradient(400px 200px at 15% 0%, rgba(34,211,238,0.35), transparent 70%),
    linear-gradient(135deg, #4f46e5, #7c3aed);
}
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 28px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info > p { font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-list a, .contact-list span { font-weight: 500; min-height: 1.5em; display: inline-block; }
.ci-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa1b5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #5d6479; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.2); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; min-height: 0; }
.error:empty { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 4px 0 6px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.consent a { color: var(--primary-2); text-decoration: underline; }
.consent-error { display: block; margin-bottom: 18px; }
.contact-form .btn-block { margin-top: 14px; }
.form-success {
  margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35); color: var(--ok);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 0.92rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 6px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

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

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .why, .contact { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li::after { display: none; }
  .about-card { grid-template-columns: 1fr; padding: 40px; }
  .about-map { max-width: 280px; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 24px;
    background: rgba(11, 13, 20, 0.97); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-menu .btn { margin-top: 16px; }

  .hero { padding: 64px 0 96px; }
  .fc-1 { right: 8px; top: -32px; }
  .fc-2 { left: 8px; }
  .terminal pre { font-size: 0.78rem; padding: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .section { padding: 80px 0; }
  .services-grid, .process, .why-grid, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .contact-form { padding: 28px 20px; }
  .about-card { padding: 28px 20px; }
  .cta-inner { padding: 56px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
