/* ==========================================================================
   PageScope SEO by DexLabs — Flagship Dark-Craft SaaS Stylesheet
   Palette: Deep Obsidian (#09090b), Zinc (#111115 / #18181b),
            Emerald (#10b981 / #34d399) + Teal (#14b8a6 / #2dd4bf)
   ========================================================================== */

:root {
  --bg-canvas: #09090b;
  --bg-surface: #111115;
  --bg-elevated: #18181b;
  --bg-card-hover: #1c1c21;
  --bg-glass: rgba(9, 9, 11, 0.78);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(16, 185, 129, 0.38);

  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.16);
  --teal: #14b8a6;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(20, 184, 166, 0.16);
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --rose: #ef4444;
  --rose-light: #f87171;

  --brand-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-elevated: 0 24px 64px -16px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

/* Ambient Background Glow & Subtle Grid */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-backdrop::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 1100px;
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 52% 48% at 38% 36%, rgba(16, 185, 129, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 48% at 66% 42%, rgba(20, 184, 166, 0.15), transparent 70%);
  filter: blur(42px);
  animation: ambientDrift 14s ease-in-out infinite alternate;
}

.ambient-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 15%, #000 30%, transparent 100%);
}

@keyframes ambientDrift {
  0% {
    transform: translateX(-52%) translateY(0) scale(1);
  }
  100% {
    transform: translateX(-48%) translateY(22px) scale(1.06);
  }
}

/* Layout Containers */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.section {
  padding: 92px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald-light);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 10px var(--emerald);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.16;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.04rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Sticky Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 800;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

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

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: #0d0d11;
  padding: 16px 24px 22px;
}

.mobile-drawer.is-open {
  display: grid;
  gap: 12px;
}

.mobile-drawer a {
  padding: 8px 4px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 0.96rem;
  border-radius: 11px;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 72px 0 88px;
}

.hero-center {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.hero-pill-emerald {
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-light);
}

.hero-pill-blue {
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-light);
}

.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 730px;
  margin: 0 auto 30px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-microcopy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.specs-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto 54px;
}

.spec-item {
  background: rgba(17, 17, 21, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--emerald-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   INTERACTIVE LIVE PAGESCOPE SEO + PAGE X-RAY SIMULATOR
   ========================================================================== */
.simulator-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.sim-browser-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #0c0c10;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sim-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #27272a;
}

.sim-dot:nth-child(1) { background: #ef4444; }
.sim-dot:nth-child(2) { background: #f59e0b; }
.sim-dot:nth-child(3) { background: #10b981; }

.sim-url-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-url-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sim-url-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #141419;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.16s ease;
}

.sim-url-btn:hover {
  border-color: var(--border-medium);
  color: #ffffff;
}

.sim-url-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-light);
}

.sim-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--teal-light);
}

/* Quick X-Ray Bar inside Simulator */
.sim-xray-quickbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: #101016;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-xray-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sim-xray-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xray-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #18181f;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.xray-chip:hover {
  border-color: var(--border-medium);
  color: #fff;
}

.xray-chip.is-active[data-xray-key="nofollow"] {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--amber-light);
}

.xray-chip.is-active[data-xray-key="headings"] {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
  color: var(--emerald-light);
}

.xray-chip.is-active[data-xray-key="missingAlt"] {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.55);
  color: var(--rose-light);
}

.xray-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-amber { background: var(--amber); }
.dot-emerald { background: var(--emerald); }
.dot-rose { background: var(--rose); }
.dot-blue { background: var(--teal); }

.xray-clear-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.xray-clear-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
}

/* Split Viewport: Webpage Left + Side Panel Right */
.sim-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 510px;
}

/* Simulated Host Webpage */
.sim-webpage {
  padding: 26px 28px;
  background: #0d0e13;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.sim-page-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-dom-node {
  position: relative;
  border-radius: 8px;
  transition: outline-color 0.16s ease, background-color 0.16s ease;
}

.sim-xray-tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 7px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* Live Non-Destructive X-Ray States (Zero Layout Shift via outline) */
.sim-webpage.xray-headings-on [data-sim-heading] {
  outline: 1.5px dashed rgba(16, 185, 129, 0.78);
  outline-offset: 4px;
  background: rgba(16, 185, 129, 0.05);
}

.sim-webpage.xray-headings-on [data-sim-heading].sim-heading-warn {
  outline-color: rgba(245, 158, 11, 0.85);
  background: rgba(245, 158, 11, 0.06);
}

.sim-webpage.xray-headings-on [data-sim-heading] > .sim-xray-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.sim-webpage.xray-headings-on [data-sim-heading].sim-heading-warn > .sim-xray-tag {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.5);
}

.sim-webpage.xray-nofollow-on [data-sim-nofollow] {
  outline: 1.5px dashed rgba(245, 158, 11, 0.9);
  outline-offset: 3px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 4px;
}

.sim-webpage.xray-nofollow-on [data-sim-nofollow] > .sim-xray-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.24);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.sim-webpage.xray-alt-on [data-sim-missing-alt] {
  outline: 2px dashed rgba(239, 68, 68, 0.92);
  outline-offset: 3px;
  background: rgba(239, 68, 68, 0.09);
}

.sim-webpage.xray-alt-on [data-sim-missing-alt] .sim-xray-tag {
  display: inline-block;
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.55);
}

.sim-h1 {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
}

.sim-p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sim-h2 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f4f4f5;
  margin-top: 4px;
}

.sim-h3 {
  font-size: 0.95rem;
  font-weight: 650;
  color: #e4e4e7;
}

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

.sim-mini-card {
  background: #14161f;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 13px 14px;
  display: grid;
  gap: 7px;
}

.sim-img-box {
  height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.sim-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  padding-top: 6px;
}

.sim-link {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Simulated Right-Hand Side Panel */
.sim-sidepanel {
  background: #121318;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-sp-top {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: #15161d;
}

.sim-sp-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sim-sp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.sim-sp-pro {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sim-score-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #0e0f14;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}

.sim-ring-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.sim-ring-svg {
  width: 58px;
  height: 58px;
  transform: rotate(-90deg);
}

.sim-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.sim-ring-arc {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 150.8;
  stroke-dashoffset: 9;
  transition: stroke-dashoffset 0.45s ease, stroke 0.3s ease;
}

.sim-ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--emerald-light);
}

.sim-vitals {
  min-width: 0;
  flex: 1;
}

.sim-vitals-url {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.sim-vitals-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mini-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.mini-badge-pass {
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-light);
}

.mini-badge-warn {
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber-light);
}

.mini-badge-fail {
  background: rgba(239, 68, 68, 0.18);
  color: var(--rose-light);
}

.mini-badge-blue {
  background: rgba(20, 184, 166, 0.18);
  color: var(--teal-light);
}

/* Side Panel Tabs */
.sim-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border-subtle);
  background: #14151c;
}

.sim-tab-btn {
  padding: 9px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sim-tab-btn:hover {
  color: var(--text-primary);
}

.sim-tab-btn.active {
  color: var(--emerald-light);
  border-bottom-color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}

.sim-sp-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.79rem;
}

.sim-panel-card {
  background: #181922;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.sim-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-meter {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sim-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.sim-tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
}

.sim-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.sim-sp-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 11px 16px;
  border-top: 1px solid var(--border-subtle);
  background: #0f1015;
}

.sim-export-btn {
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #191b24;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-export-btn:hover {
  border-color: var(--emerald);
  color: #fff;
}

.sim-export-featured {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald-light);
}

/* ==========================================================================
   BENTO GRID FEATURE SHOWCASE (Cursor Spotlight)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  grid-column: span 4;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.bento-card-wide {
  grid-column: span 6;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mouse-x) var(--mouse-y),
    rgba(16, 185, 129, 0.11),
    rgba(20, 184, 166, 0.05) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--emerald-light);
  display: grid;
  place-items: center;
}

.bento-icon-blue {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--teal-light);
}

.bento-title {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.bento-tags {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   HOW IT WORKS (3-STEP FLOW)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  display: grid;
  gap: 12px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-light);
}

.step-card h3 {
  font-size: 1.12rem;
  font-weight: 750;
  color: #ffffff;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.trial-banner {
  max-width: 880px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 90% at 10% 50%, rgba(16, 185, 129, 0.14), transparent 70%), var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.34);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trial-banner-text strong {
  color: var(--emerald-light);
}

.pricing-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.price-card-featured {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 17, 21, 0.98) 42%);
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow: 0 20px 55px -18px rgba(16, 185, 129, 0.25);
}

.price-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-plan-name {
  font-size: 1.18rem;
  font-weight: 750;
  color: #ffffff;
}

.save-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: var(--emerald-light);
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount {
  font-size: 2.85rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.price-period {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-subnote {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-icon {
  color: var(--emerald-light);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-trust-bar {
  max-width: 880px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.faq-item.is-open {
  border-color: rgba(16, 185, 129, 0.36);
}

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.22s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--emerald-light);
}

.faq-panel {
  display: none;
  padding: 0 22px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ==========================================================================
   DEDICATED SUPPORT SECTION
   ========================================================================== */
.support-card {
  max-width: 880px;
  margin: 0 auto;
  background: radial-gradient(ellipse 65% 80% at 90% 10%, rgba(20, 184, 166, 0.14), transparent 70%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 38px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-meta {
  max-width: 520px;
  display: grid;
  gap: 10px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   LEGAL PAGES LAYOUT (Sticky Sidebar TOC + Prose)
   ========================================================================== */
.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  padding: 44px 0 88px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 94px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-toc-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.legal-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc-list a:hover,
.legal-toc-list a.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-summary-card {
  background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(16, 185, 129, 0.14), transparent 70%), var(--bg-surface);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: grid;
  gap: 10px;
}

.legal-summary-card h2 {
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--emerald-light);
}

.legal-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  gap: 14px;
  scroll-margin-top: 94px;
}

.legal-section h2 {
  font-size: 1.26rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.legal-section h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f4f4f5;
  margin-top: 6px;
}

.legal-section p,
.legal-section li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-section code {
  font-size: 0.84em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--emerald-light);
}

.inline-link {
  color: var(--emerald-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.inline-link:hover {
  color: #6ee7b7;
}

.table-scroll {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

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

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

.jurisdiction-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.jurisdiction-box h3 {
  margin-top: 0;
  font-size: 0.98rem;
  color: var(--emerald-light);
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: #070709;
  padding: 52px 0 40px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-col {
  max-width: 380px;
  display: grid;
  gap: 10px;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

/* Toast Notification */
.site-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: #18181f;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (375px to 1440px+)
   ========================================================================== */
@media (max-width: 1024px) {
  .sim-split {
    grid-template-columns: 1fr;
  }
  .sim-webpage {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .bento-card,
  .bento-card-wide {
    grid-column: span 6;
  }
  .specs-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .steps-grid,
  .pricing-grid,
  .jurisdiction-grid {
    grid-template-columns: 1fr;
  }
  .bento-card,
  .bento-card-wide {
    grid-column: span 12;
  }
  .support-card {
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 68px 0;
  }
  .hero-section {
    padding: 48px 0 64px;
  }
  .specs-strip,
  .sim-cards-row {
    grid-template-columns: 1fr;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .legal-section {
    padding: 22px 18px;
  }
  .price-card {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ambient-backdrop::before {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .bento-card,
  .sim-ring-arc {
    transition: none;
  }
}
