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

:root {
  /* Linear-esque SaaS Dark Theme based on FORO palette */
  --foro-bg: #0F1825;
  --foro-bg-gradient: linear-gradient(175deg, #121A2A 0%, #080D15 100%);
  --foro-bg-atmosphere: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(192,174,187,0.15), transparent);
  
  --foro-card-bg: rgba(255,255,255,0.02);
  --foro-card-hover: rgba(255,255,255,0.04);
  
  --foro-accent: #C0AEBB;
  --foro-accent-glow: rgba(192,174,187,0.3);
  
  --foro-text-primary: #FFFFFF;
  --foro-text-secondary: rgba(255,255,255,0.6);
  --foro-text-ghost: rgba(255,255,255,0.4);
  
  --foro-border-default: rgba(255,255,255,0.08);
  --foro-border-subtle: rgba(255,255,255,0.04);
  
  --foro-cta-bg: #F0EAF2; /* Make the primary CTA pop like Linear's white buttons */
  --foro-cta-text: #080D15;
  
  --foro-divider: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
}

/* ---- THEMES ---- */
.theme-light {
  --foro-bg: #F9F9FB;
  --foro-bg-gradient: #F9F9FB;
  --foro-text-primary: #080D15;
  --foro-text-secondary: rgba(8, 13, 21, 0.7);
  --foro-text-ghost: rgba(8, 13, 21, 0.4);
  --foro-card-bg: #FFFFFF;
  --foro-card-hover: #F0F2F5;
  --foro-border-default: rgba(8, 13, 21, 0.1);
  --foro-border-subtle: rgba(8, 13, 21, 0.05);

  background: var(--foro-bg-gradient);
  color: var(--foro-text-primary);
  /* Reset accents for light mode */
  --foro-accent: #9A7B94; 
  /* Optional: Light mode typography clip override */
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--foro-bg-gradient);
  background-attachment: fixed;
  color: var(--foro-text-primary);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .hero-huge, .section-title, .card-title {
  font-family: 'Prata', serif;
  font-weight: 400;
}

/* Base Desktop Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Atmosphere light source - very subtle top glow */
.atmosphere {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 800px;
  background: var(--foro-bg-atmosphere);
  pointer-events: none;
  z-index: 0;
}

/* ---- NAV (SaaS Style) ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 21, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--foro-border-subtle);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--foro-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark-inline {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--foro-accent);
  font-family: 'Inter', sans-serif;
  font-style: normal;
}

.nav-links {
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }
}
.nav-links a {
  color: var(--foro-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--foro-text-primary);
}

/* ---- TYPOGRAPHY ---- */
.hero-huge {
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
  .hero-huge { 
    font-size: 88px; 
    letter-spacing: -3.5px;
  }
}

.section-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title { 
    font-size: 48px;
    letter-spacing: -1.5px;
  }
}

.section-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(192,174,187,0.1);
  border: 1px solid rgba(192,174,187,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--foro-accent);
  margin-bottom: 24px;
}

p.lead {
  font-size: 18px;
  color: var(--foro-text-secondary);
  line-height: 1.6;
  font-weight: 400;
}
@media (min-width: 768px) {
  p.lead { font-size: 21px; }
}

p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--foro-text-secondary);
}

.accent-highlight {
  color: var(--foro-accent);
  -webkit-text-fill-color: var(--foro-accent);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px; /* Standard SaaS button radius */
  transition: all 0.2s ease;
  height: 48px;
  padding: 0 24px;
}

.btn-primary {
  background: var(--foro-accent);
  color: #080D15;
  box-shadow: 0 4px 14px rgba(192,174,187,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #D4C3CF; 
  box-shadow: 0 6px 24px rgba(192,174,187,0.3), 0 0 0 1px rgba(255,255,255,0.2) inset;
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--foro-text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

.btn-nav {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 6px;
}

/* ---- ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- STICKY LAYOUT ---- */
.sticky-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 768px) {
  .sticky-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .sticky-sidebar {
    flex: 1;
    position: sticky;
    top: 180px;
    align-self: flex-start;
    padding-right: 48px;
  }
  .sticky-content {
    flex: 1.5;
  }
}

/* ---- INFINITE MARQUEE ---- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0;
  border-top: 1px solid var(--foro-border-subtle);
  border-bottom: 1px solid var(--foro-border-subtle);
  background: rgba(0,0,0,0.2);
}
.marquee-content {
  display: inline-flex;
  gap: 64px;
  padding-right: 64px; /* Matches gap to make loop seamless */
  animation: scroll-left 40s linear infinite;
}
.marquee-content:hover {
  animation-play-state: paused;
}
.quote-pill {
  font-size: 18px;
  font-weight: 500;
  color: var(--foro-text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-src {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--foro-text-ghost);
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Giant Tagline */
.big-tagline {
  font-size: 40px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--foro-text-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 40px 0;
}
@media (min-width: 768px) {
  .big-tagline {
    font-size: 72px;
    letter-spacing: -3px;
  }
}

/* ---- SECTIONS ---- */
section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
@media (min-width: 768px) {
  section { padding: 140px 0; }
}

.hero {
  text-align: center;
  padding: 120px 0 80px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero { padding: 180px 0 120px; }
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

/* ---- BENTO / CARDS ---- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .bento-grid { 
    grid-template-columns: repeat(12, 1fr); 
    grid-auto-rows: minmax(300px, auto);
  }
  .col-4 { grid-column: span 4; }
  .col-8 { grid-column: span 8; }
  .col-6 { grid-column: span 6; }
  .col-3 { grid-column: span 3; }
}

/* ---- CAROUSEL ---- */
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
.carousel-card {
  flex: 0 0 85vw;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .carousel-card {
    flex: 0 0 380px;
  }
}

.arrow-controls {
  display: flex;
  gap: 12px;
}
.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--foro-border-default);
  background: var(--foro-card-bg);
  color: var(--foro-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.arrow-btn:hover {
  background: var(--foro-card-hover);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.saas-card {
  background: var(--foro-card-bg);
  border: 1px solid var(--foro-border-default);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.saas-card:hover {
  border-color: rgba(192,174,187,0.3);
  background: var(--foro-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.theme-light .saas-card:hover {
  box-shadow: 0 12px 32px rgba(8,13,21,0.06), 0 0 0 1px rgba(0,0,0,0.02) inset;
}

/* Top internal subtle gradient */
.saas-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foro-text-primary);
  letter-spacing: -0.5px;
}

.number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--foro-text-primary);
  margin-bottom: 24px;
}

/* ---- QUOTE ---- */
.stat-quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.stat-text {
  font-size: 24px;
  font-weight: 500;
  color: var(--foro-text-primary);
  line-height: 1.4;
  letter-spacing: -0.5px;
}
@media (min-width: 768px) {
  .stat-text { font-size: 32px; }
}
.stat-author {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--foro-text-ghost);
  margin-top: 24px;
}

/* ---- INPUT CAPTURE ---- */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--foro-border-subtle);
  background: radial-gradient(ellipse at bottom, rgba(192,174,187,0.05), transparent 60%);
}

.input-capture {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 40px auto 0;
  max-width: 480px;
}
.input-wrapper {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--foro-border-default);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 48px;
  transition: border-color 0.2s;
}
.input-wrapper:focus-within {
  border-color: var(--foro-text-primary);
}
.input-field {
  background: transparent;
  border: none;
  color: var(--foro-text-primary);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  outline: none;
}
.input-field::placeholder {
  color: var(--foro-text-ghost);
}
@media (min-width: 768px) {
  .input-capture {
    flex-direction: row;
    gap: 8px;
  }
  .input-wrapper {
    flex: 1;
  }
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--foro-border-subtle);
}
.faq-question {
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon {
  color: var(--foro-text-secondary);
  transition: transform 0.2s;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p {
  padding-bottom: 24px;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--foro-border-subtle);
  padding: 64px 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-text {
  font-size: 14px;
  color: var(--foro-text-ghost);
}

/* Typography Overrides */
.accent-highlight {
  color: var(--foro-accent);
  font-family: 'PP Editorial New', 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}
