/* ═══════════════════════════════════════════
   FIGO SUPPORT — support.css
   ═══════════════════════════════════════════ */

/* ── Design tokens (mirrors globals.css) ── */
:root {
  --bg-primary:    #0F1F17;
  --bg-deep:       #0A0F0C;
  --bg-card:       #2B372F;
  --bg-card-h:     #1f3025;
  --accent-sage:   #5B7A62;
  --text-primary:  #F8F6F1;
  --text-secondary:#EAE7E1;
  --text-muted:    rgba(248,246,241,0.45);
  --border-subtle: rgba(91,122,98,0.15);
  --border-card:   rgba(91,122,98,0.25);
  --glow-color:    rgba(91,122,98,0.30);
  --glow-intense:  rgba(91,122,98,0.55);
  --font-heading:  -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --ease-expo:     cubic-bezier(0.16,1,0.3,1);
  --ease-circ:     cubic-bezier(0.85,0,0.15,1);
  --section-pad:   clamp(80px,10vw,140px);
  --container-max: 1280px;
  --container-pad: clamp(20px,5vw,80px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (hover: none) {
  body { cursor: auto; }
  #cursor-dot, #cursor-glow { display: none !important; }
}

/* ── Custom cursor ── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: transform 0.12s var(--ease-expo);
  will-change: left, top, transform;
}
#cursor-glow {
  position: fixed;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  top: 0; left: 0;
  transform: translate(-50%,-50%);
  transition: width 0.35s var(--ease-expo), height 0.35s var(--ease-expo);
  will-change: left, top;
}

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Scroll progress ── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: var(--accent-sage);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 10px var(--glow-color);
}

/* ════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              transform 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,15,12,0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: rgba(91,122,98,0.14);
}
nav.hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: none;
  background: none; border: none;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.03em;
}
.nav-links {
  display: flex; align-items: center;
  gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-sage); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(10,15,12,0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: clamp(28px,7vw,48px);
  font-weight: 600; color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none; cursor: none;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  min-height: 52vh;
  display: flex; align-items: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(60px,8vw,96px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,122,98,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,122,98,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 14s linear infinite;
  pointer-events: none;
}
.hero-orb {
  position: absolute; top: -20%; right: -8%;
  width: clamp(300px,50vw,700px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,122,98,0.11) 0%, transparent 65%);
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-2 {
  position: absolute; bottom: -30%; left: -5%;
  width: clamp(200px,34vw,480px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,122,98,0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite reverse;
}
.hero-content { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 22px; opacity: 0;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent-sage);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(48px,8vw,108px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  overflow: hidden;
}
.hero-line { display: block; transform: translateY(110%); opacity: 0; }
.hero-sub {
  font-size: clamp(16px,1.5vw,19px);
  color: var(--text-muted);
  margin-top: 26px; max-width: 520px;
  line-height: 1.65; opacity: 0;
}

/* ════════════════════════════════════════════
   SEARCH
   ════════════════════════════════════════════ */
.search-section {
  padding: clamp(40px,5vw,64px) 0 0;
  opacity: 0;
}
.search-wrap {
  position: relative;
  max-width: 600px;
}
.search-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 18px 16px 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  cursor: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent-sage);
  box-shadow: 0 0 0 3px rgba(91,122,98,0.12);
}

/* ════════════════════════════════════════════
   PRODUCT TABS
   ════════════════════════════════════════════ */
.tabs-section {
  padding: clamp(40px,5vw,56px) 0 0;
}
.tab-bar {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  opacity: 0;
}
.tab-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  cursor: none;
  transition: color 0.25s ease, background 0.25s ease;
}
.tab-btn img {
  width: 22px; height: 22px;
  border-radius: 6px;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}
.tab-btn.active {
  background: rgba(91,122,98,0.18);
  color: var(--text-primary);
}
.tab-btn.active img { opacity: 1; }
.tab-btn:hover:not(.active) { color: var(--text-secondary); }

/* ════════════════════════════════════════════
   SUPPORT PANELS
   ════════════════════════════════════════════ */
.support-section {
  padding: clamp(48px,6vw,80px) 0 var(--section-pad);
}
.panel { display: none; }
.panel.active { display: block; }

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 16px;
  margin-bottom: clamp(48px,6vw,72px);
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 24px;
  cursor: none;
  transition: border-color 0.3s ease, transform 0.35s var(--ease-expo);
  opacity: 0;
}
.category-card:hover {
  border-color: rgba(91,122,98,0.4);
  transform: translateY(-4px);
}
.category-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(91,122,98,0.12);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--accent-sage);
}
.category-name {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.category-count {
  font-size: 13px; color: var(--text-muted);
}

/* ── Section heading ── */
.faq-group { margin-bottom: 56px; opacity: 0; }
.faq-group-title {
  font-family: var(--font-heading);
  font-size: clamp(18px,2vw,22px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 20px 0;
  background: none; border: none;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  text-align: left; cursor: none;
  transition: color 0.2s ease;
}
.accordion-trigger:hover { color: var(--text-primary); }
.accordion-trigger.open { color: var(--text-primary); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-sage);
  transition: transform 0.35s var(--ease-expo);
}
.accordion-trigger.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  overflow: hidden;
  height: 0;
}
.accordion-body-inner {
  padding: 0 0 20px;
  font-size: 15px; color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
}
.accordion-body-inner a {
  color: var(--accent-sage);
  text-decoration: underline;
  text-decoration-color: rgba(91,122,98,0.4);
  cursor: none;
  transition: text-decoration-color 0.2s ease;
}
.accordion-body-inner a:hover { text-decoration-color: var(--accent-sage); }

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 15px;
  display: none;
}
.no-results strong { color: var(--text-secondary); }

/* ════════════════════════════════════════════
   CONTACT BANNER
   ════════════════════════════════════════════ */
.contact-section {
  padding: clamp(48px,6vw,72px) 0 var(--section-pad);
  border-top: 1px solid var(--border-subtle);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px,4vw,64px);
}
@media (max-width: 640px) {
  .contact-inner { grid-template-columns: 1fr; }
}
.contact-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-sage); margin-bottom: 14px;
  display: block;
}
.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(26px,3.5vw,48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.contact-sub {
  font-size: 15px; color: var(--text-muted);
  max-width: 440px; line-height: 1.65;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--accent-sage);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  border-radius: 12px; border: none;
  text-decoration: none; cursor: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-expo);
  position: relative; overflow: hidden;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-primary svg { transition: transform 0.25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(56px,8vw,96px) 0 clamp(32px,4vw,48px);
}
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px,8vw,120px);
  margin-bottom: clamp(48px,7vw,80px);
}
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: none;
}
.footer-logo-link img { width: 26px; height: 26px; border-radius: 6px; }
.footer-wordmark {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.03em;
}
.footer-tagline { font-size: 14px; color: var(--text-muted); max-width: 200px; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(32px,6vw,80px); flex-wrap: wrap; }
.footer-col-head {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px; display: block;
}
.footer-col a {
  font-size: 14px; color: var(--text-secondary);
  text-decoration: none; transition: color 0.2s ease;
  display: block; margin-bottom: 10px; cursor: none;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { color: var(--text-muted); transition: color 0.2s ease; cursor: none; }
.footer-socials a:hover { color: var(--text-primary); }

/* ════════════════════════════════════════════
   SEARCH HIGHLIGHT
   ════════════════════════════════════════════ */
mark {
  background: rgba(91,122,98,0.28);
  color: var(--text-primary);
  border-radius: 2px;
  padding: 0 2px;
}

/* ════════════════════════════════════════════
   KEYFRAMES
   ════════════════════════════════════════════ */
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}
@keyframes orbFloat {
  0%, 100% { transform: scale(1) translate(0,0); opacity: 1; }
  50% { transform: scale(1.07) translate(-2%,2%); opacity: 0.75; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

::selection { background: rgba(91,122,98,0.3); color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
