/*
 * Kyoto Marketing Site — Consolidated Stylesheet
 * ================================================
 *
 * Component classes:
 *   .container        — max-width centered wrapper (1120px)
 *   .btn-primary      — solid accent button
 *   .btn-primary--lg  — larger variant of .btn-primary
 *   .btn-ghost        — outlined ghost button
 *   .section-label    — uppercase accent label above section titles
 *   .section-title    — large section heading
 *   .section-sub      — muted paragraph below section titles
 *   .feature-card     — card with border + hover accent
 *   .feature-icon     — icon box inside feature cards
 *   .code-block       — syntax-highlighted code container
 *   .code-header      — header bar inside code block
 *   .code-body        — scrollable pre container
 *   .code-copy        — copy button in code header
 *   .nav-brand        — logo + wordmark group
 *   .nav-links        — horizontal nav link list (dropdown on mobile)
 *   .nav-cta          — accent CTA button in nav
 *   .nav-active       — highlight for current-page nav link
 *   .nav-item-has-children — nav item with dropdown
 *   .nav-dropdown     — desktop hover dropdown menu
 *   .nav-dropdown-item — link inside dropdown
 *   .nav-sub-item     — mobile inline sub-item
 *   .plugin-card       — full-height comparison card with CTA
 *   .plugin-card__tag  — tagline below plugin name
 *   .plugin-card__best-for — use case list
 *   .plugin-card__features — checkmark feature list
 *   .comparison-table  — full-width feature comparison
 *   .comparison-table__check — ✓ styling (#00F0FF)
 *   .comparison-table__dash — — styling (#2A2A2A)
 *   .btn-outline       — outlined button
 *   .wk-btn-preview   — WooKyoto button styles preview grid
 *   .wk-btn-card      — individual button preview card
 *   .wk-btn-demo      — demo pay button inside preview card
 *   .wk-requirements-grid — requirements two-column grid
 *   .wk-req-item      — requirement item with checkmark
 *   .mobile-toggle    — hamburger button (animates to ✕)
 *   .footer-inner     — three-column footer layout
 *   .reveal           — scroll-triggered fade-in animation
 *   .hero-demo-link   — small accent inline link
 *   .dev-link         — arrow link for developer sections
 */


/* === RESET & BASE === */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #222222;
  --border-hover: #333333;
  --text: #ffffff;
  --text-2: #999999;
  --text-3: #666666;
  --accent: #FF4D6A;
  --cyan: #00F0FF;
  --accent-dim: rgba(255, 77, 106, 0.12);
  --accent-glow: rgba(255, 77, 106, 0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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


/* === TYPOGRAPHY === */

code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cyan);
}


/* === LAYOUT & CONTAINERS === */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}


/* === COMPONENTS: BUTTONS === */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--lg {
  font-size: 16px;
  padding: 16px 36px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  padding: 13px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}


/* === COMPONENTS: CARDS === */

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.security-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.security-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}


/* === COMPONENTS: CODE BLOCKS === */

.code-block {
  background: #0d0d0d;
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--surface-2);
}

.code-lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

.code-copy {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.code-copy:hover {
  color: var(--text-2);
  border-color: var(--border-hover);
}

.code-copy.copied {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
}

.code-body {
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-body pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre;
  min-width: 0;
}

/* Line numbers */
.code-body .ln {
  display: inline-block;
  width: 28px;
  text-align: right;
  margin-right: 16px;
  color: #333;
  user-select: none;
  -webkit-user-select: none;
}

/* Syntax colors — index/wordpress variant */
.syn-kw  { color: #c792ea; }
.syn-fn  { color: #82aaff; }
.syn-str { color: #c3e88d; }
.syn-cm  { color: #546e7a; }
.syn-prop { color: #f07178; }
.syn-num { color: #f78c6c; }

/* Syntax colors — developers variant */
.k { color: #FF4D6A; }
.s { color: #00F0FF; }
.c { color: #555555; }
.f { color: #E8E8E8; }
.p { color: #999999; }
.n { color: #f78c6c; }
.t { color: #c792ea; }
.h { color: #E8E8E8; }


/* === COMPONENTS: TABLES === */

/* Developer doc tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 14px;
}

.doc-table th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.doc-table td {
  padding: 10px 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--surface-2);
  vertical-align: top;
  line-height: 1.6;
}

.doc-table td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table code {
  font-size: 12px;
}

.doc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* WordPress attribute tables */
.attr-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.attr-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.attr-table td {
  font-size: 13px;
  color: var(--text-2);
  padding: 10px 16px;
  border-bottom: 1px solid #1a1a1a;
  vertical-align: top;
}

.attr-table td:first-child {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}

.attr-table td:nth-child(2) {
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.attr-table td:nth-child(3) {
  font-family: var(--mono);
  color: var(--text-3);
  font-size: 12px;
}

.attr-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
}


/* === COMPONENTS: NAV === */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

/* Pages without scroll behavior get a static border */
nav.static-border {
  border-bottom-color: var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-brand svg {
  color: var(--text);
}

.nav-wordmark {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.nav-active {
  color: var(--text) !important;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text) !important;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 6px;
  transition: box-shadow 0.3s, transform 0.15s;
}

.nav-cta:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* Hamburger → ✕ animation */
.mobile-toggle svg line {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-toggle svg line:nth-child(1) { transform-origin: 12px 7px; }
.mobile-toggle svg line:nth-child(2) { transform-origin: 12px 12px; }
.mobile-toggle svg line:nth-child(3) { transform-origin: 12px 17px; }

.mobile-toggle.open svg line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-toggle.open svg line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open svg line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}


/* === COMPONENTS: FOOTER === */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  color: var(--text-3);
}

.footer-wordmark {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-3);
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-2);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

.footer-built {
  font-size: 12px;
  color: var(--text-3);
}


/* === COMPONENTS: REVEAL ANIMATION === */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === SECTIONS: SHARED === */

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps-header {
  text-align: center;
  margin-bottom: 72px;
}

.steps-header .section-sub {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
}

.step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}


/* === PAGES: INDEX (HOME) === */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: 100px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 strong {
  font-weight: 300;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

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

.hero-demo-link {
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.hero-demo-link:hover {
  gap: 8px;
}

.hero-wp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
  margin-top: 20px;
  transition: gap 0.2s;
}

.hero-wp-link:hover {
  gap: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Wallet mockup */
.wallet-frame {
  width: 300px;
  background: #0f0f0f;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.wallet-chrome {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.wallet-chrome-spacer {
  width: 24px;
}

.wallet-dots {
  display: flex;
  gap: 6px;
}

.wallet-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.wallet-title {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.wallet-body {
  padding: 28px 20px 20px;
}

.wallet-chain-toggle {
  display: flex;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 28px;
  width: fit-content;
}

.wallet-chain-toggle span {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  color: var(--text-3);
  cursor: default;
}

.wallet-chain-toggle span.active {
  background: #0f0f0f;
  color: var(--text);
}

.wallet-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.wallet-balance {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}

.wallet-balance-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.wallet-address {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 24px;
  text-align: center;
}

.wallet-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.wallet-btn-send {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: default;
}

.wallet-btn-receive {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: #1a1a1a;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  cursor: default;
}

.wallet-activity-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.wallet-tx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #1a1a1a;
}

.wallet-tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-tx-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.wallet-tx-icon.sent { background: rgba(255, 77, 106, 0.1); color: var(--accent); }
.wallet-tx-icon.received { background: rgba(0, 240, 255, 0.1); color: #00F0FF; }

.wallet-tx-details {
  display: flex;
  flex-direction: column;
}

.wallet-tx-type {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.wallet-tx-time {
  font-size: 10px;
  color: var(--text-3);
}

.wallet-tx-amount {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.wallet-tx-amount.sent { color: var(--accent); }
.wallet-tx-amount.received { color: #00F0FF; }

/* Index features */
#features {
  border-top: 1px solid var(--border);
}

#features .feature-card {
  padding: 36px 28px;
}

#features .feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

#features .feature-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#features .feature-card li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

#features .feature-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

/* How it works (index) */
#how-it-works {
  border-top: 1px solid var(--border);
}

.step-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-2);
}

/* Developers section (index) */
#developers {
  border-top: 1px solid var(--border);
}

.dev-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dev-content .section-sub {
  margin-bottom: 24px;
}

.dev-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.dev-link:hover {
  gap: 10px;
}

.dev-link + .dev-link {
  margin-top: 8px;
}

/* Index code block variant (with dot header) */
.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

/* Security section (index) */
#security {
  border-top: 1px solid var(--border);
}

.security-header {
  text-align: center;
  margin-bottom: 64px;
}

.security-header .section-sub {
  margin: 0 auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}


/* === PAGES: WORDPRESS === */

.wp-hero {
  padding: 180px 0 120px;
  text-align: center;
}

.wp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: 100px;
}

.wp-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.wp-hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.wp-hero h1 strong {
  font-weight: 300;
  color: var(--accent);
}

.wp-hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.wp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.wp-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--accent);
  transition: gap 0.2s;
  margin-top: 16px;
}

.wp-hero-link:hover {
  gap: 8px;
}

/* WP features */
#wp-features {
  border-top: 1px solid var(--border);
}

#wp-features .feature-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-preview {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-preview span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.feature-body {
  padding: 28px 24px;
  flex: 1;
}

.feature-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-body > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-body li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.feature-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.feature-body code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 3px;
}

/* WP how it works */
#wp-how {
  border-top: 1px solid var(--border);
}

.wp-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}

/* WP shortcodes */
#wp-shortcodes {
  border-top: 1px solid var(--border);
}

.shortcodes-header {
  text-align: center;
  margin-bottom: 64px;
}

.shortcodes-header .section-sub {
  margin: 0 auto;
}

.shortcode-group {
  margin-bottom: 64px;
}

.shortcode-group:last-child {
  margin-bottom: 0;
}

.shortcode-group h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.shortcode-group > p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
}

/* WP code blocks inherit .code-block but add margin */
.shortcode-group .code-block {
  margin-bottom: 24px;
}

/* WP FAQ (accordion) */
#wp-faq {
  border-top: 1px solid var(--border);
}

.faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.faq-header .section-sub {
  margin: 0 auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-q svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-a-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}

.faq-a-inner a {
  color: var(--accent);
}

.faq-item.open .faq-a {
  max-height: 400px;
}

/* WP download CTA */
#wp-download {
  border-top: 1px solid var(--border);
  text-align: center;
}

.download-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
  font-size: 14px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.download-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-steps .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.download-arrow {
  color: var(--text-3);
}

.download-req {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

.download-alt {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}


/* === PAGES: WORDPRESS OVERVIEW === */

#wp-plugins {
  border-top: 1px solid var(--border);
}

.plugin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plugin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.plugin-card:hover {
  border-color: var(--accent);
}

.plugin-card__header {
  margin-bottom: 0;
}

.plugin-card__name {
  font-size: 22px;
  font-weight: 500;
  color: #E8E8E8;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.plugin-card__tag {
  font-size: 14px;
  color: #888888;
  line-height: 1.5;
}

.plugin-card__divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.plugin-card__body {
  flex: 1;
}

.plugin-card__best-for {
  margin-bottom: 24px;
}

.plugin-card__best-for-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.plugin-card__best-for ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plugin-card__best-for li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.plugin-card__best-for li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.plugin-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plugin-card__features li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plugin-card__check {
  color: var(--cyan);
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.plugin-card__cta {
  margin-top: 28px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

/* Mix and match */
#wp-mix {
  border-top: 1px solid var(--border);
}

.wp-mix-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.wp-mix-content .section-title {
  margin-bottom: 20px;
}

.wp-mix-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
}

/* Feature comparison table */
#wp-compare {
  border-top: 1px solid var(--border);
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.comparison-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.comparison-table thead th:first-child {
  text-align: left;
  color: var(--text-2);
}

.comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-2);
  text-align: center;
  color: var(--text-2);
}

.comparison-table tbody td:first-child {
  text-align: left;
  color: var(--text-2);
  font-size: 14px;
}

.comparison-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table__check {
  color: var(--cyan);
  font-size: 15px;
}

.comparison-table__dash {
  color: #2A2A2A;
  font-size: 15px;
}

/* Foundation section */
#wp-foundation {
  border-top: 1px solid var(--border);
}

/* Download grid */
.wp-download-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (max-width: 868px) {
  .plugin-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .comparison-table-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }
}

@media (max-width: 550px) {
  .wp-download-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-outline {
    width: 100%;
  }
}


/* === PAGES: DEVELOPERS === */

.doc-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
}

.doc-hero .section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.doc-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.doc-hero .subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

.doc-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.doc-section h4 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--text-2);
}

.doc-section > .sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}

.doc-section p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-section ul {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-section li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}

.doc-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.doc-section a.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-section a.inline-link:hover {
  text-decoration-color: transparent;
}

/* Developer code block margin variant */
.doc-section .code-block {
  margin: 20px 0 24px;
}

.doc-section .code-header {
  background: rgba(17, 17, 17, 0.5);
}

.doc-section .code-lang {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Note callouts */
.note {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--accent-dim);
  border-radius: 0 6px 6px 0;
}

.note p {
  color: var(--text) !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
}

.note.info {
  border-left-color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
}

/* Flow diagram */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -12px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--text-3);
  border-right: 1.5px solid var(--text-3);
  transform: rotate(45deg);
}

.flow-step:last-child::after {
  display: none;
}

.flow-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
}

.flow-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-2);
}

.flow-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.flow-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Demo box */
.demo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}

.demo-box .demo-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.demo-btn {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--accent);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.15s;
}

.demo-btn:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.demo-btn:active {
  transform: translateY(0);
}

.demo-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.demo-status {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  min-height: 20px;
}

.demo-status.ok { color: var(--cyan); }
.demo-status.err { color: var(--accent); }

/* Method signature */
.method-sig {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  background: #0d0d0d;
  border: 1px solid var(--surface-2);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
  display: inline-block;
}

.method-sig .k { color: var(--accent); }
.method-sig .f { color: var(--text); }
.method-sig .t { color: var(--cyan); }

/* Returns badge */
.returns {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.returns code {
  font-size: 12px;
}

/* Developer FAQ (non-accordion) */
.doc-section .faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-2);
  border-top: none;
}

.doc-section .faq-item:last-child {
  border-bottom: none;
}

.doc-section .faq-q {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
  width: auto;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
}

.doc-section .faq-q:hover {
  color: var(--text);
}

.doc-section .faq-a {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  max-height: none;
  overflow: visible;
}


/* === PAGES: PRIVACY & TERMS (ARTICLE) === */

.article-header {
  padding: 140px 0 48px;
  border-bottom: 1px solid var(--border);
}

.article-header .section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-header .date {
  font-size: 14px;
  color: var(--text-3);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.article-body h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}

.article-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

.article-body .callout {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
}

.article-body .callout p {
  color: var(--text);
  font-size: 15px;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body a:hover {
  text-decoration-color: transparent;
}


/* === PAGES: DEMO (LIGHT THEME) === */

body.page-demo {
  --bg: #ffffff;
  --text: #111111;
  --text-2: #666666;
  --text-3: #999999;
  --accent: #FF4D6A;
  --accent-hover: #e8435d;
  --border: #f0f0f0;
  --border-2: #eee;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: visible;
}

body.page-demo a { color: inherit; text-decoration: none; }

/* Demo header */
.demo-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-name .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.powered-by {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.powered-by:hover { color: var(--text-2); }
.powered-by svg { color: var(--text-3); }

/* Demo main */
.demo-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.product-card {
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-view {
  text-align: center;
}

.crane-wrap {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}

.crane-wrap svg {
  width: 200px;
  height: 170px;
}

.product-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.product-price {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 4px;
}

.price-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 28px;
}

/* Pay button (demo) */
.pay-btn {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.pay-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(255, 77, 106, 0.25);
}

.pay-btn:active {
  transform: scale(0.97);
}

.pay-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.pay-btn svg {
  flex-shrink: 0;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status messages */
.pay-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 22px;
  transition: opacity 0.2s;
}

.pay-status.waiting {
  color: var(--text-2);
  animation: pulse-text 2s ease-in-out infinite;
}

.pay-status.error {
  color: var(--accent);
}

.pay-status.install {
  color: var(--text-2);
}

.pay-status a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-status a:hover {
  text-decoration-color: transparent;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Success view */
.success-view {
  text-align: center;
  display: none;
}

.success-view.visible {
  display: block;
  animation: fade-in 0.4s ease;
}

.product-view.hidden {
  display: none;
}

.success-crane {
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.success-crane svg {
  width: 180px;
  height: 150px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.success-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.success-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.success-tx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 24px;
}

.back-link {
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.7; }

/* Demo footer */
.demo-footer {
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid var(--border-2);
}

.demo-footer-content {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.demo-footer-content a {
  color: var(--text-3);
  transition: color 0.2s;
}

.demo-footer-content a:hover { color: var(--text-2); }
.demo-footer-content svg { color: var(--text-3); }

.demo-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* === MOBILE === */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .dev-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dev-layout > * {
    min-width: 0;
  }
}

@media (max-width: 868px) {
  section {
    padding: 80px 0;
  }

  .wp-hero {
    padding: 140px 0 80px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 400px;
    margin: 0 auto;
  }

  .security-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Mobile nav — dropdown below header */
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    gap: 0;
    padding: 8px 0;
    z-index: 200;
  }

  .nav-links.open a {
    display: block;
    padding: 16px 24px;
    color: #888888;
    font-size: 15px;
    text-align: left;
  }

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

  .nav-links.open .nav-cta {
    margin: 8px 24px 16px;
    text-align: center;
    display: block;
    padding: 12px 20px;
    width: auto;
    border-radius: 6px;
    color: var(--text) !important;
    background: var(--accent);
  }

  .mobile-toggle {
    display: block;
    z-index: 300;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    display: none;
  }

  .mobile-overlay.open {
    display: block;
  }

  /* Developer page responsive */
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .flow-step::after { display: none; }

  .doc-table { font-size: 13px; }
  .doc-table th, .doc-table td { padding: 8px 10px; }
}

@media (max-width: 550px) {
  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .wallet-frame {
    width: 260px;
  }

  .wallet-balance {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .wp-hero {
    padding: 120px 0 64px;
  }

  .wp-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .download-steps {
    flex-direction: column;
    gap: 12px;
  }

  /* Developer page */
  .doc-body { padding: 0 16px; }
  .doc-hero { padding: 120px 0 48px; }
  .doc-section { padding: 48px 0; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px -16px 24px; padding: 0 16px; }
  .doc-table { min-width: 500px; }

  /* Article pages */
  .article-body { padding: 48px 0 80px; }
  .article-header { padding: 120px 0 36px; }

  /* Demo page */
  body.page-demo .product-card {
    border: none;
    box-shadow: none;
    padding: 24px 16px;
  }

  body.page-demo .pay-btn {
    width: 100%;
  }

  body.page-demo .crane-wrap svg {
    width: 160px;
    height: 136px;
  }
}


/* === COMPONENTS: NAV DROPDOWN === */

.nav-item-has-children {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.03em;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.2s;
}

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

.nav-dropdown-toggle svg {
  transition: transform 0.2s;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 200;
  padding: 4px 0;
}

.nav-item-has-children:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-item-has-children:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #888888;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  color: #E8E8E8;
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-active {
  color: var(--text) !important;
}

/* Mobile sub-items (hidden on desktop) */
.nav-sub-items {
  display: none;
}

@media (max-width: 868px) {
  /* Hide desktop dropdown on mobile */
  .nav-dropdown {
    display: none !important;
  }

  /* Show sub-items inline on mobile when parent is open */
  .nav-links.open .nav-item-has-children {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open .nav-dropdown-toggle {
    display: flex;
    padding: 16px 24px;
    color: #888888;
    font-size: 15px;
    text-align: left;
    width: 100%;
  }

  .nav-links.open .nav-dropdown-toggle:hover {
    color: #e8e8e8;
  }

  .nav-links.open .nav-item-has-children.mobile-open .nav-sub-items {
    display: flex;
    flex-direction: column;
  }

  .nav-links.open .nav-item-has-children.mobile-open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }

  .nav-sub-item {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 14px;
    color: #888888;
    transition: color 0.15s;
  }

  .nav-sub-item:hover {
    color: #e8e8e8;
  }

  .nav-sub-item.nav-dropdown-active {
    color: var(--text) !important;
  }
}


/* === PAGES: KYOTO SHOP === */

#ks-features {
  border-top: 1px solid var(--border);
}

.ks-features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ks-feature-card {
  padding: 36px 28px;
}

.ks-feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.ks-feature-card > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

#ks-how {
  border-top: 1px solid var(--border);
}

#ks-shipping {
  border-top: 1px solid var(--border);
}

.ks-shipping-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ks-shipping-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s;
}

.ks-shipping-item:hover {
  border-color: var(--accent);
}

.ks-shipping-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.ks-shipping-item span {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

#ks-shortcodes {
  border-top: 1px solid var(--border);
}

#ks-download {
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 868px) {
  .ks-features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .ks-shipping-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .ks-shipping-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}


/* === PAGES: WOOKYOTO === */

#wk-features {
  border-top: 1px solid var(--border);
}

#wk-how {
  border-top: 1px solid var(--border);
}

#wk-buttons {
  border-top: 1px solid var(--border);
}

.wk-btn-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.wk-btn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s;
}

.wk-btn-card:hover {
  border-color: var(--accent);
}

.wk-btn-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.wk-btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
  transition: box-shadow 0.2s;
}

.wk-btn-dark {
  background: #000000;
  color: #ffffff;
  border: 1px solid #333;
}

.wk-btn-dark svg {
  color: #ffffff;
}

.wk-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.wk-btn-outline svg {
  color: var(--accent);
}

.wk-btn-minimal {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 14px 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wk-btn-minimal svg {
  color: var(--accent);
}

#wk-requirements {
  border-top: 1px solid var(--border);
}

.wk-requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.wk-req-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s;
}

.wk-req-item:hover {
  border-color: var(--accent);
}

.wk-req-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.wk-req-item span {
  font-size: 14px;
  color: var(--text-2);
}

#wk-download {
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 868px) {
  .wk-btn-preview {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .wk-requirements-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}


/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .faq-a {
    transition: none;
  }
}
