:root {
  --bg: #050714;
  --bg-2: #0a0e1f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6e9f5;
  --body: #a3aac0;
  --muted: #6b7390;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --magenta: #ec4899;
  --emerald: #4ade80;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(6,182,212,0.18) 50%, rgba(236,72,153,0.18) 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* AURORA BG */
.aurora-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; background: #8b5cf6; top: -10%; left: -8%; }
.orb-2 { width: 440px; height: 440px; background: #06b6d4; top: 30%; right: -10%; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #ec4899; bottom: -10%; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(5, 7, 20, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-text em { font-style: normal; font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.nav-mark {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.9rem;
  color: #fff;
}
.nav-links { display: flex; gap: 28px; list-style: none; font-size: 0.9rem; }
.nav-links a { color: var(--body); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 0.85rem; font-weight: 500;
  padding: 9px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* HERO */
.hero { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--body);
  margin-bottom: 28px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero-subtitle {
  display: block;
  font-size: 0.4em;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 14px;
  -webkit-text-fill-color: var(--muted);
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--body);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 80px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(139,92,246,0.35); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-full { width: 100%; justify-content: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.stat {
  background: rgba(10, 14, 31, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 26px 28px;
  display: flex; flex-direction: column;
}
.stat strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 600; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* LOGOS */
.logos { padding: 40px 0 80px; }
.logos p { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.logo-track { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.logo-track span { transition: color 0.2s; }
.logo-track span:hover { color: var(--text); }

/* SECTION HEAD */
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--cyan);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.section-head p { color: var(--body); font-size: 1.05rem; }

/* SERVICES */
.services { padding: 80px 0; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--body); font-size: 0.95rem; margin-bottom: 18px; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-card li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.service-card li::before { content: '→'; position: absolute; left: 0; color: var(--violet); }

/* PROCESS */
.process { padding: 100px 0; }
.process-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.process-list li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.process-list li:last-child { border-bottom: 1px solid var(--border); }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 1rem; font-weight: 500; color: var(--cyan); letter-spacing: 0.05em; }
.step-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step-body p { color: var(--body); max-width: 640px; }
.step-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); white-space: nowrap; padding-top: 6px; }

/* WORK */
.work { padding: 100px 0; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex; flex-direction: column;
  transition: all 0.3s var(--ease);
}
.case:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.case-head { display: flex; justify-content: space-between; margin-bottom: 24px; align-items: center; }
.case-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--magenta);
  padding: 4px 10px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  border-radius: 100px;
}
.case-year { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); }
.case h3 { font-size: 1.4rem; margin-bottom: 12px; }
.case > p { color: var(--body); font-size: 0.95rem; margin-bottom: 28px; flex: 1; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.case-metrics > div { background: var(--bg-2); padding: 14px 12px; display: flex; flex-direction: column; }
.case-metrics strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--text); }
.case-metrics span { font-size: 0.7rem; color: var(--muted); }

/* TEAM */
.team { padding: 100px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: left;
  transition: transform 0.3s;
}
.member:hover { transform: translateY(-3px); }
.avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.1rem;
  color: #fff;
  margin-bottom: 18px;
  background: var(--grad);
}
.avatar-2 { background: linear-gradient(135deg, #06b6d4, #8b5cf6); }
.avatar-3 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.avatar-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.member h4 { font-size: 1.1rem; margin-bottom: 4px; }
.member > span { display: block; font-size: 0.82rem; color: var(--cyan); margin-bottom: 12px; }
.member p { font-size: 0.88rem; color: var(--body); }

/* CONTACT */
.contact { padding: 100px 0; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-card::before {
  content: ''; position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 60%);
  pointer-events: none;
}
.contact-side { position: relative; }
.contact-side h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 18px; }
.contact-side p { color: var(--body); margin-bottom: 36px; }
.contact-meta { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-meta li { display: flex; flex-direction: column; gap: 4px; }
.contact-meta li span:first-child { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.status-ok { color: var(--emerald) !important; text-transform: none !important; letter-spacing: 0 !important; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(0,0,0,0.5);
}
.field textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); text-align: center; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-mark { margin-bottom: 16px; }
.footer-brand p { color: var(--body); font-size: 0.9rem; }
.footer h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer li { font-size: 0.9rem; color: var(--body); cursor: pointer; transition: color 0.2s; }
.footer li:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-list li { grid-template-columns: 60px 1fr; }
  .step-meta { grid-column: 1 / -1; padding-left: 92px; padding-top: 0; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
