/* ---- Tokens ---- */
:root {
  --bg: #0A1120;
  --bg-alt: #0E1729;
  --card: #121C33;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --accent: #5B8DEF;
  --accent-light: #7DD3FC;
  --line: rgba(255, 255, 255, 0.08);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-body);
  color: var(--text);
  margin: 0;
}

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---- Header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.primary-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: var(--text) !important;
  padding: 9px 18px;
  border-radius: 8px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #4879DB;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--card-border);
  background: rgba(91, 141, 239, 0.08);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 26px 0 36px;
}

/* ---- Buttons ---- */
.button {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
}

.button-primary {
  background: var(--accent);
  color: var(--text);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #4879DB;
}

/* ---- Service cards ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  width: 100%;
  text-align: left;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px 26px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-icon {
  color: var(--accent-light);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 141, 239, 0.1);
  border-radius: 10px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.card-hint {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
  margin-top: auto;
  padding-top: 4px;
}

/* ---- Detail sections ---- */
.detail {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.detail-alt {
  background: var(--bg-alt);
}

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.detail-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  margin: 0 0 10px;
}

.detail-head h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.detail-summary {
  font-size: 16px;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 42ch;
}

.detail-narrative {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
  margin: 18px 0 0;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: 0 0 20px 26px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.detail-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---- How it works ---- */
.how {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.how h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 48px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.steps li {
  display: flex;
  gap: 18px;
}

.step-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-light);
  flex-shrink: 0;
}

.steps h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* ---- Contact ---- */
.contact {
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
}

.contact h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact p {
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 0 28px;
}

.contact-details p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: 15px;
}

.contact-details span {
  color: var(--text-muted);
  font-size: 13px;
}

.contact-details a {
  text-decoration: none;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--accent-light);
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ---- Focus states ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: 1fr;
  }

  .detail-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: none;
    margin-top: 12px;
    text-align: center;
  }
}
