/* ===========================
   Reset + base
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #07070b;
  color: #e9eaf0;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:root {
  --bg: #07070b;
  --bg-2: #0d0e15;
  --bg-3: #14151f;
  --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: #e9eaf0;
  --text-dim: #a4a8b8;
  --text-mute: #6c7080;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.18);
}

/* ===========================
   Background mesh
   =========================== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  top: -200px; left: -100px;
  animation: float1 22s ease-in-out infinite;
}
.blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 30%; right: -200px;
  animation: float2 28s ease-in-out infinite;
}
.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px; left: 30%;
  opacity: 0.3;
  animation: float3 24s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, 60px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 80px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, -80px); }
}

/* ===========================
   Layout
   =========================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: rgba(255, 255, 255, 0.015); }
.section-contact { padding: 100px 0 120px; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 7, 11, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: var(--bg);
}
.logo-text { display: inline-flex; }
.logo-dot { color: var(--accent); margin: 0 2px; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links a {
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}
.btn-secondary {
  background: rgba(34, 158, 217, 0.12);
  color: #5cc8ff;
  border-color: rgba(34, 158, 217, 0.25);
}
.btn-secondary:hover {
  background: rgba(34, 158, 217, 0.18);
  border-color: rgba(34, 158, 217, 0.4);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 180px 0 100px;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #4ade80;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 900px;
}
.grad {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.logos-strip {
  text-align: center;
}
.logos-label {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 500;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}
.logos span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ===========================
   Section head
   =========================== */
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===========================
   Grid + Cards
   =========================== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.service h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0 12px;
  letter-spacing: -0.015em;
}
.service p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

.card-list {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  font-size: 13.5px;
  color: var(--text-mute);
  padding-left: 18px;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ===========================
   Cases
   =========================== */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.case:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.case-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-color: rgba(139, 92, 246, 0.25);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag-accent {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}
.case h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.case-feature h3 { font-size: 26px; }
.case p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.case-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}
.case-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-link:hover { gap: 8px; }
.case-link-muted {
  color: var(--text-mute);
  font-weight: 500;
}

/* ===========================
   Steps
   =========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: inline-block;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.step p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===========================
   About
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.about-lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 18px;
}
.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.about-list li {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.about-list strong {
  color: var(--text);
  font-weight: 600;
}

.achievements {
  position: sticky;
  top: 100px;
}
.achievements h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.achievements ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.achievements li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.4;
}
.ach-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

/* ===========================
   Contact
   =========================== */
.contact-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 28px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.15), transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-text p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-mute);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer a:hover { color: var(--text); }

/* ===========================
   Scroll reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .achievements { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav .btn { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .hero { padding: 130px 0 60px; }
  .grid-3 { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .case-feature { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .hero-stats { padding: 24px; }
  .contact-card { padding: 36px 24px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}
