/* ===== Design tokens ===== */
:root {
  --brand: #34495e;          /* logo slate navy */
  --brand-dark: #2b3b4d;
  --brand-darker: #223142;
  --accent: #3d9bd6;         /* soft complementary blue */
  --ink: #1f2a37;
  --body: #48566a;
  --muted: #7a8798;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 55, .06);
  --shadow: 0 12px 30px rgba(31, 42, 55, .08);
  --shadow-lg: 0 24px 60px rgba(31, 42, 55, .14);
  --maxw: 1120px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-light { color: #bcd8ee; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-accent { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; font-size: 0.96rem; color: var(--body); transition: color .15s ease; }
.nav a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-dark); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 400px at 82% -10%, rgba(61, 155, 214, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); font-weight: 800; }
.hero .lead {
  font-size: 1.16rem;
  color: var(--body);
  margin-top: 22px;
  max-width: 34em;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 34px 0 0;
}
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
}

/* Code card visual */
.code-card {
  background: var(--brand-darker);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.code-dots { display: flex; gap: 8px; margin-bottom: 18px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.code-dots span:first-child { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-card pre { margin: 0; overflow-x: auto; }
.code-card code {
  font-family: 'SF Mono', 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
  font-size: 0.92rem;
  line-height: 1.9;
  color: #d5dde6;
  white-space: pre;
}
.c-key { color: #7cc4ff; }
.c-fn  { color: #74d0b0; }
.c-prop{ color: #9db4cc; }
.c-str { color: #f0b866; }
.c-com { color: #62748a; font-style: italic; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 14px; font-size: 1.1rem; color: var(--muted); }

/* ===== Grid / cards ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dae4; }
.card-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(52, 73, 94, 0.08);
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--body); font-size: 0.98rem; }

/* ===== Steps ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
  padding: 44px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-logo { width: 220px; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; margin-bottom: 18px; }
.about-copy p { margin-bottom: 16px; font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50%;
  margin-top: 3px;
}

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(61,155,214,0.25), transparent 60%),
    linear-gradient(160deg, var(--brand), var(--brand-darker));
  text-align: center;
}
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.cta p { color: #cdd8e4; font-size: 1.12rem; margin-top: 14px; }
.cta-actions { margin-top: 30px; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: #eef3f8; }
.cta-note { font-size: 0.9rem !important; color: #9fb2c6 !important; margin-top: 18px; }

/* ===== Footer ===== */
.site-footer { background: var(--brand-darker); color: #b9c5d3; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-accent { color: #8fb8d6; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.94rem; color: #b9c5d3; transition: color .15s ease; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.88rem; color: #8695a6; width: 100%; padding-top: 20px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { order: -1; }
}
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 68px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
