:root {
  --ink: #081016;
  --ink-2: #101b22;
  --paper: #f4f7f8;
  --white: #fff;
  --muted: #65727a;
  --line: #d7dfe3;
  --cyan: #00b7e8;
  --cyan-dark: #008fba;
  --orange: #ff7a21;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--white); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: rgba(7, 16, 21, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
}
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #d8e1e5; text-decoration: none; font-size: .91rem; font-weight: 650; }
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta { padding: 11px 18px; color: var(--ink); background: var(--cyan); border-radius: 4px; }
.menu-button { display: none; color: var(--white); background: transparent; border: 1px solid #526169; padding: 8px 12px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: calc(100vh - 76px);
  color: var(--white);
  background: var(--ink);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 8vw, 128px) max(32px, calc((100vw - var(--max)) / 2));
  padding-right: clamp(36px, 6vw, 88px);
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero .eyebrow, .feature-dark .eyebrow, .open-section .eyebrow, .follow-section .eyebrow { color: var(--cyan); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.7vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-lead { max-width: 680px; margin: 30px 0 0; color: #bdc9ce; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-actions, .open-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 800; }
.button-primary { color: #031117; background: var(--cyan); }
.button-primary:hover { background: #38cbf0; }
.button-secondary { color: var(--white); border-color: #63737b; }
.button-secondary:hover { border-color: var(--white); }
.hero-repo-link { padding: 12px 4px; color: #aebdc3; text-underline-offset: 5px; font-weight: 750; }
.hero-repo-link:hover { color: var(--white); }
.hero-note { margin-top: 22px; color: #7f9199; font-size: .88rem; }
.hero-media { position: relative; min-height: 560px; margin: 0; overflow: hidden; background: #131c21; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,22,.48), transparent 32%), linear-gradient(0deg, rgba(8,16,22,.6), transparent 35%); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; z-index: 1; right: 34px; bottom: 28px; color: var(--white); font-weight: 750; letter-spacing: .02em; }

.section { padding: clamp(80px, 10vw, 150px) max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; align-items: start; gap: 40px; margin-bottom: 70px; }
.section-heading h2 { font-size: clamp(2.4rem, 4.8vw, 5rem); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.problem-grid article { padding: 34px 36px 10px 0; }
.problem-grid article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.number { color: var(--orange); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.problem-grid h3 { margin: 44px 0 12px; font-size: 1.45rem; line-height: 1.15; }
.problem-grid p { color: var(--muted); }

.feature { display: grid; grid-template-columns: 1.05fr .95fr; }
.feature-dark { color: var(--white); background: var(--ink-2); }
.feature-media { min-height: 720px; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { align-self: center; padding: clamp(60px, 8vw, 120px); }
.feature-copy h2 { font-size: clamp(2.7rem, 4.7vw, 5rem); }
.feature-copy > p:not(.eyebrow):not(.fine-print) { color: #b7c4c9; font-size: 1.08rem; }
.spec-list { margin: 42px 0 0; border-top: 1px solid #34434a; }
.spec-list div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #34434a; }
.spec-list dt { color: #82949c; }
.spec-list dd { margin: 0; font-weight: 750; }
.fine-print { color: #71848c; font-size: .78rem; }

.tools-section { background: var(--white); }
.section-heading.compact { grid-template-columns: .45fr 1fr .65fr; }
.section-heading.compact p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { overflow: hidden; background: #eef2f4; }
.tool-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tool-card div { padding: 28px; }
.tool-card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.tool-card p { margin: 0; color: var(--muted); }

.status-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 110px); background: #dfe8eb; }
.status-copy h2 { font-size: clamp(2.6rem, 4.6vw, 4.9rem); }
.status-copy > p:not(.eyebrow) { color: #53636a; font-size: 1.07rem; }
.check-list { list-style: none; padding: 0; margin: 32px 0; border-top: 1px solid #bcc9ce; }
.check-list li { position: relative; padding: 14px 0 14px 29px; border-bottom: 1px solid #bcc9ce; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-dark); font-weight: 900; }
.text-link { color: var(--cyan-dark); text-underline-offset: 5px; font-weight: 800; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 18px; }
.photo-stack a { display: block; height: 100%; overflow: hidden; box-shadow: 0 18px 55px rgba(8,16,22,.15); }
.photo-stack a:focus-visible { outline: 3px solid var(--cyan-dark); outline-offset: 4px; }
.photo-stack img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.photo-stack a:hover img { transform: scale(1.025); }
.photo-stack .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-top: 1px; padding-bottom: 1px; background: var(--line); }
.story-card { padding: clamp(54px, 7vw, 96px); background: var(--white); }
.story-name { display: flex; flex-direction: column; }
.story-card h2 { margin-bottom: 34px; font-size: clamp(2.5rem, 4vw, 4.5rem); }
.story-card > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.story-card strong { color: var(--ink); }
.dog-collage { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; height: 168px; margin-top: auto; padding-top: 28px; }
.dog-collage img { width: 100%; height: 100%; object-fit: contain; background: #e7edef; }
.dog-collage .dog-scene { object-fit: cover; }
.story-creator { padding: 0; background: #edf2f4; }
.creator-portrait { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 42%; }
.creator-copy { padding: clamp(54px, 7vw, 96px); }
.creator-copy > p:not(.eyebrow) { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.creator-copy h2 { margin-bottom: 34px; font-size: clamp(2.5rem, 4vw, 4.5rem); }
.story-creator .text-link { display: inline-block; margin-top: 18px; }

.open-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; color: var(--white); background: var(--ink); }
.open-section h2 { font-size: clamp(3.2rem, 6vw, 6.5rem); }
.open-copy { align-self: center; }
.open-copy > p { color: #b8c5ca; font-size: 1.17rem; }
.open-copy .text-link { color: var(--cyan); }

.follow-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  padding: clamp(80px, 10vw, 140px) max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: #12303d;
}
.follow-intro h2 { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.follow-intro > p:not(.eyebrow):not(.privacy-note) { color: #c4d1d6; font-size: 1.12rem; }
.privacy-note { margin-top: 34px; color: #8eabb6; font-size: .82rem; }
.signup-frame { align-self: center; padding: 18px; background: var(--white); border-radius: 5px; }
.signup-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
.signup-frame p { margin: 10px 8px 0; color: var(--muted); font-size: .8rem; text-align: center; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 42px max(24px, calc((100vw - var(--max)) / 2));
  color: #81929a;
  background: #050a0d;
  font-size: .85rem;
}
.site-footer img { width: 110px; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #c8d2d6; }
.copyright { grid-column: 2; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 24px; background: var(--ink); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; }
  .site-nav .nav-cta { margin-top: 10px; padding: 12px 16px; text-align: center; }
  .hero, .feature, .status-section, .story-section, .open-section, .follow-section { grid-template-columns: 1fr; }
  .hero-copy { padding: 80px 7vw; }
  .hero-media { min-height: 68vw; }
  .feature-media { min-height: 65vw; }
  .feature-copy { padding: 80px 7vw; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 18px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { display: grid; grid-template-columns: .85fr 1.15fr; }
  .open-section { gap: 44px; }
}

@media (max-width: 680px) {
  .brand img { width: 124px; }
  .site-header { min-height: 66px; }
  .site-nav { top: 66px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 64px 24px; }
  h1 { font-size: 2.8rem; }
  .hero-actions .button { width: 100%; }
  .hero-repo-link { width: 100%; text-align: center; }
  .hero-media { min-height: 88vw; }
  .hero-media figcaption { right: 20px; bottom: 18px; font-size: .8rem; }
  .section { padding: 76px 24px; }
  .section-heading { margin-bottom: 46px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article, .problem-grid article + article { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .problem-grid h3 { margin-top: 20px; }
  .feature-copy { padding: 72px 24px; }
  .feature-media { min-height: 92vw; }
  .spec-list div { grid-template-columns: 90px 1fr; }
  .tool-card { display: block; }
  .photo-stack { margin-top: 20px; }
  .open-section { gap: 38px; }
  .follow-section { gap: 38px; padding: 76px 24px; }
  .signup-frame { margin: 0 -10px; padding: 8px; }
  .signup-frame iframe { height: 680px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
