/* === TRACKIO OS — LANDING PAGE STYLES === */

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-alt: #1c2128;
  --fg: #e6edf3;
  --fg-muted: #8b949e;
  --fg-faint: #484f58;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(240, 246, 252, 0.1);
  --green: #3fb950;
  --amber: #f59e0b;
  --radius: 12px;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }

/* Hero */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding: 80px 0; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245,158,11,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(63,185,80,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }

.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-lede { font-size: 18px; color: var(--fg-muted); max-width: 440px; margin-bottom: 36px; line-height: 1.7; }

.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #d97706; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); color: var(--fg); }
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--fg-muted); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.w-full { width: 100%; justify-content: center; }

/* Receipt stack */
.receipt-stack { position: relative; height: 400px; }
.receipt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: absolute;
  width: 300px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.receipt-card-float { top: 0; right: 40px; animation-delay: 0s; z-index: 2; }
.receipt-card-main { bottom: 20px; left: 20px; animation-delay: -2s; z-index: 3; width: 320px; border: 1px solid rgba(245,158,11,0.2); background: #1a1f27; }
.receipt-card-back { top: 60px; left: -10px; opacity: 0.5; animation-delay: -4s; z-index: 1; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

.receipt-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.04em; }
.receipt-dot { width: 8px; height: 8px; border-radius: 50%; }
.receipt-dot-green { background: var(--green); }
.receipt-dot-amber { background: var(--amber); }
.receipt-dot-muted { background: var(--fg-faint); }

.receipt-lines { display: flex; flex-direction: column; gap: 8px; }
.receipt-line { display: flex; justify-content: space-between; align-items: center; }
.receipt-label { font-size: 13px; color: var(--fg-muted); }
.receipt-amount { font-size: 14px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.receipt-vat .receipt-label, .receipt-vat .receipt-amount { color: var(--fg-faint); }
.receipt-vat .receipt-amount { font-weight: 500; }

.receipt-ai-tag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding: 5px 10px;
  background: var(--accent-dim); border-radius: 20px;
  font-size: 11px; font-weight: 600; color: var(--accent);
}

.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 48px; margin-top: 12px;
}
.bar {
  width: 24px; border-radius: 4px 4px 0 0;
  height: var(--h);
  background: var(--fg-faint);
  transition: height 0.3s ease;
}
.bar-active { background: var(--accent); }

.receipt-corner {
  position: absolute; top: 0; right: 0;
  width: 24px; height: 24px;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
  border-radius: 0 var(--radius) 0 0;
}

/* Proof stats */
.proof { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.proof-stat { text-align: center; }
.proof-number { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--fg); margin-bottom: 6px; }
.proof-label { font-size: 13px; color: var(--fg-muted); max-width: 200px; line-height: 1.5; }
.proof-divider { width: 1px; height: 48px; background: var(--border); }

/* Section headers */
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg); }
.section-sub { font-size: 15px; color: var(--fg-muted); margin-top: 12px; }

/* Features */
.features { padding: 96px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.2s ease; }
.feature-card:hover { border-color: rgba(245,158,11,0.25); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; background: var(--accent-dim); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.feature-title { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

.features-not { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.not-header { font-family: var(--font-display); font-size: 24px; color: var(--fg-muted); margin-bottom: 28px; text-align: center; }
.not-header em { color: var(--fg); }
.not-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.not-badge { display: inline-block; padding: 4px 10px; background: var(--bg-card-alt); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--fg-muted); margin-bottom: 10px; }
.not-item p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* Ask demo */
.ask-demo { padding: 96px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ask-demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ask-demo-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 16px; }
.ask-demo-desc { font-size: 16px; color: var(--fg-muted); line-height: 1.7; }

/* Chat window */
.chat-window { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--bg-card); font-weight: 700; font-size: 14px; color: var(--fg); }
.chat-avatar { width: 24px; height: 24px; background: var(--accent); color: #0d1117; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; max-width: 85%; }
.chat-msg-user { background: var(--accent); color: #0d1117; align-self: flex-end; }
.chat-msg-trackio { background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; }
.msg-answer { color: var(--fg); margin-bottom: 10px; font-weight: 600; }
.msg-answer strong { color: var(--accent); }
.msg-breakdown { background: var(--bg-card-alt); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.msg-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-muted); padding: 2px 0; }
.msg-docs { font-size: 11px; color: var(--fg-faint); font-style: italic; }

/* Pricing */
.pricing { padding: 96px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; }
.pricing-featured { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, var(--bg-card) 100%); }
.pricing-featured-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #0d1117; padding: 4px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.pricing-tier { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }
.pricing-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-currency { font-size: 20px; font-weight: 600; color: var(--fg-muted); }
.pricing-number { font-family: var(--font-display); font-size: 48px; font-weight: 400; color: var(--fg); }
.pricing-period { font-size: 14px; color: var(--fg-muted); }
.pricing-desc { font-size: 14px; color: var(--fg-muted); margin-bottom: 24px; line-height: 1.6; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13px; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* Closing */
.closing { padding: 96px 0 80px; text-align: center; }
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-title { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 20px; }
.closing-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 36px; }
.closing-cta { margin-bottom: 32px; }
.closing-stores { display: flex; align-items: center; justify-content: center; gap: 20px; }
.closing-stores a { opacity: 0.7; transition: opacity 0.2s; }
.closing-stores a:hover { opacity: 1; }
.closing-stores img { height: 40px; width: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--fg-muted); }
.footer-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--fg-faint); }
.footer-meta a { color: var(--fg-faint); text-decoration: none; transition: color 0.2s; }
.footer-meta a:hover { color: var(--fg-muted); }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .not-items { grid-template-columns: 1fr; }
  .ask-demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .proof-inner { gap: 24px; }
  .proof-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .receipt-stack { display: none; }
}