/* ==========================================================
   TOASTLYTICS — styles.css
   Sections mirror the HTML structure exactly:
   1. Fonts & Tokens
   2. Reset & Base
   3. Animations & Utilities
   4. NAV
   5. MOBILE NAV
   6. HERO
   7. PROBLEM
   8. FEATURES + DASHBOARD PREVIEW
   9. PROP FIRMS
   10. COMPARISON
   11. TESTIMONIALS
   12. EARLY ACCESS / CTA
   13. FOOTER
   14. RESPONSIVE
   15. POPUP
   ========================================================== */

/* ==========================================================
   1. FONTS & DESIGN TOKENS
   ========================================================== */

:root {
  /* Colours */
  --bg: #0c0a08;
  --surface: #131109;
  --surface2: #1a1710;
  --surface3: #252219;
  --border: rgba(245, 200, 66, 0.08);
  --border2: rgba(245, 200, 66, 0.16);
  --accent: #f5c842;
  --accent2: #ff8c42;
  --accent3: #42c9a0;
  --red: #ff5c5c;
  --text: #f0e8d8;
  --text2: #9a8f78;
  --text3: #5a5240;

  /* Typography */
  --ff: "Fraunces", serif;
  --fm: "DM Mono", monospace;
  --fs: "DM Sans", sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fs);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  line-height: 1.6;
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: var(--surface3);
  border-radius: 2px;
}

/* Shared section layout */
section {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
  position: relative;
  z-index: 1;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Shared section headings */
.section-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: var(--ff);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.7;
}
.section-center {
  text-align: center;
}
.section-center .section-sub {
  margin: 0 auto;
}

/* Shared buttons */
.btn-primary {
  padding: 14px 32px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0c0a08;
  font-family: var(--ff);
  font-weight: 900;
  font-size: 15px;
  font-style: italic;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 200, 66, 0.3);
}

.btn-secondary {
  padding: 14px 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text);
  font-family: var(--ff);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

/* ==========================================================
   3. ANIMATIONS & UTILITIES
   ========================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(245, 200, 66, 0.1);
  }
  50% {
    box-shadow: 0 0 60px rgba(245, 200, 66, 0.25);
  }
}

/* Hero stagger helpers */
.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.fade-up-1 {
  animation-delay: 0.1s;
}
.fade-up-2 {
  animation-delay: 0.2s;
}
.fade-up-3 {
  animation-delay: 0.3s;
}
.fade-up-4 {
  animation-delay: 0.4s;
}
.fade-up-5 {
  animation-delay: 0.55s;
}

/* Scroll-reveal — toggled by IntersectionObserver in main.js */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo shimmer text */
.logo-shimmer {
  background: linear-gradient(135deg, #f5c842, #ff8c42, #f5c842);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Feature badges */
.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge-unique {
  background: rgba(245, 200, 66, 0.12);
  color: var(--accent);
  border: 1px solid var(--border2);
}
.badge-new {
  background: rgba(66, 201, 160, 0.12);
  color: var(--accent3);
  border: 1px solid rgba(66, 201, 160, 0.2);
}
.badge-pro {
  background: rgba(255, 140, 66, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(255, 140, 66, 0.2);
}

/* ==========================================================
   6. HERO
   ========================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px clamp(20px, 5vw, 60px) 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(245, 200, 66, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: glow 4s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(255, 140, 66, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid var(--border2);
  background: rgba(245, 200, 66, 0.06);
}

/* ==========================================================
   8. FEATURES + DASHBOARD PREVIEW
   ========================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--ff);
  font-weight: 700;
  font-size: 19px;
  font-style: italic;
  margin-bottom: 10px;
}
.feature-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}



/* ==========================================================
   12. EARLY ACCESS / CTA
   ========================================================== */
.cta-section {
  background: linear-gradient(
    160deg,
    rgba(245, 200, 66, 0.05) 0%,
    var(--bg) 60%
  );
  border-top: 1px solid var(--border);
}

/* Desktop: two-column left/right split */
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left column — text content */
.cta-left {
  display: flex;
  flex-direction: column;
}
.cta-title {
  font-family: var(--ff);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.cta-title em {
  font-style: italic;
  color: var(--accent);
}
.cta-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Trust signals under the left text */
.cta-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--text2);
}
.cta-trust-icon {
  color: var(--accent3);
  font-size: 14px;
  flex-shrink: 0;
}

/* Right column — form */
.cta-right {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.cta-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.cta-form-title {
  font-family: var(--ff);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 16px;
}

.form-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}
.form-input,
.form-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--fm);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
}
.form-select {
  cursor: pointer;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 15px;
  margin-top: 4px;
}

.form-status {
  font-family: var(--fm);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 20px;
}

.cta-note {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  margin-top: 14px;
}
.cta-note a {
  color: var(--accent);
  text-decoration: none;
}
.cta-note a:hover {
  text-decoration: underline;
}

/* Tablet + mobile: single column centred (matching previous look) */
@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 560px;
    text-align: center;
  }
  .cta-left {
    align-items: center;
  }
  .cta-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-trust {
    align-items: flex-start;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ==========================================================
   14. RESPONSIVE
   ========================================================== */



/* ==========================================================
   16. FAQ SECTION (Shared)
   ========================================================== */
.tools-faq-section {
  max-width: 800px;
  margin: 80px auto 60px;
  position: relative;
  z-index: 10;
}
.faq-title {
  font-family: var(--ff);
  font-size: 32px;
  color: #fff;
  margin-bottom: 32px;
  text-align: center;
  font-style: italic;
}
.faq-item {
  background: rgba(15,15,18,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-trigger {
  padding: 24px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--fs);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-trigger::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq-item.active .faq-trigger::after {
  transform: rotate(45deg);
}
.faq-content {
  padding: 0 24px 24px;
  color: var(--text2);
  line-height: 1.7;
  display: none;
}
.faq-item.active .faq-content {
  display: block;
  animation: fadeUp 0.3s ease;
}