:root {
  --navy: #050d18;
  --navy-2: #0a1829;
  --ink: #122033;
  --muted: #5b6b80;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #1a6ef5;
  --blue-deep: #0d47c4;
  --orange: #ff7a18;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 50px rgba(5, 13, 24, 0.12);
  --radius: 22px;
  --header: 84px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Figtree", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 72px 0 96px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 14px; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); margin: 28px 0 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  transition: 0.25s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 13, 24, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #000; border-radius: 12px; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.brand small { color: #9ab0c9; font-size: 0.75rem; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #d5e2f0; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(26, 110, 245, 0.18); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding-inline: 14px !important; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 10px 8px;
  background: transparent !important;
  cursor: pointer;
  color: #ffffff !important;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 60;
  forced-color-adjust: none;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  margin: 5px 0;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 2px;
}

.hero { position: relative; overflow: hidden; }
.hero-media {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 24, 0.25) 0%, rgba(5, 13, 24, 0.88) 78%); }
.hero-content { position: relative; z-index: 1; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 48px; color: var(--white); max-width: 780px; }
.hero-mark { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.hero-mark img { width: 92px; height: 92px; object-fit: contain; background: #000; border-radius: 18px; flex-shrink: 0; }
.hero-mark p { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 800; line-height: 0.95; letter-spacing: 0.02em; color: var(--orange); }
.hero-content .eyebrow { color: #9cc2ff; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 18px; }
.hero-lead { font-size: 1.12rem; color: #d7e4f3; }
main > section:not(.hero),
.idea-article,
.site-footer { position: relative; z-index: 2; }
main > section:not(.hero) { background: var(--white); }

.ideas-index { background: #f3f5f8; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.ideas-status {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0 24px;
}
.ideas-status-detail {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  background: var(--white);
}

.idea-cards {
  display: grid;
  gap: 18px;
  max-width: 820px;
}
.idea-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  background: var(--white);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(5, 13, 24, 0.08);
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.idea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(5, 13, 24, 0.12);
}
.idea-num {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 64px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b3dcc 0%, #1a6ef5 60%, #4d94ff 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(26, 110, 245, 0.28);
}
.idea-card-body {
  min-width: 0;
}
.idea-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--ink);
}
.idea-card p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.idea-meta {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.idea-author {
  display: block;
  color: #1a9d4a;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.idea-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.idea-detail { padding-bottom: 24px; background: var(--white); }
.idea-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.idea-breadcrumb a { color: var(--blue); font-weight: 600; }
.idea-detail-header { max-width: 780px; }
.idea-detail-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
}
.idea-detail-meta {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}
.idea-detail-header .idea-author { margin-bottom: 0; }

.idea-wrap { max-width: 820px; }
.idea-intro { background: var(--paper); }
.idea-intro .lead,
.data-section .lead,
.workflow-section .lead,
.tools-section .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.highlight-grid div {
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.highlight-grid strong {
  display: block;
  font-family: var(--font-display);
  color: var(--blue);
  margin-bottom: 8px;
}
.highlight-grid p { color: var(--muted); }

.sheet-cols,
.question-list,
.system-list,
.tools-list {
  margin: 12px 0 24px 1.2rem;
  color: var(--muted);
}
.sheet-cols li,
.question-list li,
.system-list li,
.tools-list li { margin-bottom: 8px; }
.system-list a { color: var(--blue); font-weight: 700; text-decoration: underline; }

.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}
.day-grid article,
.stack-cards article {
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
}
.day-grid p,
.stack-cards p { color: var(--muted); }

.callout {
  background: #0a1829;
  color: #d7e4f3;
  border-radius: 18px;
  padding: 20px 22px;
  margin: 20px 0 8px;
  font-weight: 600;
}
.callout.strong { background: linear-gradient(135deg, #0b3dcc, #1a6ef5); color: var(--white); }

.stack-cards { display: grid; gap: 14px; margin: 18px 0 22px; }

.data-section { background: var(--white); }
.workflow-section { background: var(--paper); }
.tools-section { background: var(--white); }
.scale-section { background: var(--navy); color: var(--white); }
.scale-section .eyebrow { color: #8cb6ff; }
.scale-section h2 { color: var(--white); }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.phase-grid article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.phase-grid span {
  display: inline-block;
  color: #8cb6ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.phase-grid h3 { margin-bottom: 8px; font-size: 1.2rem; }
.phase-earn {
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 14px;
}
.phase-grid ul { margin-left: 1.1rem; color: #c9d8ea; }
.phase-grid li { margin-bottom: 10px; }

.credit-section { background: var(--paper); }
.credit-box {
  background: #0a1829;
  color: var(--white);
  border-radius: 28px;
  padding: 40px;
}
.credit-box .eyebrow { color: #8cb6ff; }
.credit-box h2 { color: var(--white); }
.credit-box p { color: #c9d8ea; margin-bottom: 22px; max-width: 560px; }
.credit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-dark {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.1); }

.site-footer { background: var(--navy); color: #c9d8ea; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid p { margin-top: 14px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-tag { margin-top: 18px; color: #8cb6ff; font-weight: 700; }
.footer-base { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }

@media (max-width: 980px) {
  .highlight-grid,
  .day-grid,
  .phase-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .idea-card {
    grid-template-columns: 1fr;
  }
  .idea-num {
    width: fit-content;
  }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
  }
  .site-nav.open { display: flex; }
  .credit-box { padding: 28px; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero-content { padding: 20px 0 48px; }
  .hero-mark { flex-wrap: wrap; gap: 12px; }
  .hero-mark img { width: 72px; height: 72px; }
}
