:root {
  --accent: #ff7a33;
  --accent-ink: #a34715;
  --bg: #000000;
  --surface: #121212;
  --surface-alt: #1a1a1a;
  --border: rgba(255,255,255,0.12);
  --text-title: #ffffff;
  --text-primary: #eaeaea;
  --text-secondary: #a3a3a8;
  --text-tertiary: #77777d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff8a4d; }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); border-radius: 10px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; color: var(--text-title); min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
/* Confirmed live bug: the full extension name doesn't fit next to the nav
   buttons below ~700px, and with nothing stopping it, it wrapped to 5 lines
   and physically overlapped the buttons instead of just looking cramped.
   Truncating with an ellipsis keeps the header a single line no matter the
   width; site-header's own flex-wrap below is the second line of defense. */
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-header nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.site-header nav a { text-decoration: none; color: var(--text-secondary); font-size: 14px; }
.site-header nav a:hover { color: var(--text-primary); }
.site-header .btn { height: 38px; padding: 0 16px; font-size: 13px; }

/* Hero */
.hero { max-width: 900px; margin: 0 auto; padding: 110px 24px 60px; text-align: center; }
.hero h1 { font-size: 52px; font-weight: 800; margin: 0 0 20px; color: var(--text-title); line-height: 1.15; letter-spacing: -0.01em; }
.hero .sub { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin: 0 auto; }
.btn-hero { margin-top: 32px; height: 54px; padding: 0 30px; font-size: 15px; }
.hero-note { font-size: 13px; color: var(--text-tertiary); margin-top: 14px; }

/* Features */
.features {
  max-width: 960px; margin: 0 auto; padding: 40px 24px 70px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--border);
}
.feature-title { font-size: 14.5px; font-weight: 700; color: var(--text-title); margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Pricing */
.pricing { max-width: 420px; margin: 0 auto; padding: 20px 24px 100px; }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px; text-align: center; }
.pricing-price { font-size: 44px; font-weight: 800; color: var(--text-title); }
.pricing-price span { font-size: 44px; }
.pricing-note { font-size: 12.5px; color: var(--text-tertiary); margin: 8px 0 26px; }

/* Legal pages (privacy policy, etc.) */
.legal { max-width: 680px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: 30px; font-weight: 800; color: var(--text-title); margin: 0 0 6px; }
.legal-updated { font-size: 12.5px; color: var(--text-tertiary); margin-bottom: 32px; }
.legal h2 { font-size: 17px; font-weight: 700; color: var(--text-title); margin: 32px 0 10px; }
.legal p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-tertiary);
}
.site-footer a { color: var(--text-tertiary); text-decoration: underline; }
.site-footer a:hover { color: var(--text-primary); }

/* Modal */
.modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; width: 100%; max-width: 400px;
}
.modal h2 { margin: 0 0 10px; font-size: 20px; color: var(--text-title); }
.modal-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 20px; }
.modal-close { all: unset; position: absolute; top: 18px; right: 18px; cursor: pointer; color: var(--text-tertiary); font-size: 20px; line-height: 1; }
.modal-requirement {
  font-size: 12px; font-weight: 600; color: var(--accent-ink); background: rgba(255,122,51,0.12);
  border: 1px solid rgba(255,122,51,0.3); border-radius: 8px; padding: 8px 10px; margin-bottom: 18px; line-height: 1.5;
}
.install-steps { font-size: 13.5px; color: var(--text-secondary); padding-left: 20px; margin: 0 0 22px; }
.install-steps li { margin-bottom: 6px; }
.install-steps code { background: var(--surface-alt); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.connection-code-box {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 10px;
}
.connection-code-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 8px; }
.connection-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-primary);
  word-break: break-all; line-height: 1.5; margin-bottom: 10px;
}
.connection-code-note { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 20px; }
#download-mobile-content { display: none; }
.modal-link-box {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; color: var(--text-primary); margin-bottom: 14px; text-align: center;
}

@media (max-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-header nav a { display: none; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero { padding-top: 90px; }
  /* Confirmed live bug (round 2): the full brand name has nowhere to go
     next to two pill buttons at this width -- it either truncated to "W.."
     or, when hidden outright, dropped the name entirely, which reads as
     broken/unbranded on mobile. Fix: wrap the nav to its own row below the
     logo/name instead of fighting them for the same line -- the name gets
     the full viewport width to itself, buttons get their own row under it. */
  .site-header { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .brand span { white-space: normal; overflow: visible; text-overflow: clip; font-size: 15px; }
  .site-header nav { flex-basis: 100%; justify-content: flex-end; gap: 10px; }
  .site-header .btn { padding: 0 14px; font-size: 12.5px; }
  /* Confirmed live bug: "© Clipbait.ai" and "...By Clipbait.ai" sat right
     next to each other with no wrap room, reading as one run-on line
     ("Clipbait.aiClipbait.ai"). Stacking removes the collision entirely. */
  .site-footer { flex-direction: column; gap: 6px; text-align: center; padding: 20px 16px; }
}
