:root {
  --ink: #0b1220;
  --ink-2: #131c30;
  --brand: #2b4bff;
  --brand-2: #6c4bff;
  --brand-soft: #eef1ff;
  --text: #1a2233;
  --muted: #5a6478;
  --bg: #ffffff;
  --surface: #f5f7fc;
  --border: #e3e8f2;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 26, 56, .10);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 10px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }
.site-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-left: 8px;
  box-shadow: 0 8px 18px rgba(43, 75, 255, .28);
}
.site-nav .nav-cta:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .92; }

.nav-toggle, .nav-burger { display: none; }

@media (max-width: 860px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 10px;
    cursor: pointer;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 22px 22px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .header-inner { position: relative; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(108, 75, 255, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(43, 75, 255, .28), transparent 55%),
    linear-gradient(160deg, #0a1020 0%, #101a35 55%, #0c1428 100%);
  color: #fff;
  padding: 78px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9fb2ff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 20px 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: #c3cce4;
  max-width: 54ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #0b1220;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}
.btn-primary:hover { background: #f2f5ff; }
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: #aab6d2;
  font-size: 14px;
}
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4dffb0; display: inline-block;
}

.hero-shot {
  position: relative;
  justify-self: center;
}
.hero-shot img {
  width: 300px;
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-2deg);
}
.hero-shot::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 75, 255, .35), transparent 70%);
  z-index: -1;
}

/* --------------------------------------------------------------- sections */

.section { padding: 76px 0; }
.section.tight { padding: 52px 0; }
.section.surface { background: var(--surface); }
.section.dark { background: linear-gradient(160deg, #0a1020, #0e1730); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .kicker {
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section.dark .section-head .kicker { color: #9fb2ff; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 10px 0 12px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; max-width: 62ch; }
.section.dark .section-head p { color: #b7c2dc; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 26, 56, .02);
}
.card h3 { margin: 14px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 20px; font-weight: 800;
}
.section.dark .card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}
.section.dark .card p { color: #b7c2dc; }
.section.dark .card h3 { color: #fff; }
.section.dark .card .icon { background: rgba(108, 75, 255, .22); color: #c2c9ff; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.formats { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.formats th, table.formats td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
table.formats th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.formats tr:last-child td { border-bottom: 0; }
table.formats td:first-child { font-weight: 700; }

/* ------------------------------------------------------------------- faq */

details.faq {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 4px 20px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { color: var(--brand); }
details.faq p { margin: 0 0 16px; color: var(--muted); }

/* -------------------------------------------------------------- articles */

.page-hero {
  background: linear-gradient(160deg, #0a1020, #101a35);
  color: #fff;
  padding: 60px 0 56px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; margin: 10px 0 12px; line-height: 1.12; }
.page-hero p { color: #b7c2dc; max-width: 68ch; margin: 0; font-size: 17px; }
.page-hero .kicker { color: #9fb2ff; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.article-wrap { padding: 54px 0 76px; }
.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  color: #222b3d;
}
.article h2 { font-size: 27px; letter-spacing: -.02em; margin: 42px 0 14px; }
.article h3 { font-size: 20px; margin: 30px 0 10px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 12px 12px 0;
  color: #26314a;
}
.article code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .92em;
}
.article .note {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15px;
  color: var(--muted);
}
.article img { border-radius: 14px; margin: 22px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.article th, .article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.article th { background: var(--surface); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}
.article-foot {
  max-width: 760px;
  margin: 46px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs { font-size: 13px; color: #93a0bc; margin-bottom: 6px; }
.breadcrumbs a { color: #b9c4dd; }

/* -------------------------------------------------------------- blog list */

.post-list { display: grid; gap: 18px; }
.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  color: inherit;
}
.post-card:hover { text-decoration: none; border-color: #c9d2ff; box-shadow: var(--shadow); }
.post-card h2 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card .tag {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}

/* --------------------------------------------------------------- content */

.prose-block { max-width: 780px; }
.prose-block h2 { font-size: 25px; margin: 34px 0 12px; }
.prose-block h3 { font-size: 19px; margin: 26px 0 10px; }
.prose-block p { color: #2a3448; margin: 0 0 16px; }
.prose-block ul { padding-left: 22px; color: #2a3448; }
.prose-block li { margin-bottom: 8px; }
.prose-block .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }

.notice {
  border: 1px solid #ffd9a8;
  background: #fff8ec;
  color: #6b4a12;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  margin: 22px 0;
}

/* --------------------------------------------------------------- cta band */

.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.cta-band p { margin: 0; color: #e5e9ff; }
@media (max-width: 640px) { .cta-band { padding: 30px; } }

/* --------------------------------------------------------------- footer */

.site-footer { background: #0a1020; color: #98a4c0; padding: 56px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #8b98b6; font-size: 14px; max-width: 36ch; }
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 4px 0 12px; }
.site-footer a { display: block; color: #98a4c0; font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 36px; padding-top: 20px; font-size: 12.5px; color: #6f7c9a;
}

/* ------------------------------------------------------------ misc blocks */

.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } }
.shot-grid img { border-radius: 16px; border: 1px solid var(--border); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: #fff; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; background: var(--surface); margin: 28px 0;
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px;
}
.author-box h3 { margin: 0 0 4px; font-size: 17px; }
.author-box p { margin: 0; font-size: 14px; color: var(--muted); }

/* AdSense: ad units are intentionally NOT placed here before approval. */
.ad-slot { margin: 28px auto; max-width: 760px; min-height: 0; text-align: center; }

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