:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-soft: #45506a;
  --ink-faint: #6b7690;
  --line: #e3e8f0;
  --brand: #1f6feb;
  --brand-deep: #0b3d91;
  --accent: #12b5a5;
  --shadow: 0 1px 2px rgba(11,18,32,.06), 0 8px 24px rgba(11,18,32,.06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f172a;
    --surface: #111c33;
    --ink: #eef2fb;
    --ink-soft: #b6c1da;
    --ink-faint: #8b97b4;
    --line: #223052;
    --brand: #5b9bff;
    --brand-deep: #7db0ff;
    --accent: #35d0bf;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em;
  box-shadow: var(--shadow);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.brand-text { font-size: 18px; }
.brand-suffix { color: var(--ink-faint); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: var(--ink); background: var(--bg-alt); text-decoration: none; }
.nav-cta { color: #fff !important; background: var(--brand); }
.nav-cta:hover { background: var(--brand-deep) !important; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 500px at 80% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700;
  color: var(--brand); margin: 0 0 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .2s ease, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.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 30px; font-size: 1.1rem; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .9rem; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 20ch; }
.section-intro { color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; margin: 0 0 40px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, transparent), color-mix(in srgb, var(--accent) 22%, transparent));
  color: var(--brand); font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 1.28rem; }
.card p { color: var(--ink-soft); margin: 0 0 16px; }
.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { position: relative; padding-left: 22px; color: var(--ink-soft); margin-bottom: 8px; font-size: .97rem; }
.card-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.approach-item { position: relative; padding-top: 6px; }
.approach-num { font-size: 2rem; font-weight: 800; color: color-mix(in srgb, var(--brand) 55%, var(--ink-faint)); display: block; margin-bottom: 6px; letter-spacing: -0.03em; }
.approach-item h3 { font-size: 1.25rem; }
.approach-item p { color: var(--ink-soft); margin: 0; }

/* About */
.about-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--ink-soft); margin: 0 0 18px; }
.fact-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list strong { color: var(--ink); }
.fact-list span { color: var(--ink-soft); text-align: right; }
.about-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.about-aside h3 { font-size: 1.05rem; margin-bottom: 16px; }
.tech-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tech-tags li { font-size: .86rem; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }

/* Contact */
.section-contact { text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-inner { max-width: 640px; }
.section-contact .section-intro { margin-left: auto; margin-right: auto; }
.section-contact h2 { margin-left: auto; margin-right: auto; }
.contact-note { color: var(--ink-faint); font-size: .95rem; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--ink-soft); font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-faint); font-size: .9rem; margin: 0; width: 100%; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .site-nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 60px 0 48px; }
  .section { padding: 60px 0; }
  .fact-list span { text-align: left; }
}
