/* ============================================================
   LINUS-AI Marketing Website — style.css
   Production-quality dark theme
   ============================================================ */


/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --bg:          #0a0f1a;
  --surface:     #0f1623;
  --surface2:    #151e2d;
  --border:      #1e2d42;
  --accent:      #38bdf8;
  --accent2:     #818cf8;
  --green:       #34d399;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;
  --red:         #f87171;
  --yellow:      #fbbf24;

  --font:        'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

button { font-family: var(--font); }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu ul a:hover { color: var(--text); }

.mobile-menu .mobile-cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

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

.btn-ghost:hover { color: var(--text); }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover { filter: brightness(1.1); }

.btn-success {
  background: var(--green);
  color: #000;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0;
  letter-spacing: -1.5px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.badge-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
}

.badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ── Section ─────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 12px 0 56px;
  max-width: 600px;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

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

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

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), var(--surface));
}

.plan-card.featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.12);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 8px 0 4px;
  color: var(--text);
  line-height: 1;
}

.plan-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 600;
}

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

.plan-or {
  font-size: 12px;
  color: var(--text-dim);
  margin: 6px 0;
}

.plan-annual {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.plan-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li.na {
  color: var(--text-dim);
}

.plan-features li.na::before {
  content: "—";
  color: var(--text-dim);
}

/* ── Plan Switcher ───────────────────────────────────────── */
.plan-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 8px;
}

.plan-switcher button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-switcher button.active {
  background: var(--accent);
  color: #000;
}

.switcher-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.save-badge {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ── Download Grid ───────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.08);
}

.dl-card.highlighted {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), var(--surface));
}

.dl-os {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.dl-name {
  font-weight: 700;
  font-size: 15px;
}

.dl-arch {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dl-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dl-size {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Docs Grid ───────────────────────────────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.doc-card::after {
  content: "→";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  transition: all 0.2s;
  color: var(--accent);
  font-size: 18px;
}

.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

.doc-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.doc-icon {
  font-size: 32px;
  line-height: 1;
}

.doc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

/* ── Terminal ────────────────────────────────────────────── */
.terminal {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  align-items: center;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red   { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
  font-family: var(--font);
}

.prompt { color: var(--green); }
.cmd    { color: var(--text); }
.out    { color: var(--text-muted); }
.out-accent { color: var(--accent); }
.out-dim    { color: var(--text-dim); }

/* Copy button for terminal */
.terminal-copy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Activation Box ──────────────────────────────────────── */
.activation-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.activation-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.activation-box .box-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input[readonly] {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

.input-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  font-size: 13px;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--yellow);
}

.alert-info {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-block;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--text); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 720px; }

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

.faq-q {
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 15px;
  user-select: none;
  transition: color 0.2s;
}

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

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.faq-item.open .faq-q .faq-icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 20px;
}

/* ── Table ───────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  font-weight: 700;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(56, 189, 248, 0.02); }

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
  color: var(--green);
}

.tag-purple {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.2);
  color: var(--accent2);
}

.tag-yellow {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
  color: var(--yellow);
}

/* ── Typography Utilities ────────────────────────────────── */
.highlight { color: var(--accent); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

code {
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  line-height: 1.7;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--text);
}

.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-accent  { color: var(--accent); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-yellow  { color: var(--yellow); }
.text-center  { text-align: center; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}

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

.tab-btn.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Accordion ───────────────────────────────────────────── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  transition: background 0.2s;
  user-select: none;
}

.accordion-q:hover { background: var(--surface2); }

.accordion-q .acc-icon {
  color: var(--text-muted);
  transition: transform 0.2s;
  font-size: 12px;
}

.accordion-item.open .accordion-q .acc-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--surface2);
}

.accordion-item.open .accordion-body {
  max-height: 600px;
}

.accordion-body-inner {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── License Success Card ────────────────────────────────── */
.license-details {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.license-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.license-row:last-child { border-bottom: none; }

.license-label { color: var(--text-muted); }

.license-value {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ── Version Badge ───────────────────────────────────────── */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ── Checksum ────────────────────────────────────────────── */
.checksum {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  word-break: break-all;
  margin-top: 6px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Section Divider ─────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.section-divider span {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Loading / Spinner ───────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  gap: 10px;
  max-width: 480px;
  transition: border-color 0.2s;
}

.search-bar:focus-within { border-color: var(--accent); }

.search-bar input {
  background: none;
  border: none;
  flex: 1;
  padding: 12px 0;
}

.search-bar input:focus { border: none; }

.search-icon {
  color: var(--text-dim);
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Quick Links ─────────────────────────────────────────── */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.quick-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item { }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Notice Banner ───────────────────────────────────────── */
.notice-banner {
  background: rgba(56, 189, 248, 0.06);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding: 8px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.notice-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.notice-banner a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger { display: flex; }

  .section { padding: 72px 0; }

  .hero { padding: 100px 0 60px; }

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

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

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

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

  .stats-bar { gap: 24px; }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero { padding: 90px 0 48px; }

  .section h2 { font-size: 1.8rem; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
  }

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

  .activation-box {
    padding: 24px 16px;
  }

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

/* ── Master Menu Drawer ─────────────────────────────────── */
#mm-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px 8px 4px;
  background: none;
  border: none;
  outline: none;
  flex-shrink: 0;
}
#mm-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.2s;
}
#mm-btn:hover span { background: var(--text); }

#mm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#mm-overlay.open { display: block; }

#mm-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 86vw;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 1999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.27s cubic-bezier(0.4,0,0.2,1);
  padding-bottom: 40px;
}
#mm-drawer.open { transform: translateX(0); }

.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.mm-logo {
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.mm-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.mm-close:hover { color: var(--text); background: var(--surface2); }

.mm-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 20px 20px 8px;
}
.mm-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 0 8px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.mm-product:hover { background: var(--surface2); }
.mm-product-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.mm-product-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.mm-product-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-top: 2px; }

.mm-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

.mm-link {
  display: block;
  padding: 9px 20px;
  margin: 1px 8px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s, background 0.15s;
}
.mm-link:hover { color: var(--text); background: var(--surface2); }

/* Cross-promo strip */
.xpromo {
  border-top: 1px solid var(--border);
  padding: 56px 0;
  background: var(--surface);
}
.xpromo-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 28px;
}
.xpromo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.xpromo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.xpromo-card:hover { transform: translateY(-2px); }
.xpromo-card-icon { font-size: 22px; margin-bottom: 10px; }
.xpromo-card-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.xpromo-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── Product Configurator (Apple-style) ─────────────────── */
.cfg-section { padding: 64px 0; border-top: 1px solid var(--border); }
.cfg-wrap { max-width: 600px; margin: 0 auto; }
.cfg-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); text-align: center; margin-bottom: 20px; }
.cfg-billing { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.cfg-billing-opt { background: var(--bg); border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; font-family: var(--font); width: 100%; }
.cfg-billing-opt.active { border-color: var(--cfg-color, var(--accent)); background: rgba(56,189,248,.06); }
.cfg-billing-opt-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.cfg-billing-opt.active .cfg-billing-opt-name { color: var(--cfg-color, var(--accent)); }
.cfg-billing-opt-price { font-size: 12px; color: var(--text-muted); }
.cfg-plans { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cfg-plan { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 2px solid var(--border); border-radius: 10px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.cfg-plan.active { border-color: var(--cfg-color, var(--accent)); background: rgba(56,189,248,.06); }
.cfg-plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; transition: border-color .15s; }
.cfg-plan.active .cfg-plan-radio { border-color: var(--cfg-color, var(--accent)); }
.cfg-plan.active .cfg-plan-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--cfg-color, var(--accent)); }
.cfg-plan-info { flex: 1; min-width: 0; }
.cfg-plan-name { font-size: 14px; font-weight: 700; }
.cfg-plan-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.cfg-plan-price { font-size: 15px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.cfg-plan.active .cfg-plan-price { color: var(--cfg-color, var(--accent)); }
.cfg-buy-btn { display: block; width: 100%; padding: 16px; background: var(--cfg-color, var(--accent)); color: #0a0f1a; font-size: 15px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: opacity .15s, transform .1s; font-family: var(--font); margin-bottom: 10px; }
.cfg-buy-btn:hover { opacity: .88; transform: translateY(-1px); }
.cfg-buy-btn:active { transform: translateY(0); opacity: 1; }
.cfg-buy-btn:disabled { opacity: .5; cursor: default; transform: none; }
.cfg-note { text-align: center; font-size: 11px; color: var(--text-dim); }
.cfg-community { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.cfg-community-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cfg-community-desc { font-size: 12px; color: var(--text-muted); }

/* ── Inline PayPal checkout ─────────────────────────────── */
.pp-checkout { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pp-checkout::before { content: "Enter your email — license key delivered to your inbox"; display: block; font-size: 11.5px; color: var(--text-muted); opacity: .8; margin-bottom: -2px; }
.pp-email-input { width: 100%; box-sizing: border-box; padding: 11px 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.pp-email-input:focus { outline: none; border-color: #FFD140; box-shadow: 0 0 0 3px rgba(255,209,64,.12); }
.pp-email-input.error { border-color: #ef4444; animation: pp-shake .25s; }
@keyframes pp-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
/* PayPal Gold — official brand color */
.pp-pay-btn { width: 100%; padding: 12px 20px; background: #FFD140; color: #2c2e2f; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; letter-spacing: .01em; font-family: inherit; }
.pp-pay-btn:hover:not(:disabled) { background: #f0c616; }
.pp-pay-btn:disabled { opacity: .55; cursor: not-allowed; }
.pp-pay-btn.pp-alt { font-size: 13px; padding: 9px 16px; background: #e8c000; color: #2c2e2f; }
.pp-pay-btn.pp-alt:hover:not(:disabled) { background: #d4af00; }
/* prod-card as div (hub page) */
.prod-card-inner { display: block; text-decoration: none; color: var(--text); }
.prod-card-inner:hover { color: var(--text); }

/* ── Trademark / Legal notice ───────────────────────────── */
.trademark-notice {
  font-size: 10.5px;
  color: var(--text-muted);
  opacity: 0.55;
  line-height: 1.65;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
}
