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

:root {
  --bg: #06060a;
  --surface: #0e0e14;
  --card: #111118;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0f0ef;
  --muted: rgba(240, 240, 239, 0.48);
  --accent: #5b6cff;
  --accent2: #a259ff;
  --cyan: #61dafb;
  --red: #dd0031;
  --green: #2ecc71;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.nav-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-back:hover { color: var(--text); }

/* ── HERO BANNER ── */
.page-hero {
  padding: 140px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(91, 108, 255, 0.12), transparent 70%);
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0;
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  opacity: 0;
}

.page-title span { color: var(--accent); }

.page-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
}

/* ── CONTAINER ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* ── SERVICE ENTRY ── */
.service-entry {
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(24px);
}

.entry-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.entry-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entry-icon i { font-size: 28px; }
.entry-meta { flex: 1; }

.entry-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.entry-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.entry-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid;
}

/* ── STORY ── */
.story {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.chapter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  position: relative;
}

.chapter-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.chapter-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.chapter-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.chapter-body p { margin-bottom: 12px; }
.chapter-body p:last-child { margin-bottom: 0; }

/* step list */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(91, 108, 255, 0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* tech grid */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.tech-pill i { font-size: 14px; }

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: rgba(91, 108, 255, 0.05);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-top: 14px;
}

.service-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 80px;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 60px 40px 100px;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.cta-section h2 span { color: var(--accent); }

.cta-section p {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #6f7eff;
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav               { padding: 16px 20px; }
  .page-hero        { padding: 120px 20px 60px; }
  .container        { padding: 0 20px 80px; }
  .entry-header     { flex-direction: column; gap: 14px; }
  .chapter          { padding: 20px 18px; }
  .cta-section      { padding: 50px 20px 80px; }
}
