:root {
  --accent: rgb(37 99 235);
  --accent-rgb: 37, 99, 235;
  --accent-2: rgb(14 165 233);
  --accent-contrast: #fff;
  --ink: #111827;
  --ink-2: #263142;
  --muted: #667085;
  --line: #e6eaf0;
  --paper: #f7f9fb;
  --white: #fff;
  --night: #071017;
  --night-2: #0b1721;
  --night-line: rgba(255,255,255,.11);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(15,23,42,.11);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(7,16,23,.83); backdrop-filter: blur(18px); border-color: rgba(255,255,255,.08); }
.header-inner { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: 150px; }
.brand-image-wrap { height: 50px; min-width: 150px; display: inline-flex; align-items: center; border-radius: 9px; overflow: hidden; background: white; padding: 5px 8px; }
.brand-image { max-height: 40px; width: auto; object-fit: contain; }
.brand-image.is-missing { display: none; }
.brand-fallback { display: none; align-items: baseline; gap: 5px; color: #111827; font-size: 20px; letter-spacing: -.04em; font-weight: 800; white-space: nowrap; }
.brand-fallback strong { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 650; color: rgba(255,255,255,.78); }
.primary-nav > a { transition: color .2s ease; }
.primary-nav > a:hover { color: #fff; }
.primary-nav .nav-cta { border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 10px 17px; border-radius: 999px; }
.primary-nav .nav-cta:hover { background: #fff; color: var(--night); }
.nav-toggle { display: none; appearance: none; background: transparent; border: 0; padding: 9px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

.section { padding: 124px 0; }
.section-dark { background: var(--night); color: var(--white); }
.hero { min-height: 790px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 148px 0 92px; }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; border-radius: 50%; right: -260px; top: -220px; background: radial-gradient(circle, rgba(var(--accent-rgb),.18), transparent 66%); pointer-events: none; }
.hero-grid-bg { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.62); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb),.8); }
.eyebrow-light { color: var(--accent); }
.hero h1 { font-size: clamp(50px, 6.4vw, 86px); line-height: .98; letter-spacing: -.055em; margin: 25px 0 28px; max-width: 760px; font-weight: 760; }
.hero h1 span { color: var(--accent-2); }
.hero-lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.67); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 14px; font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 14px 35px rgba(var(--accent-rgb),.22); }
.button-primary:hover { box-shadow: 0 18px 46px rgba(var(--accent-rgb),.3); }
.button-ghost { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.03); }
.button-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.hero-tags span { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: rgba(255,255,255,.52); padding: 6px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.hero-visual { height: 520px; position: relative; }
.visual-glow { position: absolute; inset: 14% 10%; background: radial-gradient(circle, rgba(var(--accent-rgb),.18), transparent 68%); filter: blur(18px); }
.arch-card, .arch-node { position: absolute; border: 1px solid rgba(255,255,255,.11); background: rgba(13,29,40,.78); backdrop-filter: blur(10px); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.arch-main { left: 20%; top: 36%; width: 60%; padding: 24px 26px; border-radius: 18px; z-index: 3; }
.arch-main::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(var(--accent-rgb),.3); pointer-events: none; }
.arch-main strong, .arch-main small, .arch-main span { display: block; }
.arch-kicker { color: var(--accent-2); letter-spacing: .16em; font-size: 10px; font-weight: 800; }
.arch-main strong { font-size: 22px; letter-spacing: -.02em; margin-top: 5px; }
.arch-main small { color: rgba(255,255,255,.48); margin-top: 4px; }
.arch-node { width: 235px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; z-index: 2; }
.arch-node .node-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--accent-rgb),.13); color: var(--accent-2); display: grid; place-items: center; font-weight: 900; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.arch-node small, .arch-node strong { display: block; }
.arch-node small { color: rgba(255,255,255,.34); letter-spacing: .14em; font-size: 8px; font-weight: 800; }
.arch-node strong { color: rgba(255,255,255,.82); font-size: 12px; margin-top: 2px; }
.node-network { left: 2%; top: 7%; }
.node-platform { right: 1%; top: 14%; }
.node-code { right: 2%; bottom: 5%; }
.arch-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),.7), transparent); transform-origin: left; z-index: 1; }
.line-a { width: 205px; left: 20%; top: 38%; transform: rotate(47deg); }
.line-b { width: 170px; left: 65%; top: 39%; transform: rotate(-40deg); }
.line-c { width: 210px; left: 63%; top: 60%; transform: rotate(48deg); }
.arch-status { position: absolute; left: 12%; bottom: 10%; color: rgba(255,255,255,.38); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.arch-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ed598; box-shadow: 0 0 10px rgba(62,213,152,.75); margin-right: 6px; }

.statement { background: var(--paper); border-bottom: 1px solid var(--line); padding: 58px 0; }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 70px; align-items: start; }
.statement-label { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.statement-text { margin: 0; max-width: 850px; font-size: clamp(25px, 3vw, 39px); line-height: 1.3; letter-spacing: -.035em; color: #263142; }
.statement-text strong { color: var(--ink); font-weight: 720; }

.section-heading { display: grid; grid-template-columns: 1fr 1.12fr; gap: 70px; align-items: end; margin-bottom: 62px; }
.section-heading > div { align-self: start; }
.section-number { display: block; color: #9aa4b2; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 28px; }
.section-number-dark { color: rgba(255,255,255,.34); }
.section-heading h2, .split-copy h2, .code-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.048em; }
.section-heading p { margin: 0; color: var(--muted); max-width: 560px; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; padding: 42px; min-height: 430px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); z-index: 2; }
.service-card-accent::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.service-icon { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; color: var(--accent); font-weight: 900; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-bottom: 56px; }
.service-index { position: absolute; right: 34px; top: 34px; font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #a3acb8; }
.service-card h3 { margin: 0 0 14px; font-size: 28px; letter-spacing: -.035em; }
.service-card p { color: var(--muted); margin: 0 0 24px; max-width: 490px; }
.service-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.service-card li::before { content: "—"; color: var(--accent); margin-right: 7px; }

.split-section { position: relative; overflow: hidden; }
.split-section::after { content: ""; position: absolute; width: 650px; height: 650px; right: -280px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb),.15), transparent 67%); }
.split-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: 105px; }
.split-copy .eyebrow { margin-bottom: 24px; }
.split-copy h2 { max-width: 620px; }
.split-copy p { color: rgba(255,255,255,.62); font-size: 17px; margin: 28px 0 0; max-width: 610px; }
.process { border-top: 1px solid var(--night-line); }
.process-item { display: grid; grid-template-columns: 66px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--night-line); }
.process-item > span { color: var(--accent-2); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 6px; }
.process-item strong { font-size: 21px; letter-spacing: -.02em; }
.process-item p { color: rgba(255,255,255,.47); margin: 5px 0 0; font-size: 14px; }

.code-section { background: #f8fafc; }
.code-layout { display: grid; grid-template-columns: 1.03fr .97fr; gap: 90px; align-items: center; }
.code-panel { background: #0a1118; color: #dbe7f1; border-radius: 22px; box-shadow: 0 32px 80px rgba(15,23,42,.18); overflow: hidden; border: 1px solid #172531; }
.code-top { height: 48px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 7px; padding: 0 17px; }
.code-top > span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.16); }
.code-top small { margin-left: 7px; color: rgba(255,255,255,.34); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-panel pre { margin: 0; padding: 48px 42px 56px; overflow: auto; font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-muted { color: #61707e; }
.code-key { color: var(--accent-2); }
.code-string { color: #a7d7ad; }
.code-result { border-top: 1px solid rgba(255,255,255,.08); padding: 13px 18px; color: rgba(255,255,255,.47); font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-result span { color: #3ed598; margin-right: 8px; }
.code-copy .eyebrow { margin-bottom: 24px; }
.code-copy p { color: var(--muted); font-size: 17px; margin: 26px 0 0; }
.text-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 34px; color: var(--ink); font-weight: 780; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.text-link span { color: var(--accent); }

.contact-section { padding-top: 135px; background: #fff; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; align-items: start; }
.contact-copy .eyebrow { margin-bottom: 25px; }
.contact-copy > p { color: var(--muted); max-width: 470px; font-size: 17px; margin: 26px 0 0; }
.contact-data { border-top: 1px solid var(--line); margin-top: 46px; }
.contact-data > * { display: block; border-bottom: 1px solid var(--line); padding: 17px 0; }
.contact-data small, .contact-data strong { display: block; }
.contact-data small { color: #97a1ae; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 800; }
.contact-data strong { color: var(--ink); font-size: 15px; margin-top: 4px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: 0 24px 80px rgba(15,23,42,.07); }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 760; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d9dfe7; border-radius: 11px; background: #fbfcfd; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.contact-form textarea { resize: vertical; min-height: 145px; }
.form-submit { width: 100%; border: 0; margin-top: 3px; }
.form-hint { color: #98a2b3; font-size: 10px; margin: -6px 0 0; text-align: center; }
.hp-field { position: absolute !important; left: -99999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 11px; padding: 12px 14px; margin-bottom: 20px; font-size: 13px; }
.form-notice.success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.form-notice.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.site-footer { background: #060d13; color: rgba(255,255,255,.55); padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand { color: #fff; font-weight: 820; font-size: 23px; letter-spacing: -.04em; }
.footer-grid p { max-width: 460px; margin: 12px 0 0; font-size: 13px; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 13px; }
.footer-meta a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.34); }
.footer-bottom a:hover { color: #fff; }

.generic-page { padding: 150px 0 90px; }
.generic-page h1 { font-size: 48px; letter-spacing: -.04em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: .06s; }
.service-card:nth-child(3) { transition-delay: .12s; }
.service-card:nth-child(4) { transition-delay: .18s; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-layout, .split-layout, .code-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 45px; }
  .hero-visual { height: 430px; max-width: 620px; width: 100%; margin: 0 auto; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .split-layout, .code-layout, .contact-layout { gap: 60px; }
  .service-card { min-height: 390px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { height: 76px; }
  .brand-image-wrap { height: 44px; min-width: 130px; }
  .brand-image { max-height: 34px; }
  .nav-toggle { display: block; z-index: 4; }
  .primary-nav { position: fixed; inset: 0; background: rgba(7,16,23,.98); padding: 120px 28px 40px; flex-direction: column; align-items: flex-start; gap: 22px; font-size: 22px; transform: translateX(100%); transition: transform .3s ease; }
  .nav-open .primary-nav { transform: translateX(0); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 125px; }
  .hero h1 { font-size: clamp(47px, 15vw, 72px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { height: 385px; }
  .arch-node { width: 190px; padding: 11px; }
  .arch-node .node-icon { width: 34px; height: 34px; }
  .node-platform { right: 0; }
  .arch-main { left: 10%; width: 80%; }
  .statement-grid { grid-template-columns: 1fr; gap: 18px; }
  .section { padding: 88px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 32px 26px; }
  .service-icon { margin-bottom: 40px; }
  .service-card ul { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 44px 1fr; }
  .code-panel pre { padding: 36px 20px 42px; font-size: 12px; }
  .contact-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-meta { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
