:root {
  --ink: #0b1b2b;
  --ink-soft: #40536a;
  --muted: #6b7c90;
  --line: #dfe6ee;
  --bg: #f6f8fb;
  --white: #ffffff;
  --accent: #1f7ae0;
  --accent-dark: #145fae;
  --teal: #19b8a5;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(14, 34, 56, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.65 "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: .8em 0 0; padding-left: 1.1em; color: var(--ink-soft); }
li { margin: .25em 0; }

.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223,230,238,.8);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.17rem; font-weight: 760; color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.brand-dot { color: var(--teal); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 550; }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 650; font-size: .95rem;
  border: 1px solid var(--ink); transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { background: #132c46; color: #fff; transform: translateY(-1px); }
.btn-small { padding: 10px 17px; font-size: .9rem; }

/* Hero */
.hero { padding: 84px 0 72px; background:
  radial-gradient(900px 460px at 78% -10%, rgba(31,122,224,.14), transparent 65%),
  radial-gradient(700px 400px at 8% 110%, rgba(25,184,165,.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.eyebrow {
  color: var(--accent); font-size: .79rem; font-weight: 750;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px;
}
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 28px 0 40px; flex-wrap: wrap; }
.link-arrow { font-weight: 650; font-size: .95rem; }
.stats { display: flex; gap: 38px; margin: 0; flex-wrap: wrap; }
.stats div { min-width: 120px; }
.stats dt { font-size: 1.55rem; font-weight: 760; letter-spacing: -.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.35; max-width: 135px; }

.hero-card { position: relative; }
.terminal {
  background: #0b1b2b; color: #d8e5f4; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transform: rotate(.6deg);
  border: 1px solid rgba(255,255,255,.08);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #10253a; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.terminal-bar span:nth-child(2) { background: #f5c451; }
.terminal-bar span:nth-child(3) { background: #4ecb8d; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: .76rem; color: #7f97b1; }
.terminal pre { margin: 0; padding: 22px; overflow-x: auto; font-size: .83rem; line-height: 1.8; }
.terminal code { font-family: "Cascadia Code", Consolas, monospace; }
.terminal b { color: var(--teal); font-weight: 600; }
.status-pill {
  position: absolute; right: 8px; bottom: -19px;
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  box-shadow: 0 10px 30px rgba(14,34,56,.10);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(25,184,165,.16); }

/* Sections */
.section { padding: 86px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 0 rgba(14,34,56,.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: rgba(31,122,224,.09); color: var(--accent);
  font-size: 1.25rem; margin-bottom: 18px;
}
.card p { color: var(--ink-soft); font-size: .95rem; }
.card ul { font-size: .9rem; }

.work-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.work-list article { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 8px 30px; }
.work-list h3 { margin-bottom: 4px; }
.work-list p { grid-column: 2; color: var(--ink-soft); max-width: 720px; margin-bottom: 8px; }
.tag { display: inline-block; align-self: start; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(31,122,224,.08); border-radius: 6px; padding: 3px 9px; width: fit-content; }
.meta { grid-column: 2; font-size: .82rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: start; }
.about-grid p { color: var(--ink-soft); }
.quote { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 28px; box-shadow: 0 1px 0 rgba(14,34,56,.03); }
.quote blockquote { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.quote-author { margin: 0; font-size: .85rem; color: var(--muted); }

.section-cta { background: var(--ink); color: #fff; }
.section-cta .eyebrow { color: #6fb4ff; }
.section-cta h2 { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.cta-inner p { color: #b9c8d8; }
.contact-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 28px; }
.contact-card p { display: flex; gap: 16px; margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .94rem; }
.contact-card p:last-child { border-bottom: 0; }
.contact-card span { color: #7f97b1; min-width: 58px; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.contact-card a { color: #fff; }

/* Footer */
.site-footer { background: #081522; color: #93a7bb; padding: 46px 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 40px; align-items: start; }
.brand-footer { color: #fff; margin-bottom: 10px; }
.brand-footer:hover { color: #fff; }
.footer-note { font-size: .86rem; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.footer-links a { color: #b9c8d8; }
.footer-links a:hover { color: #fff; }
.footer-legal { font-size: .8rem; text-align: right; }
.footer-legal p { margin: 0 0 3px; }

/* Privacy page */
.page { padding: 64px 0 90px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page h2 { font-size: 1.35rem; margin-top: 34px; }
.page p, .page li { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-grid, .cta-inner, .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { max-width: 520px; }
  .cards { grid-template-columns: 1fr; }
  .work-list article { grid-template-columns: 1fr; }
  .work-list p, .meta { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .header-inner { height: 64px; }
  .btn-small { display: none; }
  .hero { padding: 58px 0 54px; }
  .section { padding: 64px 0; }
  .stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
