:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-dark: #121212;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-light: #F3F4F6;
  --accent-teal: #20B2AA;
  --accent-teal-hover: #1b9b94;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

section {
  padding: 100px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout Utilities */
.two-column {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.two-column > * {
  flex: 1;
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-teal-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-teal);
  border: 2px solid var(--accent-teal);
}

.btn-outline:hover {
  background-color: rgba(32, 178, 170, 0.05);
}

/* Header/Nav */
.site-header {
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-teal);
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px) {
  .two-column {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .two-column.reverse-mobile {
    flex-direction: column-reverse;
  }
  
  section {
    padding: 80px 5%;
  }

  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* -------------------------------------------
   Custom Component Styles
---------------------------------------------- */

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent-teal);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-primary);
}

.mockup-container {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0,0,0,0.25));
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: #F9FAFB;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5E7EB;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: auto;
  margin-right: auto;
}

/* Toggle Buttons */
.toggle-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.active {
  background: #E2E8F0;
  color: #0F172A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.toggle-btn:not(.active) {
  background: transparent;
  color: #6B7280;
}

.toggle-btn:not(.active):hover {
  color: #111827;
  background: rgba(226, 232, 240, 0.4);
}

/* Fin Data Table */
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fin-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

.fin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--bg-secondary);
  color: white;
}

.prog-bar-container {
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  width: 100px;
}

.prog-bar {
  height: 100%;
  background: var(--accent-teal);
}

/* Social Proof */
.social-proof {
  background: var(--bg-secondary);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  margin-bottom: 0;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.review-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tweet-card {
  background: #15202B;
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.tweet-card .text-secondary {
  color: #8899A6;
}

.tweet-card p {
  color: white;
}

/* Donut Chart */
.donut-chart-container {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(
    #20B2AA 0% 35%,
    #17807A 35% 60%,
    #0E4D49 60% 80%,
    #7AD9D4 80% 95%,
    #E5E7EB 95% 100%
  );
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-hole {
  width: 180px;
  height: 180px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset var(--shadow-sm);
}

.donut-hole span {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.donut-hole small {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--accent-teal);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.features-list {
  list-style: none;
  margin: 2rem 0;
  flex: 1;
}

.features-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.features-list li svg {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 4px;
}

.pricing-card .btn {
  width: 100%;
}

/* Footer */
footer {
  padding: 4rem 5%;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer .logo {
  font-size: 2rem;
  letter-spacing: 4px;
}

/* Bullet list */
.custom-bullets {
  list-style: none;
}
.custom-bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.custom-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
}

/* Book Cover Mockup */
.book-mockup {
  width: 280px;
  height: 400px;
  background: white;
  box-shadow: -15px 15px 30px rgba(0,0,0,0.1), inset -2px 0 5px rgba(0,0,0,0.05);
  border-radius: 4px 12px 12px 4px;
  position: relative;
  margin: 0 auto;
  border-left: 8px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  transform: perspective(600px) rotateY(-10deg);
  transition: transform 0.3s;
}

.book-mockup:hover {
  transform: perspective(600px) rotateY(0deg);
}

.book-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.book-author {
  font-size: 0.9rem;
  color: var(--accent-teal);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: auto;
}

.book-icon {
  color: var(--accent-teal);
  margin-bottom: 2rem;
}

/* Technical Chart */
.chart-container {
  background: #121212;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-xl);
}
.chart-header {
  color: #E5E7EB;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #374151;
  padding-bottom: 10px;
}
.chart-body {
  height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 20px;
  position: relative;
}
.chart-body::before, .chart-body::after, .chart-body .grid-line {
    content:'';
    position:absolute;
    left:0;
    right:0;
    height:1px;
    background:#374151;
}
.chart-body::before { top: 25%; }
.chart-body .grid-line { top: 50%; }
.chart-body::after { top: 75%; }

.candle {
  flex: 1;
  background: rgba(255,255,255,0.1); /* wick */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.candle-body {
  width: 60%;
  position: absolute;
  border-radius: 2px;
}
.candle.up .candle-body { background: #10B981; }
.candle.down .candle-body { background: #EF4444; }

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

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------
   Scroll Reveal Animations
---------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Optional: Staggered reveal for children */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }