/* ═══════════════════════════════════════════════════
   WHMCS Assistant — Product Landing Page
   Design: "Precision Command Center"
   ═══════════════════════════════════════════════════ */

:root {
  --brand: #0078d4;
  --brand-light: #4da6ff;
  --brand-glow: rgba(0, 120, 212, 0.15);
  --brand-dark: #005a9e;
  --surface-dark: #0a0e17;
  --surface-darker: #060a12;
  --surface-light: #ffffff;
  --surface-off: #f6f8fb;
  --surface-muted: #edf0f5;
  --text-dark: #0d1117;
  --text-body: #3d4752;
  --text-muted: #6b7685;
  --text-on-dark: #e6edf5;
  --text-on-dark-muted: #8899aa;
  --border: #dce3eb;
  --border-dark: #1c2536;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --max-w: 1140px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Section scaffolding ── */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-glow);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 120, 212, 0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
  padding: 11px 24px;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════ NAV ═══════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo-icon {
  display: flex;
  width: 28px;
  height: 28px;
  color: var(--brand-light);
}
.nav-logo-icon svg { width: 100%; height: 100%; }

.nav-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo-accent { color: var(--brand-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-link-github {
  margin-left: auto;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.nav-link-github:hover { opacity: 1; }

.nav-cta {
  padding: 8px 18px;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--brand-dark); }

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  background: var(--surface-dark);
  padding: 140px 24px 60px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 400px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--brand-glow), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--brand-light) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.hero-meta-item svg { color: var(--green); }

/* ── Browser mockup ── */

.hero-browser {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px var(--brand-glow);
  animation: float-up 0.8s ease-out both;
  animation-delay: 0.3s;
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.browser-chrome {
  background: #1a1f2e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-dark);
}

.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d3446;
}
.browser-dots span:first-child { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-tab {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 4px;
}

.browser-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4a5568;
  margin-left: auto;
}

.browser-body {
  display: flex;
  height: 340px;
  background: #0d1117;
}

.browser-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 30px,
    rgba(255, 255, 255, 0.015) 30px,
    rgba(255, 255, 255, 0.015) 31px
  );
}

.browser-placeholder-text {
  color: #2d3446;
  font-size: 16px;
  font-weight: 500;
}

.browser-sidebar {
  width: 300px;
  border-left: 1px solid var(--border-dark);
  background: #111827;
  overflow: hidden;
}

/* ── Sidebar mock ── */

.sidebar-mock { height: 100%; display: flex; flex-direction: column; }

.sidebar-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-dark);
}

.sidebar-logo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sidebar-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 11px;
}
.sidebar-tabs span {
  padding: 8px 12px;
  color: #6b7685;
  flex: 1;
  text-align: center;
}
.sidebar-tabs span.active {
  color: var(--brand-light);
  border-bottom: 2px solid var(--brand);
  background: rgba(0, 120, 212, 0.06);
}
.sidebar-tabs b {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 10px;
  margin-left: 3px;
}

.sidebar-ticket {
  display: flex;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 10px;
  animation: ticket-slide 0.5s ease-out both;
}
.sidebar-ticket:nth-child(3) { animation-delay: 0.5s; }
.sidebar-ticket:nth-child(4) { animation-delay: 0.7s; }
.sidebar-ticket:nth-child(5) { animation-delay: 0.9s; }

@keyframes ticket-slide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.sidebar-ticket-bar {
  width: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-ticket-content { flex: 1; min-width: 0; }

.sidebar-ticket-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-on-dark-muted);
}

.sidebar-ticket-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sidebar-ticket-badge.open { background: rgba(0, 120, 212, 0.2); color: var(--brand-light); }
.sidebar-ticket-badge.answered { background: rgba(34, 197, 94, 0.15); color: #6ee7a0; }
.sidebar-ticket-badge.urgent { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.sidebar-ticket-subject {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-ticket-meta {
  font-size: 10px;
  color: #6b7685;
  margin-top: 2px;
}

/* ═══════════════ FEATURES ═══════════════ */

.features {
  padding: 100px 24px;
  background: var(--surface-light);
}

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

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px var(--brand-glow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-glow);
  color: var(--brand);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

.feature-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-glow);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ── Shortcuts callout ── */

.shortcuts-callout {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.shortcuts-text h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.shortcuts-text p {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.6;
}

kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  min-width: 24px;
  text-align: center;
}

.shortcuts-keys {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.key-demo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
}

/* ═══════════════ SCREENSHOTS ═══════════════ */

.screenshots {
  padding: 80px 24px;
  background: var(--surface-off);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: var(--surface-muted);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.screenshot-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.screenshot-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 240px;
}

/* ═══════════════ PRICING ═══════════════ */

.pricing {
  padding: 100px 24px;
  background: var(--surface-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 4px 32px var(--brand-glow);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 4px 16px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

.pricing-card-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.pricing-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-body);
}
.pricing-features li svg { color: var(--green); flex-shrink: 0; }

.pricing-features .included-all {
  font-weight: 600;
  color: var(--text-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

/* ═══════════════ FAQ ═══════════════ */

.faq {
  padding: 100px 24px;
  background: var(--surface-off);
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--brand); }

.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--surface-off); }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

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

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer a { color: var(--brand); }

/* ═══════════════ CTA ═══════════════ */

.cta {
  padding: 80px 24px;
  background: var(--surface-dark);
  text-align: center;
}

.cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ═══════════════ FOOTER ═══════════════ */

.footer {
  background: var(--surface-darker);
  padding: 60px 24px 0;
  color: var(--text-on-dark-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1;
  min-width: 240px;
}

.footer-brand .nav-logo-icon { color: var(--brand-light); }
.footer-brand .nav-logo-text { color: #fff; }

.footer-tagline {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 8px;
}

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

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  padding: 4px 0;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

/* ═══════════════ FEATURES PAGE ═══════════════ */

.features-hero {
  padding: 140px 24px 60px;
  background: var(--surface-dark);
  text-align: center;
}

.features-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.features-hero-sub {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  margin-top: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.features-page {
  background: var(--surface-light);
}

.feature-section {
  padding: 80px 24px;
}

.feature-section.alt {
  background: var(--surface-off);
}

.feature-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.feature-section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.feature-section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-detail-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 760px;
}

.feature-detail {
  position: relative;
  padding: 24px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-section.alt .feature-detail {
  background: #fff;
}

.feature-detail:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px var(--brand-glow);
  transform: translateY(-2px);
}

.feature-detail h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

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

.feature-detail kbd {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.feature-tier {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #764ba2;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border: 1px solid rgba(118, 75, 162, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .features-hero { padding-top: 100px; }
  .feature-section { padding: 48px 16px; }
  .feature-detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ LEGAL PAGES ═══════════════ */

.legal-page {
  padding: 120px 24px 80px;
  background: var(--surface-light);
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-page li { margin-bottom: 4px; }

.legal-page code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

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

.legal-table th {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--surface-off);
}

.legal-table td { color: var(--text-body); }
.legal-table td:first-child { white-space: nowrap; }

.legal-entity {
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Changelog-specific */
.changelog-entry { margin-bottom: 48px; }

.changelog-entry h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.changelog-date {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.changelog-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

.tag-new { background: rgba(0, 120, 212, 0.1); color: var(--brand); }
.tag-improved { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.tag-fixed { background: rgba(239, 68, 68, 0.1); color: var(--red); }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 100px; min-height: auto; }
  .browser-sidebar { width: 220px; }
  .shortcuts-callout { flex-direction: column; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}

/* ═══════════════ SCROLL ANIMATIONS ═══════════════ */

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }
.feature-card:nth-child(7) { transition-delay: 0.3s; }
.feature-card:nth-child(8) { transition-delay: 0.35s; }

.nav.scrolled {
  background: rgba(10, 14, 23, 0.95);
}

@media (max-width: 480px) {
  .hero-browser { display: none; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; }
  .btn { padding: 10px 20px; font-size: 14px; }
}
