:root {
  --bg: #0b1020;
  --bg-alt: #0f1530;
  --surface: #141c3a;
  --surface-2: #1a2547;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf6;
  --muted: #9aa5c4;
  --brand: #5b8cff;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1140px;
  --shadow: 0 20px 50px rgba(3, 8, 30, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(91, 140, 255, 0.45); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: #fff; }
.btn-block { width: 100%; }
.btn-nav {
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.btn-nav:hover { transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.75);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
}
.brand-mark { display: inline-flex; }
.brand-logo { height: 40px; width: auto; display: block; }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: 4px; }
.brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav a.btn-nav { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(91, 140, 255, 0.22), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(40% 40% at 60% 90%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  background: linear-gradient(120deg, #ffffff 30%, #b9c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Sora", sans-serif; font-size: 1.5rem; color: #fff; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.2), rgba(139, 92, 246, 0.2));
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

/* Capabilities */
.capabilities { display: grid; gap: 22px; }
.cap-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cap-row:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: var(--shadow);
}
.cap-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 160px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid var(--border);
}
.cap-icon {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cap-tag {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cap-body h3 { font-size: 1.35rem; }
.cap-body > p { color: var(--muted); margin: 0 0 16px; max-width: 640px; }
.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.cap-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 0.94rem;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.about-grid p { color: var(--muted); }
.about-grid .btn { margin-top: 12px; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
}
.about-list strong { color: var(--text); }

/* Why */
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-item {
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.why-num {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-item h3 { font-size: 1.1rem; margin-top: 10px; }
.why-item p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.process .step {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
}
.process h3 { font-size: 1.1rem; }
.process p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: grid; gap: 22px; }
.contact-item { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}
.contact-item p { margin: 6px 0 0; color: var(--text); }
.contact-item a:hover { color: var(--brand); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.2);
}
.field textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-note.success { color: #4ade80; }
.form-note.error { color: #f87171; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: 14px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-links h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-links a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

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

/* Responsive */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cap-row { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .cap-media { max-width: 96px; justify-self: start; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a.btn-nav { border: none; margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 480px) {
  .services-grid, .why-grid, .process, .cap-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
