/* =========================================================
   COMPONENTS.CSS — FRUXINFO PRODUCTION LAYOUT
   Matches provided designs (dark + light)
   ========================================================= */


/* =========================================================
   HEADER + NAV
   ========================================================= */

.header-wrapper {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-item {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  position: relative;
}

.nav-item.active,
.nav-item:hover {
  color: var(--white);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  position: relative;
  padding: 120px 0 140px;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(229,57,53,0.12),
    transparent 65%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-tagline {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.hero-title {
  max-width: 720px;
}

.hero-sub {
  max-width: 620px;
  margin-top: var(--space-lg);
}

.hero-right img {
  box-shadow: var(--shadow-hover);
  border-radius: var(--radius-lg);
}

/* =========================================================
   STATS STRIP
   ========================================================= */

.stats-strip {
  background: linear-gradient(
    180deg,
    #111111 0%,
    #0C0C0C 100%
  );
  padding: 36px 0;
}

.stats-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-lead {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.stat strong {
  font-size: 32px;
  color: var(--white);
}

.stat span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* =========================================================
   TRUST SECTION
   ========================================================= */

.trust-section {
  padding: 120px 0;
  background: var(--bg-section);
}

.trust-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
}

.trust-card {
  background-size: cover;
  background-position: center;
  padding: 48px;
}

.trust-card p {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.trust-reviews blockquote {
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.trust-logos {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   FEATURE TABS
   ========================================================= */

.feature-tabs {
  padding: 120px 0;
  background: var(--bg-main);
  text-align: center;
}

.tabs-nav {
  margin: 40px auto;
  display: inline-flex;
  background: var(--bg-soft);
  padding: 6px;
  border-radius: 999px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--white);
}

.tabs-content {
  margin-top: 40px;
}

.tab-panel {
  max-width: 920px;
  margin: 0 auto;
}

/* =========================================================
   PRODUCT LIST
   ========================================================= */

.product-list {
  padding: 120px 0;
  background: var(--bg-section);
}

.product-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.product-card {
  padding: 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3 {
  margin-bottom: var(--space-md);
}

/* =========================================================
   VALUES / TESTIMONIALS
   ========================================================= */

.values-section {
  padding: 120px 0;
  background: var(--bg-main);
}

.values-list {
  margin-top: 32px;
  max-width: 520px;
}

.values-reviews {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  padding: 120px 0;
  background: var(--bg-section);
}

details {
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

summary {
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

/* =========================================================
   CTA BANNER
   ========================================================= */

.cta-banner {
  padding: 100px 0;
  background-size: cover;
  background-position: center;
}

.cta-banner h2 {
  max-width: 520px;
  margin: 0 auto 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-wrapper {
  background: #0A0A0A;
}

.footer-links {
  margin-top: 40px;
}

.footer-links h4 {
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* =========================================================
   RESPONSIVE (STRUCTURE SAFE)
   ========================================================= */

@media (max-width: 1024px) {

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .product-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* =========================================================
   PIXEL PERFECT OVERRIDES
   Forces strict rendering across Chrome, Safari, Firefox
   ========================================================= */

/* 1. FORCE FONT SMOOTHING (Fixes "thicker" text on Windows vs Mac) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Use exact line-height from Figma (usually 1.5 or 1.2) */
  line-height: 1.5; 
}

/* 2. STRICT BOX SIZING */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 3. NORMALIZE IMAGES */
img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Prevents slight blurry shift on some browsers */
  -webkit-backface-visibility: hidden; 
  transform: translateZ(0);
}

/* 4. BUTTON RESET (Browsers add weird padding/borders) */
button, .btn {
  border: none;
  margin: 0;
  padding: 0;
  width: auto;
  overflow: visible;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: normal;
  -webkit-font-smoothing: inherit;
  -moz-osx-font-smoothing: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* 5. INPUT RESET */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0; /* iOS adds rounded corners by default */
}

/* 6. LINK RESET */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* 7. STRICT LAYOUT (Flex/Grid consistency) */
.container {
  /* Ensure padding doesn't add to width */
  width: 100%; 
  max-width: 1240px; /* Exact match your Figma */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 8. REMOVE SCROLLBAR JUMP */
html {
  overflow-y: scroll; /* Forces scrollbar to always show to prevent layout jump */
}