:root {
  --ink: #111418;
  --muted: #626b76;
  --line: #d8dde3;
  --line-strong: #aeb6c0;
  --fill: #f5f7f9;
  --fill-2: #eef2f6;
  --accent: #1e46c8;
  --accent-dark: #1638a4;
  --white: #ffffff;
  --success: #16794a;
  --warning: #9a5b00;
  --danger: #a72828;
  --shadow: 0 8px 24px rgba(17, 20, 24, .06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button, select { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 850;
  letter-spacing: -.025em;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; }
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  margin: 0 0 12px;
}
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 18px; }
.lead { max-width: 760px; font-size: 19px; color: #303640; margin: 0 0 26px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}
.cta:hover { background: var(--accent-dark); }

.content-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.content-section h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 12px; }
.content-section h3 { font-size: 18px; margin: 24px 0 8px; }
.content-section p { margin: 0 0 14px; }
.content-section ul { padding-left: 22px; }
.content-section li { margin: 7px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 10px;
}
.home-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}
.home-card.primary { box-shadow: var(--shadow); border-color: var(--line-strong); }
.home-card h2 { font-size: 19px; margin: 0 0 7px; }
.home-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.home-card a { color: var(--accent); font-weight: 800; text-decoration: none; }
.home-card .coming { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-inner a { color: var(--muted); }

.notice {
  border: 1px solid #e3c27a;
  background: #fff9e8;
  border-radius: 10px;
  padding: 13px 15px;
  color: #654500;
  font-size: 13px;
}
.notice strong { color: #4d3500; }

@media (max-width: 760px) {
  .header-inner { min-height: 60px; padding: 0 18px; }
  .primary-nav { gap: 14px; }
  .primary-nav a:not([aria-current="page"]) { display: none; }
  .page-wrap { padding: 0 18px; }
  .hero { padding: 46px 0 40px; }
  .lead { font-size: 17px; }
  .home-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; padding-left: 18px; padding-right: 18px; }
}

/* V0.3 shared navigation: preserve access to both ranking products on mobile. */
@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 10px 18px 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .brand { align-self: flex-start; }
  .primary-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a,
  .primary-nav a:not([aria-current="page"]) {
    display: block;
    flex: 0 0 auto;
    font-size: 12.5px;
  }
}
