:root {
  --bg: #071017;
  --bg-soft: #101b24;
  --card: #ffffff;
  --card-soft: #f3f7fa;
  --text: #14212b;
  --muted: #5c6b76;
  --white: #ffffff;
  --line: rgba(20, 33, 43, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #38d39f;
  --accent-strong: #14b884;
  --warning: #ffd166;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 18px 44px rgba(7, 16, 23, 0.08);
  --radius: 24px;
  --ink: #14212b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--card);
  line-height: 1.55;
}

a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.section-pad { padding: 86px 0; }
.skiplink {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--white);
  color: var(--text);
  padding: 10px 14px;
  z-index: 10;
}
.skiplink:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 16, 23, 0.86);
  backdrop-filter: blur(16px);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8be9fd);
  color: #061016;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand strong { display: block; font-size: 1.02rem; }
.brand small { display: block; color: rgba(255, 255, 255, 0.62); margin-top: -2px; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.top-nav a:hover { color: var(--white); }

.hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 24%, rgba(56, 211, 159, 0.28), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(139, 233, 253, 0.16), transparent 24%),
    linear-gradient(140deg, #071017 0%, #0a1721 48%, #132536 100%);
}
.hero-grid, .two-col, .audience-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.8rem, 6vw, 6rem); margin: 0 0 24px; }
h2 { font-size: clamp(2rem, 3.5vw, 3.8rem); margin: 0 0 18px; }
h3 { font-size: 1.35rem; margin: 0 0 10px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: rgba(255, 255, 255, 0.78); max-width: 720px; }
.hero-copy p:not(.eyebrow) { margin-bottom: 28px; }
.hero-actions, .generator-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #05110e; box-shadow: 0 14px 34px rgba(56, 211, 159, 0.25); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.secondary { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.generator-form .btn.secondary { color: var(--text); border-color: var(--line); background: var(--card-soft); }
.full { width: 100%; }
.text-link { color: #0f7bff; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.trust-row span, .mini-chip, .qr-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.pass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,250,0.96));
  color: var(--text);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.hero-card { transform: rotate(1.2deg); }
.pass-top, .card-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.label {
  margin: 0 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 900;
}
.pass-top h2 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); margin: 0; }
.status {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 900;
}
.status.ok { background: rgba(56, 211, 159, 0.2); color: #087650; }
.robot-visual {
  height: 210px;
  margin: 26px 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(56, 211, 159, 0.25), transparent 32%),
    linear-gradient(135deg, #0c1b25, #152f42);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.robot-visual::before, .robot-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.robot-visual::after { width: 270px; height: 270px; }
.robot-head {
  position: relative;
  width: 118px;
  height: 82px;
  border-radius: 28px;
  background: linear-gradient(160deg, #f8fbff, #b8c6cf);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,0.12), 0 18px 28px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  z-index: 2;
}
.robot-head::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  width: 2px;
  height: 30px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.75);
}
.robot-head::after {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}
.robot-head span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #0b1821;
  box-shadow: 0 0 18px rgba(56, 211, 159, 0.8);
}
.robot-body {
  position: absolute;
  width: 98px;
  height: 70px;
  bottom: 38px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(160deg, #dce7ee, #8ba0ad);
}
.robot-body span {
  position: absolute;
  inset: 18px 24px;
  border-radius: 999px;
  background: rgba(7, 16, 23, 0.32);
}
.pass-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}
.pass-data div {
  background: rgba(20,33,43,0.055);
  padding: 12px;
  border-radius: 16px;
}
dt { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 900; }
dd { margin: 4px 0 0; font-weight: 800; word-break: break-word; }
.card-footer { align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.card-footer .mini-chip { color: #0c7655; border-color: rgba(20, 184, 132, 0.35); background: rgba(56, 211, 159, 0.14); }

.notice-wrap { background: #f2f6f8; }
.notice {
  border: 1px solid rgba(255, 209, 102, 0.72);
  background: #fff8e4;
  padding: 16px 18px;
  border-radius: 18px;
}

.two-col p, .audience-grid p { color: var(--muted); font-size: 1.05rem; }
.generator-form, .contact-form, .qr-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdfe;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(56, 211, 159, 0.22);
  border-color: var(--accent-strong);
}
.qr-panel { text-align: center; }
.qr-box {
  min-height: 330px;
  display: grid;
  place-items: center;
  background: #f5f8fa;
  border: 1px dashed rgba(20,33,43,0.2);
  border-radius: 22px;
  padding: 22px;
}
.qr-box svg { width: min(100%, 300px); height: auto; border-radius: 8px; }
.qr-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: var(--text) !important;
  background: #f5f8fa;
  border-radius: 14px;
  padding: 12px;
  margin: 16px 0 12px;
}
.qr-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qr-meta span { color: var(--muted); border-color: var(--line); }

.showcase-section {
  background: linear-gradient(180deg, #ffffff, #f6fafb);
}
.photo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.photo-card {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.photo-humanoid { background-image: linear-gradient(180deg, rgba(7,16,23,.12), rgba(7,16,23,.82)), url('assets/humanoid.jpg'); }
.photo-dog { background-image: linear-gradient(180deg, rgba(7,16,23,.12), rgba(7,16,23,.82)), url('assets/robotdog.jpg'); }
.photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  color: var(--white);
}
.photo-kicker {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7) !important;
}
.photo-overlay h3 { font-size: 1.7rem; margin-bottom: 12px; }
.photo-overlay p { color: rgba(255,255,255,.82) !important; max-width: 40ch; }

.dark-section {
  background: var(--bg);
  color: var(--white);
}
.dark-section h2 { max-width: 840px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.feature-card {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.055);
  border-radius: 22px;
  padding: 22px;
}
.feature-card p { color: rgba(255,255,255,0.7); margin-bottom: 0; }

.audience-section { background: #f4f8fa; }
.audience-list { display: grid; gap: 12px; }
.audience-list div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.audience-list strong { display: block; margin-bottom: 4px; }
.audience-list span { color: var(--muted); }

.contact-section { background: linear-gradient(180deg, #ffffff, #f4f8fa); }
.contact-grid { align-items: start; }
.check-list { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px #dff8ef;
}
.contact-form { display: grid; gap: 14px; }
.checkbox-line { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; color: var(--muted); }
.checkbox-line input { width: auto; margin-top: 4px; }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  background: #061016;
  color: var(--white);
  padding: 36px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.site-footer p { color: rgba(255,255,255,0.62); margin: 6px 0 0; max-width: 620px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.legal-page {
  background: #f4f8fa;
}
.legal-hero {
  background: var(--bg);
  color: var(--white);
  padding: 74px 0 48px;
}
.legal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: min(7vw, 54px);
  margin: -22px auto 72px;
  box-shadow: var(--shadow-soft);
}
.legal-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.35rem); margin-top: 34px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); }
.placeholder-box {
  border: 1px solid rgba(255, 209, 102, 0.85);
  background: #fff8e4;
  border-radius: 16px;
  padding: 16px;
}

.section-intro {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.data-grid article,
.keyword-box,
.faq-list details,
.source-box {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.data-grid article { padding: 22px; }
.data-grid h3, .keyword-box h3 { margin: 0 0 10px; color: var(--ink); }
.data-grid p, .keyword-box li, .faq-list p, .source-box li { color: var(--muted); line-height: 1.7; }

.usecase-section {
  background: linear-gradient(180deg, rgba(16,24,40,.03), rgba(16,24,40,.08));
}

.keyword-box { padding: 26px; }
.keyword-box ul { margin: 14px 0 0; padding-left: 20px; }
.keyword-box li + li { margin-top: 8px; }

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  color: var(--ink);
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
}

.source-section {
  background: #f8fbfc;
}
.source-grid { align-items: start; }
.source-box { padding: 24px; }
.source-box ul { margin: 0; padding-left: 20px; }
.source-box li + li { margin-top: 10px; }
code {
  background: #eef4f7;
  border-radius: 8px;
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-page .site-header { position: sticky; }
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
}
.article-hero-card img {
  width: 100%;
  display: block;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.article-content {
  max-width: 980px;
}
.article-content ul { padding-left: 22px; }
.article-content li + li { margin-top: 8px; }
.article-cta { margin-top: 28px; }

@media (max-width: 960px) {
  .hero-grid, .two-col, .audience-grid, .article-hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-card { transform: none; }
  .feature-grid, .photo-panels { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .photo-card { min-height: 420px; background-attachment: scroll; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .section-pad { padding: 58px 0; }
  .field-grid, .pass-data, .feature-grid, .data-grid { grid-template-columns: 1fr; }
  .pass-card, .generator-form, .contact-form, .qr-panel, .source-box { padding: 18px; border-radius: 20px; }
  .pass-top, .card-footer, .footer-grid { flex-direction: column; align-items: flex-start; }
  .qr-box { min-height: 240px; }
  .photo-card { min-height: 360px; }
}


.related-section {
  background: linear-gradient(180deg, #f8fbfc, #ffffff);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.related-card {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 211, 159, .55);
}

.related-card strong {
  font-size: 1.45rem;
  letter-spacing: -.03em;
}

.related-card span:last-child {
  color: var(--muted);
}

.related-kicker {
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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