:root {
  color-scheme: light;
  --ink: #121826;
  --ink-soft: #344054;
  --muted: #667085;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --line: #d9e1ee;
  --amber: #d79600;
  --amber-dark: #8a5f00;
  --green: #14936b;
  --blue: #3867d6;
  --coral: #dd5e4f;
  --shadow: 0 18px 46px rgba(28, 39, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 44px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  border-radius: 8px;
}

.brand b {
  font-weight: 600;
  color: #ffd766;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: #ffffff;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.header-action {
  color: #111827;
  background: #ffce33;
}

.header-action:hover,
.button.primary:hover {
  background: #f5bd16;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 116px 44px 90px;
  color: #ffffff;
  background-image: url("assets/ducktype-dashboard.png");
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 23, 0.68);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #ffce33;
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.button.primary {
  color: #111827;
  background: #ffce33;
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.10);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 38px 0 0;
}

.hero-stats div {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.10);
  text-shadow: none;
}

.hero-stats dt {
  font-weight: 800;
  font-size: 16px;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.band {
  padding: 86px 44px;
  background: var(--surface);
}

.band.alt {
  background: #eef3f9;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-kicker {
  color: var(--amber-dark);
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.proof-grid,
.privacy-layout,
.mini-layout,
.roadmap-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 52px;
  align-items: center;
}

.proof p,
.privacy p,
.mini p,
.roadmap p,
.cta p {
  color: var(--ink-soft);
  font-size: 17px;
}

.screen {
  margin: 0;
}

.pop-card {
  position: relative;
}

.proof-copy {
  position: relative;
}

.screen > .zoomable > img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.screen figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.zoomable {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.zoomable img {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.zoomable:hover img {
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.zoomable:hover .zoom-hint,
.zoomable:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.duck-decor {
  width: 92px;
  max-height: 92px;
  object-fit: contain;
  flex: 0 0 auto;
  pointer-events: none;
}

.decor-wave {
  width: 108px;
  margin-top: 20px;
  filter: drop-shadow(0 12px 22px rgba(28, 39, 61, 0.16));
}

.decor-think,
.decor-coding {
  margin-top: -12px;
}

.feature-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

/* feature info chips */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.info-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(28, 39, 61, 0.05);
}

.info-chips li b {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff3cf;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 800;
}

/* keys-vs-chars comparison */
.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
}

.vs-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vs-chars {
  border-color: #ffe39a;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.vs-tag {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vs-keys-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.vs-keys-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #f3f6fc;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.vs-chars-row {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.vs-chars-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #ffce33;
  color: #1c2436;
  font-size: 30px;
  font-weight: 800;
}

.vs-num {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.vs-num.accent {
  color: var(--amber-dark);
}

.vs-num small {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.vs-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.vs-arrow {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
}

.vs-arrow svg {
  width: 48px;
  height: 24px;
}

.vs-arrow span {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .vs {
    grid-template-columns: 1fr;
  }

  .vs-arrow svg {
    transform: rotate(90deg);
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 39, 61, 0.05);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 48px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--amber-dark);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(28, 39, 61, 0.07);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.gallery-lede {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid .zoomable img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.gallery-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.audience-grid article,
.privacy-panel,
.roadmap-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 39, 61, 0.06);
}

.feature-card {
  padding: 22px;
  min-height: 218px;
}

.feature-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--blue);
}

.feature-card:nth-child(2) svg,
.feature-card:nth-child(4) svg {
  color: var(--green);
}

.feature-card:nth-child(3) svg,
.feature-card:nth-child(6) svg {
  color: var(--amber-dark);
}

.feature-card p,
.audience-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #d9f4ea;
}

.privacy-panel {
  padding: 24px;
}

.privacy-panel h3 {
  margin-bottom: 18px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.file-row b {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.audience-grid article {
  padding: 20px;
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-layout {
  grid-template-columns: 0.7fr 1fr;
}

.mini-art {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: 8px;
  background: #ecf7f2;
  border: 1px solid #cbe7da;
}

.mini-art img {
  width: min(300px, 88%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.roadmap-grid {
  grid-template-columns: 0.9fr 1fr;
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-list > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.roadmap-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #111827;
  color: #ffce33;
  font-weight: 800;
}

.roadmap-list p {
  margin: 0;
}

.cta {
  text-align: center;
  color: #ffffff;
  background: #111827;
}

.cta-inner {
  display: grid;
  justify-items: center;
}

.cta img {
  margin-bottom: 18px;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 28px 44px;
  color: #d8dee9;
  background: #0b101b;
  font-size: 14px;
}

.lightbox {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0b101b;
  color: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(5, 9, 16, 0.82);
  backdrop-filter: blur(4px);
}

/* Scrollable viewport: the image fills the dialog width and tall captures
   scroll vertically, so text stays large and readable instead of being
   shrunk to fit one screen. */
.lightbox-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #0b101b;
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.lightbox p {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 48px 12px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #d8dee9;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #ffce33;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .proof-grid,
  .privacy-layout,
  .mini-layout,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decor-wave {
    width: 82px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .header-action {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero {
    min-height: 76vh;
    padding: 96px 20px 68px;
  }

  .hero::before {
    background: rgba(8, 13, 23, 0.74);
  }

  h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 64px 20px;
  }

  h2 {
    font-size: 27px;
  }

  .feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: center;
  }

  .duck-decor {
    width: 68px;
    max-height: 68px;
  }

  .zoom-hint {
    opacity: 1;
    transform: none;
    font-size: 11px;
  }

  .lightbox {
    width: calc(100vw - 20px);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
