:root {
  --bg: #0b0c10;
  --bg-alt: #11131a;
  --surface: #161923;
  --surface-hover: #1c202d;
  --ink: #f3f1ec;
  --ink-muted: #a6a298;
  --accent: #e0a558;
  --accent-hover: #edb66c;
  --accent-ink: #111217;
  --teal: #52c4b8;
  --border: rgba(243, 241, 236, 0.11);
  --border-accent: rgba(224, 165, 88, 0.34);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--ink-muted); font-size: 14px; font-weight: 600; transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu { display: none; position: relative; }
.mobile-toggle {
  list-style: none; cursor: pointer; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.mobile-toggle::-webkit-details-marker { display: none; }
.mobile-drawer {
  position: absolute; right: 0; top: 48px; width: 240px;
  background: var(--surface); border: 1px solid var(--border-accent);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 10px; z-index: 60;
}
.mobile-link { color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.mobile-link:hover { background: var(--surface-hover); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.12s;
  text-align: center;
}
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-accent); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--ink); border-color: var(--accent); }

/* Typography */
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 12px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 44px; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.hero-lead, .section-lead { font-size: 17px; color: var(--ink-muted); max-width: 66ch; }
.sub-heading { font-size: 22px; margin-bottom: 18px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-foot-link { margin-top: 28px; text-align: center; }

/* Home Hero Studio */
.hero-studio { padding: 40px 0 48px; }
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 36px; align-items: start;
}
.quick-studio-box {
  margin: 22px 0; padding: 20px;
  background: var(--surface); border: 1px solid var(--border-accent);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.studio-label { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.studio-textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  resize: vertical;
}
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip-btn {
  background: var(--bg-alt); color: var(--ink-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip-btn:hover, .chip-btn.is-active { border-color: var(--accent); color: var(--ink); background: var(--surface-hover); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.studio-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); }

.spec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.spec-pill {
  font-size: 12px; font-weight: 600; color: var(--teal);
  background: rgba(82, 196, 184, 0.1); border: 1px solid rgba(82, 196, 184, 0.25);
  padding: 4px 10px; border-radius: 999px;
}

/* Contact sheet frame (viewfinder motif) */
.sheet-frame {
  position: relative; background: var(--surface);
  border: 1px solid var(--border-accent); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.sheet-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-muted);
}
.sheet-tag { color: var(--accent); }
.contact-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mosaic-cell {
  margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4/5;
  background: var(--bg); border: 1px solid var(--border);
}
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; }

.metrics-strip {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding-top: 28px; border-top: 1px solid var(--border);
}
.metric-item { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.metric-eyebrow { display: block; font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-val { display: block; font-family: var(--font-display); font-size: 28px; color: var(--accent); margin: 4px 0 6px; }
.metric-desc { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* Filter & Showcase */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-tab {
  min-height: 38px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-muted); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.filter-tab.is-active, .filter-tab:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.showcase-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.showcase-card[hidden] { display: none; }
.showcase-media { position: relative; aspect-ratio: 4/5; background: var(--bg); overflow: hidden; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(11, 12, 16, 0.85); color: var(--accent);
  border: 1px solid var(--border-accent); padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-transform: capitalize;
}
.showcase-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.showcase-body h3 { font-size: 18px; margin: 0; }
.showcase-body p { font-size: 14px; color: var(--ink-muted); margin: 0; }
.prompt-snippet {
  margin-top: auto; padding: 12px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; flex-direction: column; gap: 8px;
}
.prompt-snippet code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink); line-height: 1.5; word-break: break-word; }
.copy-btn {
  align-self: flex-start; min-height: 32px; padding: 4px 12px; border-radius: 6px;
  background: var(--surface-hover); color: var(--accent); border: 1px solid var(--border-accent);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: var(--accent); color: var(--accent-ink); }

/* Numbered Features */
.numbered-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.numbered-item {
  display: flex; gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.num-index {
  flex: 0 0 auto; font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--accent); line-height: 1.2;
}
.num-content h3 { font-size: 18px; margin: 0 0 6px; }
.num-content p { font-size: 15px; color: var(--ink-muted); margin: 0; }

/* Hub Cards */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hub-card {
  display: block; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.hub-card:hover { border-color: var(--accent); background: var(--surface-hover); color: var(--ink); }
.hub-cat { display: block; font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.hub-card h3 { font-size: 18px; margin: 0 0 6px; }
.hub-card p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* Page Hero & Inner */
.page-hero { padding: 36px 0 40px; }
.page-hero-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center; }
.page-hero-layout:has(> :only-child) { grid-template-columns: 1fr; }
.hero-mini-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  position: relative; padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.pricing-card[hidden] { display: none; }
.pricing-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge {
  align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
}
.plan-desc, .plan-tip { font-size: 14px; color: var(--ink-muted); }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.plan-price { font-family: var(--font-display); font-size: 34px; color: var(--ink); }
.plan-unit { color: var(--ink-muted); font-size: 14px; }
.plan-orig { color: var(--ink-muted); text-decoration: line-through; font-size: 15px; }
.plan-features { list-style: none; padding: 0; margin: 12px 0 22px; flex: 1; }
.plan-features li { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.plan-features li:last-child { border-bottom: none; }

/* Verdict Comparison */
.two-col-verdict { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.verdict-card { padding: 24px; background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius); }
.verdict-card p { color: var(--ink-muted); margin: 0; }

/* Tool Workspace */
.tool-workspace {
  margin-top: 24px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border-accent);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.tool-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.tool-field { margin-bottom: 16px; }
.tool-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.tool-input, .tool-select, .tool-textarea {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-family: var(--font-body); font-size: 15px;
}
.tool-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-output-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.tool-output-pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  line-height: 1.6; color: var(--ink); background: var(--bg-alt);
  padding: 12px; border-radius: 8px; border: 1px solid var(--border);
}
.tool-status { font-size: 13px; color: var(--teal); min-height: 20px; }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 32px; font-size: 26px; }
.prose h3 { margin-top: 24px; font-size: 20px; }
.prose p, .prose li { color: var(--ink-muted); font-size: 16px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; overflow-x: auto; font-size: 13px; color: var(--ink);
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--accent); }
.prose pre code { color: var(--ink); }
.prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface); color: var(--ink); }
.prose td { color: var(--ink-muted); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; }
.post-date, .post-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; display: flex; gap: 8px; }
.post-body h2 { font-size: 22px; margin-bottom: 8px; }
.post-body h2 a { color: var(--ink); }
.post-body h2 a:hover { color: var(--accent); }
.read-more { font-weight: 600; font-size: 14px; }
.article-cover { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-answer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 15px; }
.faq-answer p { margin: 0; }

/* Related & CTA */
.related-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related-strip.centered { justify-content: center; margin-top: 24px; }
.related-pill {
  padding: 8px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--ink); font-size: 14px; font-weight: 600;
}
.related-pill:hover { border-color: var(--accent); color: var(--accent); }

.cta-band { background: var(--bg-alt); border-top: 1px solid var(--border-accent); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .section-lead { text-align: center; }

/* Footer */
.site-footer { padding: 48px 0 32px; background: #08090d; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.footer-desc { font-size: 14px; color: var(--ink-muted); margin-top: 10px; max-width: 34ch; }
.footer-contact { font-size: 14px; color: var(--ink-muted); }
.footer-heading { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-muted);
}
.footer-legal-inline { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal-inline a { color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero-grid, .page-hero-layout, .tool-grid { grid-template-columns: 1fr; }
  .showcase-grid, .hub-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .main-nav, .header-actions > .btn-primary { display: none; }
  .mobile-menu { display: block; }
  .metrics-strip, .showcase-grid, .numbered-list, .hub-grid, .pricing-grid, .two-col-verdict, .post-grid, .footer-grid, .tool-row-2 {
    grid-template-columns: 1fr;
  }
  .hero-cta-row .btn { width: 100%; }
}

/* Prompt code-block toolbar & copy toast */
.prose-code-wrap { margin: 18px 0; }
.prose-code-wrap pre { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.code-actions {
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.code-action-btn {
  display: inline-flex; align-items: center; padding: 5px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; text-decoration: none;
}
.code-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.code-action-btn.is-accent { background: var(--accent); color: #14161e; border-color: var(--accent); }
.code-action-btn.is-accent:hover { opacity: 0.9; color: #14161e; }
.gf-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 16px);
  padding: 10px 18px; border-radius: 8px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--accent); font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease; z-index: 999; max-width: 92vw; text-align: center;
}
.gf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Core Web Vitals: defer below-fold layout & paint */
.section { content-visibility: auto; contain-intrinsic-size: auto 520px; }
