/* ═══════════════════════════════════════════════
   Recometic — Design System
   www.recometic.com
   ═══════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --border: #e7e5e4;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-faint: #a8a29e;
  --gold: #bfa15f;
  --gold-light: rgba(191,161,95,0.08);
  --gold-border: rgba(191,161,95,0.25);
  --gold-dark: #9a7d4a;
  --dark: #0c0a09;
  --primary: #6366f1;
  --primary-light: rgba(99,102,241,0.08);
  --primary-border: rgba(99,102,241,0.25);
  --success: #10b981;
  --danger: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 90%; /* Reduces all rem-based sizes by 10% to fix bulkiness */
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Shared Header ─── */
.site-header {
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.site-header .logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(191,161,95,0.15);
}

.site-header .logo span {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--gold); }

.btn-primary {
  background: var(--text);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(191,161,95,0.3);
}

.btn-gold {
  background: var(--gold);
  color: white;
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(191,161,95,0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(191,161,95,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-light);
  color: var(--gold);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--gold-border);
  width: fit-content;
}

.badge-hero {
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* ─── Section Containers ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }

/* ─── Hero Section ─── */
.hero { padding: 5rem 2rem 4rem; text-align: center; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 500;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-image-wrapper {
  margin-top: 4rem;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-wrapper img {
  border-radius: 18px;
}

/* ─── Feature Rows ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.feature-row.reversed .feature-row-content { order: 2; }
.feature-row.reversed .feature-row-image { order: 1; }

.feature-row-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-row-content .subtitle {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.feature-row-content .description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-image-card {
  padding: 1rem;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image-card:hover {
  box-shadow: 0 24px 50px rgba(0,0,0,0.12);
  transform: scale(1.02) rotate(-1deg);
}

.feature-image-card img { border-radius: 16px; }

/* ─── Analytics Banner ─── */
.analytics-banner { position: relative; overflow: hidden; margin-bottom: 6rem; }

.analytics-banner img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
}

.analytics-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(12,10,9,0.92) 0%, rgba(12,10,9,0.75) 50%, rgba(12,10,9,0.4) 100%);
  display: flex;
  align-items: center;
}

.analytics-overlay .content { max-width: 550px; }

.analytics-overlay h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.analytics-overlay p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 480px;
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-8px);
}

.feature-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(191,161,95,0.15);
  transition: all 0.3s ease;
}

.feature-card:hover .icon-box { transform: scale(1.1); }

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}

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

/* ─── FAQ ─── */
.faq-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.faq-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #292524 100%);
  border-radius: var(--radius-2xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-gold { color: var(--dark); }

.cta-radial {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,161,95,0.15) 0%, transparent 70%);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1.5px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--card);
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(191,161,95,0.1);
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-copyright {
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--gold); }

/* ─── Scroll Animations ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Policies & Help Center Shared ─── */
.page-header-bar {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  background: var(--card);
  margin-bottom: 4rem;
}

.page-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.page-branding img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  object-fit: contain;
}

.page-branding h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-branding p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.3rem;
}

/* Help Center Sidebar Layout */
.help-layout {
  display: block; /* Changed from grid */
  padding-top: 1rem;
}

.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.help-sidebar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.help-sidebar::-webkit-scrollbar { display: none; }

.sidebar-label {
  display: none; /* Hidden for horizontal tabs */
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-muted);
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.sidebar-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 0 0 1.5px var(--border), 0 4px 12px rgba(0,0,0,0.04);
}

.sidebar-btn .icon { color: var(--text-faint); transition: color 0.15s; }
.sidebar-btn.active .icon { color: var(--gold); }

.sidebar-dot {
  margin-left: 0.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.sidebar-help-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.main-content-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  min-height: 550px;
  font-size: 0.92rem;
}

/* Code style */
.code-tag {
  background: rgba(28, 25, 23, 0.05);
  border: 1px solid rgba(28, 25, 23, 0.08);
  color: var(--gold);
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.pre-block {
  background: #f5f5f4;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  color: var(--text);
  margin: 0.6rem 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.info-box {
  background: var(--gold-light);
  border: 1.5px solid var(--gold-border);
  padding: 1.25rem;
  border-radius: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.info-box svg { flex-shrink: 0; color: var(--gold); margin-top: 0.1rem; }

.metric-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}

.event-vars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.event-vars-card {
  padding: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.event-vars-card .card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Policies Tabs */
.policy-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  padding-top: 1rem;
}

.policy-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.policy-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.policy-content-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 2.25rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  font-size: 0.92rem;
}

.policy-content-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.policy-content-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.policy-content-card p,
.policy-content-card li {
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-content-card ul {
  padding-left: 1.5rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.security-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 0.75rem;
}

.security-box svg { color: var(--primary); flex-shrink: 0; }

/* ─── Search Bar ─── */
.search-container {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(191,161,95,0.15);
}

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

.search-highlight {
  background-color: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 600;
  border-radius: 3px;
  padding: 0 0.15rem;
}

/* ─── FAQ Accordion ─── */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--gold-border);
  box-shadow: 0 4px 12px rgba(191,161,95,0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  background: transparent;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 500px;
}
.security-box p { font-size: 0.95rem; color: var(--text-muted); }

/* ─── Mobile Navigation ─── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

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

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .feature-row.reversed .feature-row-content { order: 1 !important; }
  .feature-row.reversed .feature-row-image { order: 2 !important; }

  .nav-links { display: none !important; }
  .mobile-menu-btn { display: flex !important; }

  .help-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .help-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sidebar-label { display: none; }

  .sidebar-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .sidebar-help-box { display: none; }

  .event-vars-grid { grid-template-columns: 1fr; }

  .site-header { padding: 1rem 1.25rem; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .container, .container-sm { padding: 0 1.25rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-gold, .btn-outline { width: 100%; justify-content: center; }
  .trust-badges { flex-direction: column; align-items: center; gap: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .policy-tabs { flex-direction: column; }
  .main-content-card { padding: 1.5rem; }
  .policy-content-card { padding: 1.5rem; }
  .page-branding { flex-direction: column; text-align: center; }
  .page-branding h1 { font-size: 1.8rem; }
}
