:root {
  --bg: #fbfbfd;
  --ink: #0b0b0f;
  --muted: #5f5f6b;
  --line: #e6e6ec;
  --violet: #5b2cf0;
  --navy: #0e1440;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
img { display: block; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(251, 251, 253, .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav nav a { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav nav a.pill { background: var(--ink); color: #fff; }
@media (max-width: 720px) { .nav nav a:not(.pill) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: transform .1s, opacity .2s; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.hero { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 9vw, 120px) clamp(16px, 4vw, 48px) 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; text-align: center; } .cta { justify-content: center; } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--violet); margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); margin: 22px 0 32px; max-width: 34em; }
@media (max-width: 880px) { .lead { margin-inline: auto; } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-code { position: relative; margin: 0; display: grid; place-items: center; }
.hero-code img { width: min(420px, 82vw); height: auto; position: relative; filter: drop-shadow(0 30px 60px rgba(14, 20, 64, .18)); animation: float 7s ease-in-out infinite; }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 44, 240, .22), rgba(91, 44, 240, 0) 68%); animation: pulse 4s ease-in-out infinite; }
.hero-code figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .hero-code img, .halo { animation: none; } html { scroll-behavior: auto; } }

.strip { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; }
.strip div { background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.strip b { font-size: 20px; letter-spacing: -0.02em; }
.strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 880px) { .strip { grid-template-columns: 1fr 1fr; margin: 0 16px; padding: 0; } }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px) 0; }
.section h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; max-width: 18em; }
.sub { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.steps h3 { font-size: 22px; margin: 16px 0 8px; }
.steps p { margin: 0; color: var(--muted); }
.num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { margin-top: 10px; font-weight: 600; font-size: 14px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.dark { max-width: none; margin-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); background: linear-gradient(160deg, var(--navy), #05060f 70%); color: #fff; }
.dark > * { max-width: 1084px; margin-inline: auto; }
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cards article { border-radius: 22px; padding: 26px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cards h3 { font-size: 20px; margin-bottom: 10px; }
.cards p { margin: 0; color: rgba(255, 255, 255, .72); }
.cards.light article { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cards.light p { color: var(--muted); }

.code { margin: 24px 0 0; background: #0b0b0f; color: #e8e8f0; border-radius: 18px; padding: 22px 24px; overflow-x: auto; font: 14px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; }

.contact { text-align: center; padding-bottom: clamp(64px, 10vw, 120px); }
.contact h2 { margin-inline: auto; }
.contact .sub { margin-bottom: 28px; }

.foot { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink); }
