:root {
  --bg: #0b0d12;
  --bg-elevated: #12161f;
  --bg-soft: #171c27;
  --text: #eef1f6;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --accent-3: #c4b5fd;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --max: 1100px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(96, 165, 250, 0.18), transparent 60%),
    radial-gradient(700px 420px at 90% 10%, rgba(110, 231, 183, 0.12), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(196, 181, 253, 0.1), transparent 50%);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}
.logo span { color: var(--accent); font-weight: 600; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.05); }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 5.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow.light { color: #b8f5d8; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 1rem; }
h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  max-width: 14ch;
}
h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; }
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
}
.lead-sm {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #062016;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; }
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.status-ok { color: var(--accent); }

.hero-card { perspective: 1000px; }
.card-window {
  background: linear-gradient(180deg, #1a2030, #121722);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
}
.dots {
  display: flex;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #374151;
  display: block;
}
.dots i:nth-child(1) { background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }
.card-body { padding: 1.4rem 1.3rem 1.5rem; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.stat-row b { color: var(--text); font-size: 1.05rem; }
.stat-row b.green { color: var(--accent); }
.bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.chip-row span {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt {
  background: rgba(255,255,255,0.02);
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 2.25rem; max-width: 36ch; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 183, 0.35);
}
.work-thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.work-thumb.t1 {
  background-image: linear-gradient(135deg, #1d4ed8, #6ee7b7 70%);
}
.work-thumb.t2 {
  background-image: linear-gradient(135deg, #7c3aed, #60a5fa 70%);
}
.work-thumb.t3 {
  background-image: linear-gradient(135deg, #0f766e, #c4b5fd 80%);
}
.work-body { padding: 1.2rem 1.25rem 1.4rem; }
.work-body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.work-body p {
  color: var(--muted);
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(110, 231, 183, 0.3);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.service {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.service .icon {
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.service h3 { font-size: 1.05rem; }
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact */
.section-cta {
  padding-bottom: 5rem;
}
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  background: linear-gradient(145deg, #13201b, #12161f 55%);
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.contact-form {
  display: grid;
  gap: 0.95rem;
}
.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.12);
}
.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.muted { color: var(--muted); }

/* Result page */
.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.result-card {
  width: min(480px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.result-card h1 {
  max-width: none;
  font-size: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-wrap,
  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .card-window { transform: none; }
  .hero { padding-top: 3.5rem; }
}
@media (max-width: 700px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 13, 18, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
  }
  .services-grid { grid-template-columns: 1fr; }
}
