/* ==========================================================================
   CAUSE HUB — Swiss Precision Engineering Stylesheet (2026)
   ========================================================================== */

:root {
  --bg-canvas: #07090e;
  --bg-surface: #0d111a;
  --bg-surface-elevated: #131824;
  --bg-glass: rgba(13, 17, 26, 0.78);
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-active: rgba(255, 255, 255, 0.22);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-excel: #10b981;
  --accent-excel-glow: rgba(16, 185, 129, 0.22);
  --accent-ai: #3b82f6;
  --accent-ai-glow: rgba(59, 130, 246, 0.22);
  --accent-dual: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  --crosshair: rgba(255, 255, 255, 0.18);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container-max: 1220px;
}

[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-hairline: rgba(15, 23, 42, 0.1);
  --border-active: rgba(15, 23, 42, 0.24);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-excel: #059669;
  --accent-excel-glow: rgba(5, 150, 105, 0.15);
  --accent-ai: #2563eb;
  --accent-ai-glow: rgba(37, 99, 235, 0.15);
  --crosshair: rgba(15, 23, 42, 0.2);
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, var(--accent-excel-glow) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, var(--accent-ai-glow) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.06) 0%, transparent 45%),
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 14px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.16s ease;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.btn-lang {
  font-family: var(--font-mono);
  font-size: 11px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 960px;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--accent-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--text-primary);
  color: var(--bg-canvas);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

/* ==========================================================================
   BENTO DUAL PROTAGONIST
   ========================================================================== */
.bento-section {
  padding: 40px 0 80px;
}

.section-head {
  margin-bottom: 32px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card-excel {
  border-top: 2px solid var(--accent-excel);
}

.bento-card-ai {
  border-top: 2px solid var(--accent-ai);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.card-badge-excel {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-excel);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-badge-ai {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-ai);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.card-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card-body {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Micro-visual interactive showcase inside each card */
.micro-visual {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.micro-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 11px;
}

.code-snippet {
  color: var(--text-secondary);
}

.code-highlight-excel {
  color: var(--accent-excel);
}

.code-highlight-ai {
  color: var(--accent-ai);
}

.metric-strip {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-hairline);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--accent-excel);
  font-weight: 700;
}

.feature-check-ai {
  color: var(--accent-ai);
  font-weight: 700;
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}

.card-cta-excel {
  background: var(--accent-excel);
  color: #ffffff;
}

.card-cta-excel:hover {
  background: #059669;
}

.card-cta-ai {
  background: var(--accent-ai);
  color: #ffffff;
}

.card-cta-ai:hover {
  background: #2563eb;
}

/* ==========================================================================
   COMPARISON / ROUTER SECTION
   ========================================================================== */
.router-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-hairline);
}

.router-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--bg-surface);
}

.router-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.router-table th, .router-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.router-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.router-table tr:last-child td {
  border-bottom: none;
}

.router-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.router-link {
  font-weight: 600;
  text-decoration: none;
}

.router-link-excel {
  color: var(--accent-excel);
}

.router-link-ai {
  color: var(--accent-ai);
}

/* ==========================================================================
   FAQ ACCORDIONS
   ========================================================================== */
.faq-section {
  padding: 40px 0 80px;
  border-top: 1px solid var(--border-hairline);
}

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

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

.faq-item[open] {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT CALLOUT
   ========================================================================== */
.contact-callout {
  padding: 60px 0;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 40px;
}

.contact-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.btn-whatsapp:hover {
  opacity: 0.9;
}

.btn-email {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-email:hover {
  border-color: var(--border-active);
  background: var(--bg-surface-elevated);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .contact-box {
    padding: 24px;
  }
}
