:root {
  /* Cloudflare-inspired palette */
  --bg:          #0d0d0f;
  --bg-elevated: #161618;
  --surface:     #1a1a1d;
  --surface-2:   #222226;
  --border:      rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text:        #ffffff;
  --text-muted:  #a0a0a8;
  --text-dim:    #6b6b75;

  --accent:      #f6821f;   /* Cloudflare orange */
  --accent-hover:#ff9933;
  --accent-soft: rgba(246, 130, 31, 0.12);

  --blue:        #0051c3;
  --green:       #00d084;
  --red:         #f87171;
  --yellow:      #fbbf24;
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

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

/* ==================== BACKGROUND ==================== */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}

.bg-fade {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(246,130,31,0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 208, 132, 0); }
}

.fade-in {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==================== NAVBAR ==================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(13, 13, 15, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.logo-box {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
}

.logo-box svg { width: 18px; height: 18px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.nav-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

/* ==================== PAGE ==================== */

.page {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* ==================== HERO ==================== */

.hero, .support-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}

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

.eyebrow-orange .eyebrow-dot-orange {
  background: var(--accent);
  animation: none;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, #ffb066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

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

/* ==================== BUTTONS ==================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.25);
}

/* ==================== HERO META ==================== */

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ==================== FEATURE GRID ==================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.feature-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.feature-icon-box {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon-box svg {
  width: 20px; height: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==================== CTA BANNER ==================== */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cta-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
}

.cta-banner .btn-primary {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ==================== SUPPORT — SEARCH ==================== */

.search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 60px 14px 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-input::placeholder { color: var(--text-dim); }

.search-input:focus {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  pointer-events: none;
}

/* ==================== SUPPORT — CHANNEL CARDS ==================== */

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

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}

.channel-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.channel-primary {
  border-color: rgba(246, 130, 31, 0.3);
  background: linear-gradient(135deg, rgba(246,130,31,0.04) 0%, var(--surface) 100%);
}

.channel-primary:hover {
  border-color: rgba(246, 130, 31, 0.5);
}

.channel-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-alt {
  background: var(--surface-2);
  color: var(--text-muted);
}

.channel-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.channel-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.channel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 208, 132, 0.1);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: auto;
}

/* ==================== SUPPORT — FAQ ==================== */

.faq-section { }

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

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cat-filters {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cat-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.cat-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item.open {
  border-color: rgba(246, 130, 31, 0.3);
  background: var(--surface-2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.faq-cat {
  flex-shrink: 0;
  padding: 3px 9px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.faq-cat.cat-launcher { color: var(--accent); border-color: rgba(246,130,31,0.25); background: rgba(246,130,31,0.08); }
.faq-cat.cat-account  { color: var(--green);  border-color: rgba(0,208,132,0.25); background: rgba(0,208,132,0.08); }
.faq-cat.cat-general  { color: var(--text-muted); }

.faq-q-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s, color 0.2s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 20px 18px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-answer-inner a {
  color: var(--accent);
}

.faq-answer-inner a:hover { text-decoration: underline; }

.faq-answer-inner code {
  padding: 2px 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--accent);
}

.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results p { font-size: 0.95rem; margin-bottom: 4px; }
.no-results-sub { font-size: 0.85rem !important; color: var(--text-dim); }

/* ==================== FOOTER ==================== */

.footer {
  position: relative;
  z-index: 10;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.footer-sep { color: var(--text-dim); opacity: 0.5; }

.footer a {
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.status-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
  .page {
    padding: 48px 18px 80px;
    gap: 56px;
  }

  .hero, .support-hero { padding-top: 20px; }

  .hero-meta {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: 100%;
  }

  .meta-divider {
    width: 100%;
    height: 1px;
  }

  .cta-banner {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .cta-banner .btn-primary { width: 100%; justify-content: center; }

  .search-kbd { display: none; }

  .nav-link { display: none; }

  .faq-q-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
