:root {
  --bg: #0b0f14;
  --surface: #0f1620;
  --surface-2: #111b27;

  --text: rgba(234, 241, 255, 0.92);
  --muted: rgba(234, 241, 255, 0.72);
  --muted2: rgba(234, 241, 255, 0.62);

  --border: rgba(234, 241, 255, 0.12);
  --border2: rgba(234, 241, 255, 0.14);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --accent: #63d6ff;
  --accent-2: #7cffa3;

  --radius: 18px;
  --radius-sm: 12px;

  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Theme tokens (extends base :root) */
:root {
  --panel: rgba(15, 22, 32, 0.72);

  --btnBg: rgba(234, 241, 255, 0.06);
  --btnBgHover: rgba(234, 241, 255, 0.1);
  --btnBorder: rgba(234, 241, 255, 0.18);

  --card: rgba(15, 22, 32, 0.72);
}

html[data-theme='light'] {
  --bg: #f6f7fb;
  --panel: rgba(255, 255, 255, 0.96);
  --text: rgba(15, 20, 26, 0.92);
  --muted: rgba(15, 20, 26, 0.72);
  --border: rgba(15, 20, 26, 0.14);

  --btnBg: rgba(15, 20, 26, 0.06);
  --btnBgHover: rgba(15, 20, 26, 0.1);
  --btnBorder: rgba(15, 20, 26, 0.22);

  --card: rgba(255, 255, 255, 0.96);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  font-size: 0.95em;
  background: rgba(234, 241, 255, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--btnBg2);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.skip:focus {
  left: 12px;
  z-index: 999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-weight: 900; /* or 800 / 900 if you want it punchier */
}

.brand-tag {
  color: var(--muted);
}

.hero-logo {
  margin-bottom: 14px;
}

.hero-logo-img {
  height: 225px; /* main size — adjust 76–96px if needed */
  width: auto;
  display: block;
}

/* Slightly reduce on small screens so it doesn’t crowd */
@media (max-width: 640px) {
  .hero-logo-img {
    height: 100px;
  }
}

.hero-logo-img--light {
  display: none;
}
.hero-logo-img--dark {
  display: block;
}

html[data-theme='light'] .hero-logo-img--light {
  display: block;
}
html[data-theme='light'] .hero-logo-img--dark {
  display: none;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--btnBorder);
  background: var(--btnBg);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease,
    border-color 120ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: var(--btnBg2);
  border-color: rgba(234, 241, 255, 0.3);
}

.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(99, 214, 255, 0.2),
    rgba(124, 255, 163, 0.18)
  );
  border-color: rgba(234, 241, 255, 0.26);
}

.btn.ghost {
  background: transparent;
}

.hero {
  padding: 56px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

a.eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--btnBg);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  margin: 0 0 14px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  font-size: 13px;
  color: var(--muted);
  background: var(--btnBg);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
}

.hero-card .card {
  box-shadow: var(--shadow);
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(234, 241, 255, 0.08);
  border-bottom: 1px solid rgba(234, 241, 255, 0.08);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.tile,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile.big {
  padding: 18px;
}

.card-head {
  margin-bottom: 10px;
}
.card-title {
  margin: 0;
  font-size: 18px;
}
.card-sub {
  margin: 6px 0 0;
  color: var(--muted);
}
.card-body {
  color: var(--muted);
}

.checklist,
.bullets {
  margin: 0;
  padding-left: 18px;
}

.checklist li,
.bullets li {
  margin: 10px 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--btnBg);
  border: 1px solid var(--border2);
  font-weight: 800;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.step p {
  margin: 0;
  color: var(--muted2);
}

/* Template guide: keep the Basic workflow list vertical */
.steps-list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: block;
}

.steps-list li {
  margin: 10px 0;
}

.cta-box {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(
      700px 260px at 30% 30%,
      rgba(99, 214, 255, 0.12),
      transparent 65%
    ),
    radial-gradient(
      700px 260px at 80% 40%,
      rgba(124, 255, 163, 0.1),
      transparent 65%
    ),
    rgba(15, 22, 32, 0.7);
}

.cta-box h3 {
  margin: 0 0 6px;
}
.cta-box p {
  margin: 0;
  color: var(--muted2);
}
.cta-box-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin-top: 16px;
}

.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.link-tile {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 120ms ease, border-color 120ms ease,
    background 120ms ease;
}

.link-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(234, 241, 255, 0.28);
  background: rgba(15, 22, 32, 0.86);
  text-decoration: none;
}

.link-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.link-desc {
  display: block;
  color: rgba(234, 241, 255, 0.74);
  font-size: 14px;
}

.fineprint {
  margin-top: 18px;
  color: var(--muted2);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--btnBg2);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.12);
}

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

.footer-brand {
  font-weight: 800;
}

.footer-note {
  color: var(--muted);
}

.footer-links {
  color: var(--muted);
}

/* Footer links: look like links, not labels */
.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-links a + a {
  margin-left: 14px;
}

/* Responsive */
/* Template guide accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border-radius: var(--radius);
  overflow: hidden;
}

.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

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

.acc summary::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 18px;
  transform: rotate(0deg);
  transition: transform 160ms ease;
  opacity: 0.9;
}

.acc[open] summary::after {
  transform: rotate(90deg);
}

.acc-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.acc-hint {
  color: var(--muted);
  font-size: 14px;
}

.acc-body {
  padding: 0 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.code-slab {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-slab code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    'Liberation Mono', 'Courier New', monospace;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

.cta-slim {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .privacy {
    grid-template-columns: 1fr;
  }
  .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .links {
    grid-template-columns: 1fr;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .acc summary::after {
    top: 16px;
  }
}

/* Theme toggle button */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--btnBorder);
  background: var(--btnBg);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.theme-btn:hover {
  background: var(--btnBg2);
}
.theme-btn-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--btnBg);
  font-size: 14px;
  line-height: 1;
}
.theme-btn-text {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

/* Light mode polish */
html[data-theme='light'] {
  /* Stronger, clearer surfaces and borders */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #ffffff;

  --text: rgba(15, 20, 26, 0.92);
  --muted: rgba(15, 20, 26, 0.74);
  --muted2: rgba(15, 20, 26, 0.62);

  --border: rgba(15, 20, 26, 0.14);
  --border2: rgba(15, 20, 26, 0.18);

  --shadow: 0 14px 40px rgba(15, 20, 26, 0.12);
}

html[data-theme='light'] .step p,
html[data-theme='light'] .tile p {
  color: var(--muted);
}

html[data-theme='light'] .tile,
html[data-theme='light'] .card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

html[data-theme='light'] .tile h3,
html[data-theme='light'] .card h3 {
  color: var(--text);
}

html[data-theme='light'] .cta-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

html[data-theme='light'] .cta-panel p {
  color: var(--muted);
}

html[data-theme='light'] .cta-panel {
  background-image: none;
}

html[data-theme='light'] .footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

html[data-theme='light'] .footer-note,
html[data-theme='light'] .footer-links a {
  color: var(--muted);
}

html[data-theme='light'] .footer-links a:hover {
  color: var(--text);
}

html[data-theme='light'] .acc {
  border-color: var(--border);
  background: #ffffff;
}

html[data-theme='light'] .acc summary:hover {
  background: rgba(15, 20, 26, 0.04);
}

html[data-theme='light'] .acc-hint {
  color: var(--muted2);
}

/* Light mode: CTA bar should not be dark */
html[data-theme='light'] .cta-box {
  background: linear-gradient(
    135deg,
    rgba(99, 214, 255, 0.1),
    rgba(124, 255, 163, 0.08)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

html[data-theme='light'] .cta-box p {
  color: var(--muted);
}

/* Light mode: Docs/Links tiles should not go dark on hover */
html[data-theme='light'] .link-desc {
  color: var(--muted);
}

html[data-theme='light'] .link-tile:hover {
  background: rgba(15, 20, 26, 0.04);
  border-color: var(--border2);
}

/* Light mode: remove all drop shadows */
html[data-theme='light'] * {
  box-shadow: none !important;
}

/* Landing: full-width theme-aware screenshot */
.jtf-shot {
  margin: 32px 0;
  width: 100%;

  /* Key line: if inside .hero-inner grid, span full row (both columns) */
  grid-column: 1 / -1;
}

/* Break the image out of the text column */
.jtf-shot img {
  display: block;
  width: 100%;
  max-width: 1200px; /* keeps it sane on ultrawide screens */
  margin: 0 auto;
  height: auto;
  border-radius: 14px;
}

.jtf-shot-caption {
  max-width: 1200px;
  margin: 10px auto 0;
  font-size: 0.95rem;
  opacity: 0.85;
  text-align: left;
  font-style: italic;
}
