:root {
  /* Silky Apple Brand Colors */
  --primary: #8B5CF6;
  /* Silky Violet - Main Action */
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #FF4D30;
  /* Electric Orange - Accent */

  /* Backgrounds - Deep Space */
  --bg-main: #050505;
  --bg-dark: #050505;
  /* Deeper black */
  --bg-surface: #121215;
  --bg-glass: rgba(18, 18, 21, 0.7);
  --body-bg:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 77, 48, 0.09), transparent 22%),
    linear-gradient(180deg, #050505 0%, #09090b 34%, #111114 100%);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-soft-hover: rgba(255, 255, 255, 0.05);
  --surface-card: var(--bg-surface);
  --surface-card-hover: rgba(255, 255, 255, 0.05);
  --surface-overlay: #1e1e24;
  --button-glass-bg: rgba(255, 255, 255, 0.05);
  --button-glass-hover-bg: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.2);
  --footer-bg: #050505;
  --success: #22c55e;
  --success-strong: #86efac;
  --success-soft: rgba(34, 197, 94, 0.1);
  --danger: #ef4444;

  /* Text */
  --text-main: #f5f5f7;
  /* Silky White */
  --text-muted: #a1a1aa;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(255, 255, 255, 0.2);

  /* Spacing & Layout */
  --container-width: 1200px;
  --nav-height: 80px;

  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Header Vars */
  --header-bg: rgba(9, 9, 11, 0.95);

  /* SilkWallet */
  --wallet-primary: #22c55e;
  --wallet-primary-strong: #86efac;
  --wallet-primary-soft: rgba(34, 197, 94, 0.12);
  --wallet-primary-border: rgba(134, 239, 172, 0.2);
  --wallet-primary-glow: rgba(34, 197, 94, 0.26);

  --banana-primary: #FCE83A;
  --banana-primary-strong: #FDF186;
  --banana-primary-soft: rgba(252, 232, 58, 0.12);
  --banana-primary-border: rgba(252, 232, 58, 0.2);
  --banana-primary-glow: rgba(252, 232, 58, 0.26);
  --wallet-link: #bbf7d0;
  --wallet-link-hover: #f0fdf4;
  --wallet-panel-bg: linear-gradient(180deg, rgba(18, 18, 21, 0.92) 0%, rgba(9, 9, 11, 0.78) 100%);
  --wallet-card-bg: rgba(255, 255, 255, 0.035);
  --wallet-card-border: rgba(255, 255, 255, 0.08);
  --wallet-feature-bg: linear-gradient(180deg, rgba(18, 18, 21, 0.96) 0%, rgba(12, 14, 18, 0.92) 100%);
  --wallet-flow-bg: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(9, 9, 11, 0.96) 100%);
  --wallet-code-bg: linear-gradient(180deg, #0b1220 0%, #09090b 100%);
  --wallet-code-text: #d4d4d8;
  --wallet-code-good: #86efac;
  --wallet-code-warn: #fb7185;
  --wallet-code-muted: #93c5fd;
  --wallet-warning-bg: rgba(250, 204, 21, 0.12);
  --wallet-warning-text: #fde68a;
}

/* Centralized App Themes */
.theme-silkysnip {
  --primary: #8B5CF6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --primary-soft: rgba(139, 92, 246, 0.1);
  --secondary: #FF4D30;
  --btn-text: #ffffff;
}

.theme-silkycalcs {
  --primary: #FF4D30;
  --primary-glow: rgba(255, 77, 48, 0.4);
  --primary-soft: rgba(255, 77, 48, 0.1);
  --secondary: #FCE83A;
  --btn-text: #ffffff;
}

.theme-silkwallet {
  --primary: var(--wallet-primary);
  --primary-glow: var(--wallet-primary-glow);
  --primary-soft: var(--wallet-primary-soft);
  --secondary: #10b981;
  --btn-text: #050505;
}

.theme-trueconsent {
  --primary: var(--banana-primary);
  --primary-glow: var(--banana-primary-glow);
  --primary-soft: var(--banana-primary-soft);
  --secondary: #f59e0b;
  --btn-text: #050505;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-kicker-pill {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--btn-text, white);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-label-short {
  display: none;
}

.btn-glass {
  background: var(--button-glass-bg);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
  color: var(--text-main);
}

.btn-glass:hover {
  background: var(--button-glass-hover-bg);
  border-color: var(--border-highlight);
}

.btn-glass-secondary {
  background: var(--button-glass-bg);
  border-color: var(--secondary);
  backdrop-filter: blur(10px);
  color: var(--text-main);
}

.btn-glass-secondary:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.btn-disabled {
  background: var(--button-glass-bg);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* Navigation - Top Right Fixed */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s;
  /* FIX: Add blur and background proper */
  background: var(--header-bg);
  /* Fallback */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Innovative Border: Gradient line at the bottom */
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(var(--header-bg), var(--header-bg)),
    linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: transform 0.3s ease, background 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header .nav-links {
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* 3D Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 77, 48, 0.15), transparent 25%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-mockup-img {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.3));
}

body.theme-trueconsent .visual-glow {
  display: none;
}

body.theme-trueconsent .btn-primary {
  box-shadow: none;
}

body.theme-trueconsent .btn-primary:hover {
  box-shadow: var(--shadow-soft);
}

body.theme-trueconsent .hero-mockup-img {
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Bento Grid Features */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  /* Use auto-fill to prevent stretching of last items */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

@media (min-width: 1250px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
  /* Interactivity */
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--primary);
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-section {
    padding-top: 110px !important;
    padding-bottom: 50px !important;
  }
}


.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 24px;
  margin-top: 60px;
}

.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.bento-item:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.platform-item {
  background: transparent;
  border: none;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.platform-item:hover {
  background: transparent;
  border: none;
  transform: translateY(-4px);
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-12 {
  grid-column: span 12;
}

/* Review / Comparison Section */
.comparison-container {
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.comparison-wrapper {
  overflow-x: auto;
  background: var(--surface-soft);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  margin-top: 40px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.comparison-table th {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.1rem;
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text-main);
  font-weight: 500;
}

.comparison-table td:nth-child(2) {
  background: rgba(255, 77, 48, 0.1);
  border-radius: 8px;
  /* Slightly reduced radius for table cell */
  color: var(--text-main);
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 77, 48, 0.2);
}

.comparison-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease;
}

.comparison-img:hover {
  transform: scale(1.02);
}

/* SilkWallet Page */
.wallet-page .wallet-hero-section {
  min-height: 92vh;
  padding-top: var(--nav-height);
}

.wallet-page .wallet-hero-shell {
  width: 100%;
}

.wallet-page .wallet-hero-kicker {
  color: var(--wallet-link);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.wallet-page .wallet-hero-title {
  max-width: 560px;
}

.wallet-page .wallet-hero-summary span {
  color: var(--text-main);
  display: block;
  font-weight: 600;
  margin-top: 12px;
}

.wallet-page .wallet-hero-actions {
  align-items: center;
  flex-wrap: wrap;
}

.wallet-page .wallet-store-btn {
  gap: 10px;
}

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

.wallet-page .wallet-hero-note {
  color: var(--wallet-link);
  margin: 0;
}

.wallet-page .wallet-hero-visual {
  width: min(100%, 640px);
}

.wallet-page .wallet-product-hero {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.wallet-page .wallet-product-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.wallet-page .wallet-features-section {
  padding-top: 46px;
}

.wallet-page .wallet-section-header {
  max-width: 760px;
  margin-bottom: 60px;
}

.wallet-page .wallet-section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.wallet-page .wallet-section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.wallet-page .wallet-feature-list {
  list-style: none;
  padding: 0;
}

.wallet-page .wallet-feature-card {
  min-height: 260px;
}

.wallet-page .wallet-feature-index {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--wallet-primary-border);
  border-radius: 14px;
  background: var(--wallet-primary-soft);
  color: var(--wallet-primary-strong);
  font-weight: 700;
}

.wallet-page .wallet-feature-card h3 {
  margin-bottom: 12px;
}

.wallet-page .wallet-feature-card p {
  color: var(--text-muted);
}

.wallet-page .wallet-bottom-cta {
  background: var(--bg-surface);
}

.wallet-page .wallet-cta-shell {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.wallet-page .wallet-cta-shell h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  margin-bottom: 14px;
}

.wallet-page .wallet-cta-shell p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.wallet-page .wallet-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 968px) {
  .wallet-page .wallet-hero-section {
    min-height: auto;
    padding: 120px 0 70px;
  }

  .wallet-page .wallet-hero-visual {
    width: min(100%, 680px);
  }
}

@media (max-width: 768px) {
  .wallet-page .wallet-hero-section {
    padding: 104px 0 54px;
  }

  .wallet-page .wallet-hero-kicker {
    font-size: 0.85rem;
  }

  .wallet-page .wallet-hero-actions,
  .wallet-page .wallet-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-page .wallet-hero-actions .btn,
  .wallet-page .wallet-cta-actions .btn {
    width: 100%;
  }

  .wallet-page .wallet-hero-note {
    text-align: center;
  }

  .wallet-page .wallet-product-hero {
    border-radius: 12px;
  }

  .wallet-page .wallet-features-section {
    padding-top: 42px;
  }
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-item {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: var(--surface-soft-hover);
  border-color: var(--primary);
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 10px;
}

/* Use Case Cards */
/* Use Case Cards */
.use-case-card {
  background: var(--surface-card);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease;
}

.use-case-card h3 {
  color: var(--text-main);
  /* Ensure visibility in dark mode */
}

.use-case-card p {
  color: var(--text-muted);
  /* Ensure visibility in dark mode */
}

/* Ensure FAQ text is visible in dark mode default */
.faq-question {
  color: var(--text-main);
}

.faq-answer {
  color: var(--text-muted);
}

.use-case-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

/* Animated Gradient Text */
.text-gradient-animated {
  background: linear-gradient(to right, #007aff, #00c6ff, #007aff);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Visual Workflow Tour (Split Sections) */
.visual-tour {
  margin-top: 80px;
}

.split-section {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 100px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-visual {
  flex: 1.2;
  position: relative;
}

.feature-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease;
}

.feature-img:hover {
  transform: scale(1.02);
}

@media (max-width: 968px) {

  .split-section,
  .split-section.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .split-section .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .split-visual {
    width: 100%;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .brand-name {
    display: block !important;
    font-size: 1.1rem;
  }
}

/* 3D Mockup Mobile Fixes */
@media (max-width: 768px) {
  .calc-mockup {
    width: 280px !important;
    height: 420px !important;
    transform: none !important;
    margin: 40px auto;
  }

  .split-visual {
    perspective: none !important;
    margin-top: 40px;
  }

  .comparison-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .comparison-table {
    min-width: 600px;
  }
}

@media (max-width: 1100px) {
  .site-header .nav-container {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .site-header .logo {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .site-header .nav-links {
    justify-content: flex-end;
    min-width: 0;
    gap: 12px;
  }

  .nav-dl-btn {
    padding: 10px 18px;
    white-space: nowrap;
  }

  .nav-dl-btn .store-label-full {
    display: none;
  }

  .nav-dl-btn .store-label-short {
    display: inline;
  }
}

@media (max-width: 768px) {

  .bento-span-4,
  .bento-span-6,
  .bento-span-8 {
    grid-column: span 12;
  }



  .site-header {
    height: auto;
    padding: 12px 0;
  }
  
  .nav-container {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  nav[aria-label="Primary navigation"] {
    justify-content: flex-end;
  }

  /* Responsive Header Download Button */
  .nav-dl-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

  .nav-dl-btn .store-label-full {
    display: none;
  }

  .nav-dl-btn .store-label-short {
    display: none;
  }
}

/* Default Desktop State for DL Button Icon */
.dl-icon {
  display: none;
}

.nav-dl-btn {
  gap: 8px;
}

/* Download Page Specific Styles */
.download-page-main {
  padding-top: 100px;
  padding-bottom: 120px;
}

.download-page-hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.download-page-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.series-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.series-section:last-child {
  border-bottom: none;
}

.series-title {
  font-size: 2rem;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.series-badge {
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--surface-soft-hover);
  color: var(--text-muted);
  font-weight: 500;
}

.series-badge--wallet {
  background: var(--wallet-primary-soft);
  color: var(--wallet-primary-strong);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.download-grid-single {
  grid-template-columns: minmax(340px, 460px);
  justify-content: center;
}

.download-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  /* Fix for dropdown clipping */
  display: flex;
  flex-direction: column;
  z-index: 1;
  scroll-margin-top: 110px;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
  /* Ensure hovered card stays on top */
}

.download-card.z-active {
  z-index: 100;
  /* Ensure active dropdown stays on top */
  border-color: var(--border-highlight);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-icon-img--contain {
  object-fit: contain;
  background: var(--bg-main);
}

.app-icon-symbol {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.app-icon-symbol--secondary {
  background: linear-gradient(135deg, var(--secondary), #f97316);
}

.app-title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
}

.app-status {
  font-size: 0.8rem;
  font-weight: 700;
}

.app-status--primary {
  color: var(--primary);
}

.app-status--secondary {
  color: var(--secondary);
}

.app-status--wallet {
  color: var(--wallet-primary);
}

.app-status--banana {
  color: var(--banana-primary);
}

.app-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  flex-grow: 1;
}

/* Apps.html Grid */
.apps-header {
  padding: 120px 0 60px;
  text-align: center;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}
.app-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-5px);
}
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.app-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.app-summary {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}
.app-action {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dynamic Accent Colors for App Cards */
.app-card[data-accent="primary"]:hover { border-color: var(--primary); }
.app-card[data-accent="primary"] .app-action { color: var(--primary); }

.app-card[data-accent="secondary"]:hover { border-color: var(--secondary); }
.app-card[data-accent="secondary"] .app-action { color: var(--secondary); }

.app-card[data-accent="wallet"]:hover { border-color: var(--wallet-primary); }
.app-card[data-accent="wallet"] .app-action { color: var(--wallet-primary); }

.app-card[data-accent="banana"]:hover { border-color: var(--banana-primary); }
.app-card[data-accent="banana"] .app-action { color: var(--banana-primary); }

.download-card-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.download-card-note code {
  color: var(--text-main);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.os-compatibility {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.os-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-badge.compatible {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--wallet-primary-border);
}

/* Smart Button */
.smart-dl-btn-group {
  position: relative;
  display: flex;
  width: 100%;
}

.smart-dl-btn {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  justify-content: center;
}

.dl-dropdown-trigger {
    width: 44px;
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    border-left: 1px solid rgba(0,0,0,.1);
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.2s;
}

.dl-dropdown-trigger--secondary {
  background: var(--secondary);
}

.dl-dropdown-trigger--wallet {
  background: var(--wallet-primary);
}

.dl-dropdown-trigger--banana {
  background: var(--banana-primary);
  color: #1a1a1a;
}

.btn-wallet {
  background: var(--wallet-primary);
  border-color: var(--wallet-primary);
  box-shadow: 0 0 20px var(--wallet-primary-glow);
  color: white;
}

.btn-wallet:hover {
  box-shadow: 0 0 30px var(--wallet-primary-glow);
}

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
  color: white;
}

.btn-secondary:hover {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.btn-banana {
  background: var(--banana-primary);
  border-color: var(--banana-primary);
  box-shadow: 0 0 20px var(--banana-primary-glow);
  color: #1a1a1a;
}

.btn-banana:hover {
  box-shadow: 0 0 30px var(--banana-primary-glow);
}

.dl-dropdown-trigger:hover {
  filter: brightness(1.1);
}

.dl-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: var(--surface-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px;
  display: none;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dl-dropdown-menu.show {
  display: block;
  animation: fadeIn 0.1s ease;
}

.dl-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s;
  cursor: pointer;
}

.dl-option:hover {
  background: var(--surface-soft-hover);
}

/* Unified 2026 Theme */
:root {
  --bg-main: #050505;
  --bg-dark: #050505;
  --bg-surface: #121215;
  --bg-glass: rgba(18, 18, 21, 0.78);
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--body-bg);
  color: var(--text-main);
}

.site-header,
.site-footer,
.feature-card,
.bento-item,
.download-card,
.contact-form,
.sidebar-widget,
.comparison-wrapper,
.calculator-wrapper,
.calculator-results,
.article-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.4) 0%, rgba(5, 5, 5, 0.95) 100%);
}

.copyright-bar {
  gap: 16px;
  flex-wrap: wrap;
}

.mini-calc-card {
  width: min(100%, 340px);
  min-height: 380px;
  background: rgba(20, 20, 28, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}

.mini-calc-bar {
  display: flex;
  gap: 8px;
}

.mini-calc-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.mini-calc-bar span:nth-child(1) {
  background: #ef4444;
}

.mini-calc-bar span:nth-child(2) {
  background: #f59e0b;
}

.mini-calc-bar span:nth-child(3) {
  background: #22c55e;
}

.mini-calc-display {
  padding: 26px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-size: 2.8rem;
  text-align: right;
  color: var(--text-main);
}

.mini-calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.mini-calc-key {
  min-height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-calc-key--accent {
  color: #c4b5fd;
}

.mini-calc-key--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border-color: rgba(196, 181, 253, 0.35);
}

.mini-calc-key--wide {
  grid-column: span 2;
}

.faq-search-wrapper {
  max-width: 640px;
  margin: 40px auto 60px;
  position: relative;
}

.faq-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px 24px 20px 54px;
  color: var(--text-main);
  font-size: 1.05rem;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

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

.faq-category-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-chip {
  padding: 10px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.category-chip.active {
  color: var(--text-main);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12) inset;
}

.faq-directory {
  display: grid;
  gap: 18px;
}

.faq-entry {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.faq-entry:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.faq-entry.is-open {
  background: var(--surface-soft-hover);
  border-color: rgba(139, 92, 246, 0.35);
}

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

.faq-question-text {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.faq-question-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-entry.is-open .faq-question-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer-inner,
.faq-answer-inner p,
.faq-answer-inner li {
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer-inner p+p {
  margin-top: 12px;
}

.faq-answer-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--text-main);
}

.faq-answer-inner a,
.legal-shell .article-content a {
  color: var(--primary);
  text-decoration: none;
}

.faq-answer-inner a:hover,
.legal-shell .article-content a:hover {
  text-decoration: underline;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.no-results[hidden] {
  display: none;
}

.support-cta {
  margin-top: 80px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
}

.legal-shell {
  max-width: 860px;
  margin: 0 auto;
  min-width: 0;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--wallet-primary-border);
  background: var(--wallet-primary-soft);
  color: var(--wallet-primary-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.legal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.legal-shell .article-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal-shell .article-content p,
.legal-shell .article-content li {
  color: var(--text-muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.legal-shell .article-content ul {
  margin: 0 0 16px 18px;
}

.legal-shell .article-content,
.legal-shell .article-content * {
  max-width: 100%;
}

.legal-shell .article-content code {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .mini-calc-card {
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ROI Table Styles */
.roi-table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 20px;
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.roi-table th,
.roi-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.roi-table th {
  background: var(--surface-soft-hover);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.roi-table td {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.roi-table .text-success {
  color: var(--success);
  font-weight: 600;
}

.roi-table .highlight-value {
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
}

.table-note {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* ROI Calculator Styles */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.calculator-inputs h3 {
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.input-group {
  margin-bottom: 30px;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 4px;
  outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid white;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-value {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.calculator-results {
  background: var(--surface-soft);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.result-card {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.result-card.highlight {
  border-bottom: none;
  padding-bottom: 0;
}

.result-card h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
}

.result-card.highlight .result-value {
  color: var(--success);
  font-size: 3.5rem;
  text-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.roi-badge {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
}

.calc-note {
  color: var(--text-muted);
  margin-top: 24px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.btn-full {
  width: 100%;
}

@media (max-width: 900px) {
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Dynamic ROI Table Enhancements */
/* Dynamic ROI Table Enhancements */
.highlight-row {
  background: var(--success-soft) !important;
  /* border: 1px solid rgba(34, 197, 94, 0.3); Removed border on TR as it breaks tables sometimes */
}

.highlight-row td {
  color: var(--success) !important;
  font-weight: 700;
  position: relative;
  /* Add relative to td instead */
}

.highlight-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--success);
  opacity: 0.8;
}

.roi-table tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
}

.roi-table tbody tr:hover {
  background: var(--surface-soft-hover);
  transform: translateX(4px);
}

/* Philosophy Section Typography */
.philosophy-text p {
  position: relative;
  padding-left: 20px;
}

.philosophy-text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 2px;
  height: 80%;
  background: var(--border-subtle);
}

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

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-principles-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 42px;
}

@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-principles-card {
    min-height: auto;
    padding: 28px;
  }
}

/* Light Mode Overrides */
@media (prefers-color-scheme: light) {
  :root {
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-dark: #ffffff;
    --bg-surface: #f4f4f5;
    /* Zinc-100 */
    --bg-glass: rgba(255, 255, 255, 0.8);
    --body-bg:
      radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), transparent 25%),
      radial-gradient(circle at top right, rgba(255, 77, 48, 0.06), transparent 24%),
      linear-gradient(180deg, #ffffff 0%, #fafafa 42%, #f4f4f5 100%);
    --surface-soft: rgba(9, 9, 11, 0.035);
    --surface-soft-hover: rgba(9, 9, 11, 0.06);
    --surface-card: #ffffff;
    --surface-card-hover: rgba(9, 9, 11, 0.045);
    --surface-overlay: #ffffff;
    --button-glass-bg: rgba(255, 255, 255, 0.72);
    --button-glass-hover-bg: rgba(255, 255, 255, 0.92);
    --shadow-soft: 0 18px 36px rgba(15, 23, 42, 0.08);
    --footer-bg: #f4f4f5;

    /* Text */
    --text-main: #09090b;
    /* Zinc-950 */
    --text-muted: #52525b;
    /* Zinc-600 */

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.1);
    --border-highlight: rgba(0, 0, 0, 0.2);

    /* Brand - Adjust glow for light bg */
    --primary-glow: rgba(255, 77, 48, 0.2);
    --success: #15803d;
    --success-strong: #166534;
    --success-soft: rgba(22, 163, 74, 0.1);
    --danger: #b91c1c;

    /* SilkWallet */
    --wallet-primary: #15803d;
    --wallet-primary-strong: #166534;
    --wallet-primary-soft: rgba(22, 163, 74, 0.1);
    --wallet-primary-border: rgba(22, 101, 52, 0.18);
    --wallet-primary-glow: rgba(22, 163, 74, 0.16);

    --banana-primary: #D4C115;
    --banana-primary-strong: #A8980D;
    --banana-primary-soft: rgba(212, 193, 21, 0.1);
    --banana-primary-border: rgba(212, 193, 21, 0.18);
    --banana-primary-glow: rgba(212, 193, 21, 0.16);
    --wallet-link: #166534;
    --wallet-link-hover: #14532d;
    --wallet-panel-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --wallet-card-bg: rgba(255, 255, 255, 0.82);
    --wallet-card-border: rgba(15, 23, 42, 0.1);
    --wallet-feature-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --wallet-flow-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --wallet-code-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --wallet-code-text: #374151;
    --wallet-code-good: #15803d;
    --wallet-code-warn: #be123c;
    --wallet-code-muted: #2563eb;
    --wallet-warning-bg: rgba(202, 138, 4, 0.12);
    --wallet-warning-text: #854d0e;
  }

  /* Feature cards need shadow instead of just highlight in light mode */
  .feature-card,
  .bento-item,
  .use-case-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-subtle);
  }

  /* Adjust visual glow elements to be less harsh or invisible */
  .visual-glow {
    opacity: 0.5;
    filter: blur(80px);
  }

  /* Invert simple icons if needed, or let currentColor handle it */
  .logo img {
    filter: invert(1);
    /* Invert logo if it's white-only */
  }
}

/* FIX: Logo should not be inverted */
.logo img {
  filter: none;
}

/* FIX: ROI Table Highlighting in Light Mode */
.highlight-row td {
  color: #15803d !important;
  /* Green-700 for contrast on light green bg */
  font-weight: 700;
}

/* FIX: FAQ and Card Text Colors */
.faq-question,
.use-case-card h3,
.feature-card h3,
.bento-item h3 {
  color: var(--text-main);
}

.faq-question span {
  color: var(--text-muted);
}

@media (prefers-color-scheme: light) {

  /* FIX: Borders visibility */
  .feature-card,
  .bento-item,
  .use-case-card,
  .calculator-wrapper,
  .comparison-container,
  .roi-table-container {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }

  /* FIX: Calculator Slider Track */
  .input-group input[type="range"] {
    background: rgba(0, 0, 0, 0.1);
  }
}

/* FIX: Comparison Table Text */
.comparison-table td:first-child,
.comparison-table th {
  color: var(--text-main);
}

/* FIX: Footer Copyright Text */
footer {
  border-top-color: var(--border-subtle) !important;
  background: var(--footer-bg) !important;
}

footer .text-muted {
  color: var(--text-muted) !important;
}

footer .logo span {
  color: var(--text-main);
}


/* Phase 8 Fixes: Light Mode Card Colors */
@media (prefers-color-scheme: light) {
  :root {
    --header-bg: rgba(255, 255, 255, 0.95);
  }

  /* Make cards light in light mode */
  .use-case-card,
  .bento-item,
  .feature-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  /* Ensure text inside cards is dark */
  .use-case-card h3,
  .feature-card h3,
  .bento-item h3 {
    color: #18181b !important;
    /* Zinc-900 */
  }

  .use-case-card p,
  .feature-card p,
  .bento-item p {
    color: #52525b !important;
    /* Zinc-600 */
  }
}

/* Phase 9 Strict Fixes */

/* 1. Force ROI Table Column Widths to prevent shifting */
.roi-table th:nth-child(1),
.roi-table td:nth-child(1) {
  width: 30%;
}

/* Country */
.roi-table th:nth-child(2),
.roi-table td:nth-child(2) {
  width: 25%;
}

/* Salary */
.roi-table th:nth-child(3),
.roi-table td:nth-child(3) {
  width: 25%;
}

/* Time Value */
.roi-table th:nth-child(4),
.roi-table td:nth-child(4) {
  width: 20%;
}

/* ROI */

/* 2. Light Mode: Force "Restore" and "Workflow" cards to be LIGHT */
@media (prefers-color-scheme: light) {

  /* Target the specific "Restore" card specifically if it has a unique class, 
       but here we target the generic classes used in bento grid */
  .bento-item,
  .bento-span-8,
  .bento-span-4,
  .feature-card,
  .use-case-card {
    background: #ffffff !important;
    color: #09090b !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Force headings inside these cards to be dark */
  .bento-item h3,
  .bento-span-8 h3,
  .use-case-card h3 {
    color: #09090b !important;
  }

  /* Force paragraphs to be dark grey */
  .bento-item p,
  .bento-span-8 p,
  .use-case-card p {
    color: #52525b !important;
  }

  /* Ensure no inline style overrides this (we will also remove inline styles in HTML) */
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 20px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  text-decoration: none;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.coming-soon-item {
  color: #52525b;
  font-size: 0.9rem;
  margin-bottom: 12px;
  cursor: not-allowed;
  display: block;
}

.copyright-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
  }
}

.language-selector {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font: inherit;
}

/* Blog Section Redesign */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.read-more-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.read-more-link svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .read-more-link svg {
  transform: translateX(4px);
  color: var(--primary);
}

/* Mobile Navigation Icons */
.nav-icon {
  display: none;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.active {
  color: var(--primary);
}

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

  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-soft);
    transition: background 0.2s ease;
  }

  .nav-item:hover .nav-icon {
    background: var(--surface-soft-hover);
  }

  .nav-links {
    gap: 12px;
  }

  .brand-name {
    display: none !important;
  }
}

/* Shared FAQ Grid */
.faq-section {
  background: var(--bg-surface);
  padding: 100px 0;
}

.faq-header {
  text-align: left;
  margin-bottom: 60px;
}

.faq-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.faq-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .faq-grid-3 {
    grid-template-columns: 1fr;
  }
}

.faq-column h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 24px;
  font-weight: 600;
}

.faq-card {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-card:hover {
  background: var(--surface-soft-hover);
  border-color: var(--border-highlight);
}

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

.faq-card .icon {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Professional Active State */
.nav-item {
  position: relative;
}

.nav-item.active .nav-text {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary);
}

/* Dropdown Theme Sync Fix */
.dl-dropdown-menu {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.dl-option:hover {
  background: var(--surface-soft-hover);
}

/* Central FAQ Alignment Fix */
.faq-entry .faq-question {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.faq-entry .faq-answer {
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-height: none !important;
  overflow: visible !important;
}

.faq-answer-inner {
  padding-left: 0 !important;
}

.faq-answer-inner p {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
