/* ═══════════════════════════════════════
   PIPTRACE LANDING — Premium Theme
   ═══════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --green: #1a3c34;
  --green-mid: #2d5a4e;
  --green-light: #10b981;
  --green-glow: rgba(16, 185, 129, 0.12);
  --yellow: #FFC300;
  --yellow-dark: #e6b000;
  --yellow-soft: #fff8e0;
  --yellow-glow: rgba(255, 195, 0, 0.15);
  --cream: #f0ede6;
  --bg: #ffffff;
  --bg-alt: #f8f7f4;
  --bg-warm: #f0ede6;
  --bg-dark: #0c1f1a;
  --text: #111111;
  --text-body: #3d3d3d;
  --text-muted: #6b6b6b;
  --border: #e2dfda;
  --border-hover: #1a3c34;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --forest-green: #1a472a;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* ── Sections ── */
section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green-light);
  margin-bottom: 16px;
  position: relative;
}

.section-tag::before {
  content: '—';
  margin-right: 6px;
  color: var(--green-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--forest-green);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--green);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-sub {
  margin: 0 auto;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 60, 52, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  padding: 14px 20px;
}

.btn-ghost:hover {
  color: var(--green);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}


/* ── Top Bar ── */
.top-bar {
  background: linear-gradient(135deg, var(--green) 0%, #0f2b24 100%);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.82rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.08), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.top-bar a {
  color: var(--green-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 32px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-only-cta {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Hero ── */
.hero {
  padding: 80px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Floating orb background */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}

.hero-label::before {
  content: '🚀';
  margin-right: 6px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--forest-green);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  background: linear-gradient(135deg, var(--green) 30%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-rating .stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Hero Bento Grid */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  animation: heroFloat 6s ease-in-out infinite;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.bento-main {
  grid-column: 1 / -1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-xl);
}

.bento-img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.bento-stats {
  background: linear-gradient(135deg, var(--green) 0%, #0f2b24 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.bento-stats::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent);
  border-radius: 50%;
}

.bento-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bento-big-number {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  display: inline;
}

.bento-suffix {
  font-size: 1.4rem;
  font-weight: 700;
  display: inline;
  opacity: 0.8;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: 16px;
  height: 50px;
}

.mini-bar {
  flex: 1;
  height: var(--h);
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px 4px 0 0;
  animation: barGrow 1s ease-out forwards;
  animation-delay: var(--delay);
  transform-origin: bottom;
  transform: scaleY(0);
}

.mini-bar.accent {
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.bento-chart {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
}

.bento-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.bento-trend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.1);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
}

.line-chart {
  width: 100%;
  height: 50px;
}

.chart-line {
  fill: none;
  stroke: var(--green-light);
  stroke-width: 2;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2s ease-out 0.5s forwards;
}

.chart-fill {
  fill: rgba(16, 185, 129, 0.08);
  stroke: none;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

.bento-pairs {
  grid-column: 1 / -1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.pair-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

.pair-row:last-child {
  border: none;
}

.pair-pnl.positive {
  color: var(--green-light);
  font-weight: 700;
}


/* ── Marquee ── */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.marquee-item strong {
  color: var(--text);
  font-weight: 700;
}

.marquee-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
}


/* ── Features Bento ── */
#features {
  background: var(--bg-alt);
}

.feature-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.fb-card {
  border-radius: var(--radius-xl);
  padding: 40px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.fb-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.fb-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.fb-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.dark-card {
  background: linear-gradient(135deg, var(--green) 0%, #0f2b24 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dark-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.7);
}

.light-card {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.light-card p {
  color: var(--text-body);
}

.accent-card {
  background: #f0faf5;
  color: var(--text);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.accent-card p {
  color: var(--text-body);
}

.fb-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fb-wide {
  grid-column: 1 / -1;
}

/* Animated bars */
.fb-visual {
  margin-top: 24px;
}

.animated-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 16px;
}

.abar {
  flex: 1;
  height: var(--h);
  background: var(--color, rgba(255, 255, 255, 0.2));
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: barGrow 0.8s ease-out forwards;
  animation-delay: var(--delay);
}

.abar:last-child {
  background: #fff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.fb-amount {
  font-size: 2rem;
  font-weight: 900;
}

.fb-trend-tag {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 4px;
  color: var(--green-light);
}

/* Sync visual */
.fb-sync-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-light);
}

.sync-dot {
  width: 10px;
  height: 10px;
  background: var(--green-light);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.sync-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
  margin-left: -30px;
}

/* Journal lines */
.fb-journal-lines {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.j-line {
  height: 8px;
  width: var(--w);
  background: rgba(26, 60, 52, 0.12);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  animation: lineGrow 0.6s ease-out forwards;
  animation-delay: var(--delay);
}

/* Risk chart */
.fb-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
}

.fb-risk-chart {
  position: relative;
}

.risk-line {
  width: 100%;
  height: 80px;
}

.risk-path {
  fill: none;
  stroke: var(--green-light);
  stroke-width: 2.5;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2.5s ease-out 0.3s forwards;
}

.risk-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-light);
  margin-top: 8px;
}


/* ── Benefits ── */
.benefits-section {
  background: var(--bg);
}

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

.benefit-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--green-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ── Testimonials ── */
.testimonials-section {
  background: var(--bg-alt);
}

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

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.t-stars {
  color: var(--yellow);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 195, 0, 0.35);
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(26, 60, 52, 0.2);
}

.t-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.t-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* ── Steps ── */
#how-it-works {
  background: var(--bg);
}

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

.step-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green-light);
  opacity: 0.35;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── FAQ ── */
#faq {
  background: var(--bg-alt);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.faq-item.active .faq-toggle {
  background: var(--green);
  color: #fff;
  transform: rotate(45deg);
  border-color: var(--green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}


/* ── CTA ── */
.cta-section {
  padding: 80px 0;
  background: var(--bg);
}

.cta-card {
  background: linear-gradient(135deg, var(--green) 0%, #0f2b24 100%);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
  animation: floatOrb 6s ease-in-out infinite alternate;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-card .section-tag {
  color: var(--green-light);
}

.cta-card .section-title {
  color: #fff;
}

.cta-card .section-title em {
  color: var(--green-light);
}

.cta-card .section-sub {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 32px;
}

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

.cta-actions .btn-primary {
  background: #fff;
  color: var(--green);
  font-weight: 700;
}

.cta-actions .btn-primary::after {
  display: none;
}

.cta-actions .btn-primary:hover {
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-actions .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}


/* ── Footer ── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

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

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ═══════════ ANIMATIONS ═══════════ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Word-by-word hero */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(20deg);
  animation: wordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
  margin-right: 0.18em;
}

.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes wordUp {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bar chart grow */
@keyframes barGrow {
  0% {
    transform: scaleY(0);
  }

  60% {
    transform: scaleY(1.1);
  }

  100% {
    transform: scaleY(1);
  }
}

/* Line chart draw */
@keyframes drawLine {
  0% {
    stroke-dashoffset: 500;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* Fade in */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Line grow */
@keyframes lineGrow {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

/* Pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* Marquee */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Float orb */
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 20px) scale(1.1);
  }

  100% {
    transform: translate(20px, -15px) scale(0.95);
  }
}

/* Hero float */
@keyframes heroFloat {

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

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

/* Shimmer */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}


/* ═══════════ APP PREVIEW SECTION ═══════════ */
.app-preview-section {
  background: var(--bg);
  padding: 100px 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.preview-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.dark-preview {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #e0e0e0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wide-preview {
  grid-column: 1 / -1;
}

.preview-header {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.preview-sub {
  font-size: 0.78rem;
  color: #666;
  margin-top: 4px;
}

/* ── Discipline Bars ── */
.discipline-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.disc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.disc-icon {
  font-size: 1rem;
}

.disc-pct {
  font-size: 0.9rem;
  font-weight: 700;
}

.disc-pct.green {
  color: #10b981;
}

.disc-pct.yellow {
  color: var(--yellow);
}

.disc-pct.red {
  color: #ef4444;
}

.disc-bar {
  height: 8px;
  background: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.disc-fill {
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  animation: fillBar 1s ease-out forwards;
  animation-delay: var(--d);
}

.disc-fill.green {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.disc-fill.yellow {
  background: linear-gradient(90deg, #f59e0b, var(--yellow));
}

.disc-fill.red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ── Donut Chart ── */
.donut-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.donut-chart {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: #2a2a2a;
  stroke-width: 14;
}

.donut-loss {
  fill: none;
  stroke: #ef4444;
  stroke-width: 14;
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: donutDraw 1.5s ease-out forwards;
}

.donut-win {
  fill: none;
  stroke: #10b981;
  stroke-width: 14;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  stroke-linecap: round;
  animation: donutWin 1.5s ease-out 0.3s forwards;
}

.donut-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-pct {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}

.donut-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.donut-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #aaa;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.green {
  background: #10b981;
}

.legend-dot.red {
  background: #ef4444;
}

.legend-dot.gray {
  background: #555;
}

/* ── Progress Tracker ── */
.tracker-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #aaa;
}

.tracker-record {
  font-weight: 600;
}

.tracker-pnl strong.green {
  color: #10b981;
}

.tracker-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.t-stat {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

.t-stat.green-bg {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.t-stat.red-bg {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(0.5);
  animation: calPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d);
}

.cal-day.win {
  background: #10b981;
}

.cal-day.lose {
  background: #ef4444;
}

.cal-day.empty {
  background: #333;
}

.cal-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.78rem;
  color: #888;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}

.cal-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Rule Compliance ── */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.rule-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.rule-icon {
  font-size: 0.9rem;
}

.rule-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #888;
}

.rule-pct {
  font-weight: 700;
  font-size: 0.9rem;
}

.rule-pct.green {
  color: #10b981;
}

.rule-pct.yellow {
  color: var(--yellow);
}

.rule-pct.red {
  color: #ef4444;
}

.rule-bar {
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.rule-fill {
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  transform-origin: left;
  transform: scaleX(0);
  animation: fillBar 1s ease-out forwards;
  animation-delay: var(--d);
}

.rule-fill.green-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.rule-fill.yellow-fill {
  background: linear-gradient(90deg, #f59e0b, var(--yellow));
}

.rule-fill.red-fill {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ── Preview Keyframes ── */
@keyframes fillBar {
  0% {
    transform: scaleX(0);
  }

  70% {
    transform: scaleX(1.02);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes donutDraw {
  0% {
    stroke-dashoffset: 314;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes donutWin {
  0% {
    stroke-dashoffset: 314;
  }

  100% {
    stroke-dashoffset: 188;
  }
}

@keyframes calPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ═══════════ RESPONSIVE ═══════════ */


@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-desc {
    margin: 0 auto 36px;
    max-width: 520px;
  }

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

  .feature-bento {
    grid-template-columns: 1fr 1fr;
  }

  .fb-large {
    grid-row: auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Top bar */
  .top-bar {
    font-size: 0.75rem;
    padding: 8px 0;
  }

  /* Navbar */
  .logo-img {
    height: 26px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .mobile-only-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  .mobile-only-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
    z-index: 999;
  }

  /* Hero */
  .hero {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-bento {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Features */
  .feature-bento {
    grid-template-columns: 1fr;
  }

  .fb-large {
    grid-row: auto;
  }

  .fb-wide .fb-risk-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fb-card {
    padding: 28px;
  }

  .animated-bars {
    height: 80px;
  }

  /* Preview */
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .wide-preview {
    grid-column: auto;
  }

  .preview-card {
    padding: 24px;
  }

  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Others */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .cta-card {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-sub {
    font-size: 0.9rem;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .bento-big-number {
    font-size: 2rem;
  }

  .hero-bento {
    grid-template-columns: 1fr;
  }
}