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

:root {
  --bg:         #08090d;
  --surface:    #0f1117;
  --surface-2:  #161820;
  --border:     #1e2230;
  --accent:     #4f8ef7;
  --accent-dim: #2a4a8a;
  --green:      #34d058;
  --yellow:     #f0a500;
  --red:        #f05050;
  --text:       #e8ecf5;
  --text-2:     #8b92aa;
  --text-3:     #555d78;
  --mono:       'JetBrains Mono', monospace;
  --sans:       'Inter', system-ui, sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILS ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-large { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #6ba0ff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

/* ---- HERO ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-title span { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 20px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  max-width: 120px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- SECTIONS ---- */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }

.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.section-title span { color: var(--accent); }

.section-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ---- PROBLEM ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.problem-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--accent-dim); }
.problem-icon { font-size: 28px; margin-bottom: 16px; }
.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.problem-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.service-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.service-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 3px 10px;
  background: rgba(52, 208, 88, 0.1);
  border: 1px solid rgba(52, 208, 88, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- WHY ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

.why-lead {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-list li {
  display: flex;
  gap: 16px;
}
.why-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(52, 208, 88, 0.1);
  border: 1px solid rgba(52, 208, 88, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  margin-top: 2px;
}
.why-list strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.why-list p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---- TERMINAL ---- */
.terminal {
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.terminal-body {
  padding: 24px;
  line-height: 2;
}
.line { white-space: pre; }
.token-comment { color: var(--text-3); }
.token-keyword { color: var(--accent); }
.token-string  { color: #f0a500; }
.score-bad  { color: #f05050; font-weight: 600; }
.score-mid  { color: #f0a500; font-weight: 600; }
.score-good { color: var(--green); font-weight: 600; }

/* ---- CTA SECTION ---- */
.section-cta {
  background: linear-gradient(135deg, #0a0c15 0%, #0f1220 50%, #0a0c15 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-row input,
.form-row input.full {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-row input::placeholder { color: var(--text-3); }
.form-row input:focus { border-color: var(--accent); }
.form-row input.full { grid-column: 1 / -1; }
.form-row:has(.full) { grid-template-columns: 1fr; }

.contact-form .btn-primary { width: 100%; justify-content: center; }
.form-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 4px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-tagline { font-size: 14px; color: var(--text-3); }
.footer-copy { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---- FORM SUCCESS ---- */
.form-success {
  text-align: center;
  padding: 40px 24px;
  background: rgba(52, 208, 88, 0.05);
  border: 1px solid rgba(52, 208, 88, 0.2);
  border-radius: var(--radius);
}
.form-success h3 { font-size: 20px; color: var(--green); margin-bottom: 8px; }
.form-success p { color: var(--text-2); font-size: 14px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 72px 0 60px; }
  .hero-stats { gap: 24px; padding: 16px 24px; }
  .stat-divider { display: none; }
  .section { padding: 72px 0; }
}