/* CoffeeTrack — Linear-inspired Landing */

:root {
  --bg: #08070A;
  --bg2: #0E0D12;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #D98C38;
  --accent-soft: rgba(217,140,56,0.1);
  --accent-glow: rgba(217,140,56,0.15);
  --text-1: rgba(255,255,255,0.95);
  --text-2: rgba(255,255,255,0.50);
  --text-3: rgba(255,255,255,0.25);
  --green: #4ADE80;
  --red: #F87171;
  --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-in.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8,7,10,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 56px; }
.nav-logo { font-size: 16px; font-weight: 700; letter-spacing: -0.4px; color: var(--text-1); }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--text-1); }
.nav-cta { font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 6px; background: var(--accent); color: var(--bg); transition: opacity .15s; }
.nav-cta:hover { opacity: .85; }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; width: 20px; height: 16px; position: relative; }
.nav-mobile span { display: block; width: 100%; height: 1.5px; background: var(--text-2); position: absolute; left: 0; transition: .3s; }
.nav-mobile span:first-child { top: 2px; }
.nav-mobile span:last-child { bottom: 2px; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 600; font-family: var(--font); border: none; cursor: pointer; transition: opacity .15s, transform .15s; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-arrow { font-size: 16px; transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-secondary { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; font-family: var(--font); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-1); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 10px; }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-gradient { position: absolute; top: 20%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 500px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; opacity: .5; }
.hero-eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 700; letter-spacing: -2.5px; line-height: 1.0; margin-bottom: 24px; }
.hero-desc { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); line-height: 1.6; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 13px; color: var(--text-3); }

/* ── Proof ── */
.proof { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.proof-item { text-align: center; padding: 0 40px; }
.proof-num { display: block; font-size: 28px; font-weight: 700; letter-spacing: -1px; color: var(--text-1); }
.proof-label { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; font-weight: 500; }
.proof-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ── Sections ── */
.section { padding: 120px 0; }
.section-alt { background: var(--bg2); }
.section-intro { text-align: center; margin-bottom: 64px; }
.section-label { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-intro h2 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
.section-desc { font-size: 16px; color: var(--text-2); margin-top: 12px; }

/* ── Features ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feat { background: var(--bg); padding: 32px; transition: background .2s; }
.feat:hover { background: var(--surface); }
.feat-icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 16px; }
.feat-icon svg { width: 100%; height: 100%; }
.feat h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.2px; }
.feat p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .2s; }
.step:hover { border-color: var(--border-hover); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── Roles ── */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role { padding: 32px; border: 1px solid var(--border); border-radius: 12px; text-align: center; background: var(--surface); transition: border-color .2s; }
.role:hover { border-color: var(--border-hover); }
.role-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; margin-left: auto; margin-right: auto; }
.role-icon svg { width: 100%; height: 100%; }
.role h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.role p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── Pricing ── */
.price-card { max-width: 420px; margin: 0 auto; padding: 48px 40px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); text-align: center; position: relative; }
.price-card::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.price-tag { display: inline-block; padding: 4px 14px; border-radius: 100px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 24px; }
.price-row { margin-bottom: 4px; }
.price-amount { font-size: 56px; font-weight: 700; letter-spacing: -3px; }
.price-period { font-size: 16px; color: var(--text-2); }
.price-sub { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.price-list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.price-list li { font-size: 14px; color: var(--text-2); padding-left: 20px; position: relative; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 12px; }
.price-note { font-size: 12px; color: var(--text-3); margin-top: 14px; }

/* ── FAQ ── */
.faq { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 20px 0; font-size: 15px; font-weight: 500; color: var(--text-1); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--text-3); font-weight: 300; }
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { font-size: 14px; color: var(--text-2); line-height: 1.7; padding-bottom: 20px; }

/* ── CTA ── */
.cta-section { padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); pointer-events: none; opacity: .4; }
.cta-section h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 17px; color: var(--text-2); margin-bottom: 32px; position: relative; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-col a:hover { color: var(--text-1); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: rgba(8,7,10,.97); backdrop-filter: blur(16px); padding: 32px 24px; gap: 20px; z-index: 99; }
  .nav-links.open a { font-size: 18px; color: var(--text-1); }
  .nav-cta { display: none; }
  .nav-mobile { display: block; margin-left: auto; }
  .hero { padding: 100px 24px 60px; }
  .hero-desc br { display: none; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .proof-grid { flex-wrap: wrap; gap: 20px; }
  .proof-sep { display: none; }
  .price-card { padding: 36px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-section h2 br { display: none; }
  .section { padding: 80px 0; }
  .showcase-item { grid-template-columns: 1fr; gap: 40px; }
  .showcase-item.reverse .showcase-text { order: 1; }
  .showcase-item.reverse .showcase-visual { order: 2; }
}

/* ═══════════════════════════════════════════════════
   Feature Showcases
   ═══════════════════════════════════════════════════ */

.showcase-section { padding: 80px 0; }
.showcase-section:nth-child(odd) { background: var(--bg2); }

.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-item.reverse .showcase-text { order: 2; }
.showcase-item.reverse .showcase-visual { order: 1; }

.showcase-icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 16px; }
.showcase-icon svg { width: 100%; height: 100%; }

.showcase-text h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 14px; }
.showcase-text p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.showcase-text ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.showcase-text li { font-size: 14px; color: var(--text-2); padding-left: 22px; position: relative; }
.showcase-text li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; font-size: 13px; }

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.sc-svg { width: 100%; height: auto; display: block; }

/* ── SVG Animations ── */

/* Bars grow from bottom */
.sc-bar-grow { transform-origin: bottom; transform: scaleY(0); }
.visible .sc-bar-grow { animation: barGrow 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes barGrow { to { transform: scaleY(1); } }

/* Staggered fade-in (1-5) */
.sc-fade-in-1, .sc-fade-in-2, .sc-fade-in-3, .sc-fade-in-4, .sc-fade-in-5 { opacity: 0; transform: translateY(8px); }
.visible .sc-fade-in-1 { animation: scFadeIn 0.5s 0.1s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-fade-in-2 { animation: scFadeIn 0.5s 0.25s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-fade-in-3 { animation: scFadeIn 0.5s 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-fade-in-4 { animation: scFadeIn 0.5s 0.55s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-fade-in-5 { animation: scFadeIn 0.5s 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes scFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Pulse animation */
.sc-pulse { animation: none; }
.visible .sc-pulse { animation: scPulse 2s ease-in-out infinite; }
@keyframes scPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Slide right (for task card move) */
.sc-slide-right { transform: translateX(0); }
.visible .sc-slide-right { animation: scSlideRight 1.2s 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes scSlideRight { to { transform: translateX(120px); } }

/* Check appear */
.sc-check-appear { opacity: 0; transform: scale(0); }
.visible .sc-check-appear { animation: scCheckAppear 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes scCheckAppear { to { opacity: 1; transform: scale(1); } }

/* Staggered check (for checklist items) */
.visible .sc-check-1 { animation-delay: 0.2s; }
.visible .sc-check-2 { animation-delay: 0.5s; }
.visible .sc-check-3 { animation-delay: 0.8s; }

/* Bar grow with stagger */
.visible .sc-bar-1 { animation-delay: 0.1s; }
.visible .sc-bar-2 { animation-delay: 0.2s; }
.visible .sc-bar-3 { animation-delay: 0.3s; }
.visible .sc-bar-4 { animation-delay: 0.4s; }
.visible .sc-bar-5 { animation-delay: 0.5s; }
.visible .sc-bar-6 { animation-delay: 0.6s; }

/* Geofence pulse ring */
.sc-geo-pulse { transform-origin: center; }
.visible .sc-geo-pulse { animation: scGeoPulse 2s ease-out infinite; }
@keyframes scGeoPulse { 0% { r: 60; opacity: 0.4; } 100% { r: 90; opacity: 0; } }

/* Stamp fill */
.sc-stamp-fill { opacity: 0; transform: scale(0.5); }
.visible .sc-stamp-fill { animation: scStampFill 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-stamp-1 { animation-delay: 0.1s; }
.visible .sc-stamp-2 { animation-delay: 0.2s; }
.visible .sc-stamp-3 { animation-delay: 0.3s; }
.visible .sc-stamp-4 { animation-delay: 0.4s; }
.visible .sc-stamp-5 { animation-delay: 0.5s; }
.visible .sc-stamp-6 { animation-delay: 0.6s; }
.visible .sc-stamp-7 { animation-delay: 0.7s; }
@keyframes scStampFill { to { opacity: 1; transform: scale(1); } }

/* Widget fade */
.sc-widget-fade { opacity: 0; }
.visible .sc-widget-fade { animation: scFadeIn 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) forwards; }

/* Notification badge bounce */
.sc-badge-bounce { opacity: 0; transform: scale(0); }
.visible .sc-badge-bounce { animation: scBadgeBounce 0.5s 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes scBadgeBounce { to { opacity: 1; transform: scale(1); } }

/* Health bar width animation */
.sc-health-bar { transform-origin: left; transform: scaleX(0); }
.visible .sc-health-bar { animation: scHealthGrow 1s cubic-bezier(0.16,1,0.3,1) forwards; }
.visible .sc-health-1 { animation-delay: 0.15s; }
.visible .sc-health-2 { animation-delay: 0.35s; }
.visible .sc-health-3 { animation-delay: 0.55s; }
@keyframes scHealthGrow { to { transform: scaleX(1); } }

/* Progress bar */
.sc-progress-bar { transform-origin: left; transform: scaleX(0); }
.visible .sc-progress-bar { animation: scHealthGrow 0.8s 0.1s cubic-bezier(0.16,1,0.3,1) forwards; }
