/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1326;
  --surface: #121a30;
  --surface-2: #161f3a;
  --border: #22304f;
  --text: #e7ecf7;
  --text-dim: #9fabc7;
  --text-mute: #6b7794;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --success: #22c55e;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.16), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.12), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--text-dim); }
.muted { color: var(--text-mute); }

/* ---------- Icon ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.6); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-outline { background: transparent; color: var(--accent-2); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent-2); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
}
.brand-name strong { color: var(--accent-2); font-weight: 800; }
.nav { display: flex; gap: 28px; margin-left: 24px; flex: 1; }
.nav a { color: var(--text-dim); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav a:hover, .nav a.active { color: var(--text); border-bottom-color: var(--accent-2); }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; color: var(--text); margin-left: 12px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; color: var(--accent-2); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 46px; line-height: 1.12; margin-bottom: 20px; }
.lede { font-size: 17px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 420px; }
.orbit-glow {
  position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  filter: blur(10px);
}
.orbit-card {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 128px; padding: 20px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  animation: float 6s ease-in-out infinite;
}
.orbit-card .icon { color: var(--accent-2); }
.card-1 { top: 6%; left: 8%; animation-delay: 0s; }
.card-2 { top: 10%; right: 4%; animation-delay: 1.2s; }
.card-3 { bottom: 14%; left: 2%; animation-delay: 2.1s; }
.card-4 { bottom: 4%; right: 14%; animation-delay: 0.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Stats ---------- */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-value { display: block; font-size: 32px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-mute); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 32px; }
.section-cta { text-align: center; margin-top: 36px; }
.page-hero { padding: 70px 0 20px; max-width: 760px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 38px; }
.page-hero .lede { margin: 0 auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.values-grid { grid-template-columns: repeat(4, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }
.portfolio-grid { grid-template-columns: repeat(2, 1fr); }

.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--accent-2); margin-bottom: 16px;
}
.service-card h3 { font-size: 18px; }
.service-card p { font-size: 14.5px; margin-bottom: 0; }
.service-card-lg { padding: 32px; }

.process-card { text-align: left; padding: 8px 0; border-top: 1px solid var(--border); padding-top: 20px; }
.process-step {
  display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent-2);
  background: var(--surface-2); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.process-card h3 { font-size: 17px; }
.process-card p { font-size: 14px; margin-bottom: 0; }

.portfolio-card { display: flex; gap: 20px; padding: 24px; }
.portfolio-thumb {
  flex: none; width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--accent-grad); display: flex; align-items: center; justify-content: center; color: #fff;
}
.portfolio-body h3 { font-size: 18px; }
.portfolio-body p { font-size: 14.5px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }

/* ---------- CTA band ---------- */
.cta-section { padding-top: 0; }
.cta-box {
  background: var(--accent-grad); border-radius: 24px; padding: 56px 40px; text-align: center;
  color: #fff;
}
.cta-box h2 { color: #fff; font-size: 30px; }
.cta-box p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 24px; }
.cta-box .btn-primary { background: #fff; color: var(--accent); box-shadow: none; }
.cta-box .btn-primary:hover { background: #f1f2ff; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 20px 0; font-size: 14.5px; }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.alert-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.4); color: #fca5a5; }

/* ---------- Contact ---------- */
.contact-grid { align-items: start; }
.contact-info h2 { font-size: 26px; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent-2); margin: 10px 0 24px; }
.contact-note { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.optional { color: var(--text-mute); font-weight: 400; }
.input, textarea.input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 14.5px; resize: vertical;
}
.input:focus, textarea.input:focus { outline: none; border-color: var(--accent); }
.field-error { color: var(--danger); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 0; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand p { max-width: 300px; font-size: 14px; margin-top: 12px; }
.footer-col h4 { font-size: 14px; color: var(--text); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; font-size: 13.5px; color: var(--text-mute); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 280px; order: -1; }
  .services-grid, .values-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 69px; left: 0; right: 0; background: var(--bg); flex-direction: column;
    padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; transform: translateY(-120%);
    transition: transform 0.2s ease; }
  .nav.open { transform: translateY(0); }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .two-col, .services-grid, .values-grid, .process-grid, .portfolio-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
}
