/* localize.today — Dark theme base */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --border: #1e1e2e;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #7eaaff;
  --accent-dim: rgba(126, 170, 255, 0.15);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.15);
  --orange: #fb923c;
  --red: #f87171;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

nav .logo img {
  height: 28px;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

nav .nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

nav .nav-cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

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

.hero h1 .accent { color: var(--accent); }

.hero .subline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero .terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.terminal-dot:nth-child(1) { background: #f87171; }
.terminal-dot:nth-child(2) { background: #fb923c; }
.terminal-dot:nth-child(3) { background: #4ade80; }

.terminal[role="button"] {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.terminal[role="button"]:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.terminal-copy-label {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--font);
  transition: color 0.2s;
}

.terminal[role="button"]:hover .terminal-copy-label {
  color: var(--accent);
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.terminal-body .comment { color: var(--text-dim); }
.terminal-body .tag { color: var(--accent); }
.terminal-body .attr { color: var(--green); }
.terminal-body .str { color: var(--orange); }

/* ─── Section base ─────────────────────────────────── */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

section .section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ─── How It Works ─────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Live Demo ────────────────────────────────────── */
.demo-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.demo-area h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.demo-area p {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.demo-tab:hover { border-color: var(--accent); color: var(--text); }
.demo-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.demo-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── Configure Section ──────────────────────────── */
.configure-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.config-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.config-group {
  margin-bottom: 20px;
}

.config-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.config-group .lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lang-chip {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-chip:hover { border-color: var(--accent); color: var(--text); }
.lang-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.toggle-row span {
  font-size: 14px;
}

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.code-output {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

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

.code-header span {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.copy-btn {
  background: var(--accent-dim);
  color: var(--accent);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.copy-btn:hover { opacity: 0.8; }

.code-block {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--text-muted);
}

.code-block .tag { color: var(--accent); }
.code-block .attr { color: var(--green); }
.code-block .str { color: var(--orange); }
.code-block .comment { color: var(--text-dim); }

/* ─── Widget Preview ───────────────────────────────── */
.widget-preview-frame {
  background: #0e0e16;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.widget-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.widget-preview-url {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.widget-preview-body {
  padding: 32px 28px;
  position: relative;
  min-height: 220px;
}

.widget-preview-body h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.widget-preview-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.wp-text {
  transition: opacity 0.3s;
}

.wp-text.translating {
  opacity: 0.4;
}

/* Replica widget — matches client/skylokal.js styles */
.wp-widget {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

.wp-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1a1a2e;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.wp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.wp-btn svg:first-child {
  width: 22px;
  height: 22px;
}

.wp-progress-ring {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.wp-progress-ring circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.6s, opacity 0.2s;
  opacity: 0;
}

.wp-progress-ring.active circle {
  stroke-dashoffset: 0;
  opacity: 1;
}

.wp-menu {
  position: absolute;
  bottom: 52px;
  right: 0;
  background: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  min-width: 150px;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.wp-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wp-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: #ccc;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  font-family: var(--font);
}

.wp-menu-item:hover {
  background: #2a2a4e;
  color: #fff;
}

.wp-menu-item.active {
  color: var(--accent);
  font-weight: 600;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

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

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Pricing ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s;
}

.price-card.featured {
  border-color: var(--accent);
}

.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.price-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 4px;
}

.price-amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
}

.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
}

.price-features li::before {
  content: '\2713';
  color: var(--green);
  margin-right: 8px;
  font-weight: 700;
}

.price-features li.no::before {
  content: '\2717';
  color: var(--text-dim);
}

.price-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
  transition: all 0.2s;
}

.price-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.price-card.featured .price-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.price-card.featured .price-btn:hover { opacity: 0.9; }

/* ─── Comparison Table ─────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 900px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td:first-child {
  color: var(--text-muted);
}

.compare-table .yes { color: var(--green); }
.compare-table .no { color: var(--text-dim); }
.compare-table .highlight { color: var(--accent); font-weight: 600; }

/* ─── FAQ ──────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-item summary {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

/* ─── Footer ───────────────────────────────────────── */
footer {
  padding: 60px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.footer-links li {
  margin-bottom: 8px;
  break-inside: avoid;
}

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

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

.footer-col:last-child .footer-links {
  columns: 1;
}

footer .footer-credit {
  color: var(--text-dim);
  font-size: 13px;
}

footer .footer-credit a { color: var(--text-muted); }
footer .footer-credit a:hover { color: var(--text); }
footer .easter-egg { text-decoration: none; }

/* ─── Prose Content (legal, about) ────────────────── */
.prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.prose > * + * {
  margin-top: 1.25em;
}

.prose h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.25em;
}

.prose p {
  margin-bottom: 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(126, 170, 255, 0.4);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--accent);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  list-style: none;
  padding: 0;
}

.prose ul li {
  padding: 3px 0 3px 1.5em;
  position: relative;
}

.prose ul li::before {
  content: '\2022';
  color: var(--text-dim);
  position: absolute;
  left: 0.25em;
}

.prose code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ─── Glow Background ─────────────────────────────── */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .steps-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .configure-grid {
    grid-template-columns: 1fr;
  }

  nav .nav-links { display: none; }

  .footer-nav {
    flex-direction: column;
    gap: 32px;
    text-align: left;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
  }
}
