/* ===== FirstFix Website — Main Stylesheet ===== */
/* Design system: FirstFix trade yellow + dark navy + clean white */

:root {
  /* Brand */
  --yellow: #F2E505;
  --yellow-dark: #D4C804;
  --yellow-light: #FFFBE6;
  --navy: #1a1a2e;
  --navy-light: #2a2a3e;
  --black: #111111;
  
  /* Semantic */
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  
  /* Neutrals */
  --gray-50: #f8f8f8;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #ccc;
  --gray-400: #999;
  --gray-500: #777;
  --gray-600: #555;
  --gray-700: #444;
  --gray-800: #333;
  --gray-900: #222;
  
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-logo svg { height: 32px; width: auto; }
.nav-logo-img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px !important;
}
.nav-cta:hover { background: var(--yellow-dark) !important; color: var(--black) !important; }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242,229,5,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(242,229,5,0.12);
  border: 1px solid rgba(242,229,5,0.2);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 800px;
}
.hero h1 .highlight { color: var(--yellow); }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value { font-size: 28px; font-weight: 700; color: var(--yellow); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ===== Sections ===== */
section { padding: 90px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.5;
}
.section-white { background: #fff; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.5); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== Problem/Solution Grid ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}
.problem-card, .solution-card {
  border-radius: 12px;
  padding: 32px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--gray-200);
}
.problem-card .icon { font-size: 28px; margin-bottom: 12px; }
.problem-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--red); }
.problem-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.solution-card {
  background: var(--yellow-light);
  border: 1px solid var(--yellow);
}
.solution-card .icon { font-size: 28px; margin-bottom: 12px; }
.solution-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--black); }
.solution-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== How It Works ===== */
.steps { 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
}
.step-icon { width: 48px; height: 48px; background: var(--yellow-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 20px rgba(242,229,5,0.08);
  transform: translateY(-2px);
}
.feature-icon { width: 44px; height: 44px; background: var(--yellow-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

/* ===== PRICING (Weighted heavily) ===== */
.pricing-section {
  background: var(--navy);
  color: #fff;
  padding: 90px 24px 100px;
}
.pricing-section .section-title { color: #fff; }
.pricing-section .section-subtitle { color: rgba(255,255,255,0.5); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { border-color: rgba(242,229,5,0.3); transform: translateY(-3px); }
.pricing-card.featured {
  background: rgba(242,229,5,0.06);
  border: 2px solid var(--yellow);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-3px); }
.sash {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 16px;
  border-radius: 0 0 6px 6px;
}
.pricing-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; margin: 10px 0 4px; }
.pricing-currency { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.5); }
.pricing-amount { font-size: 40px; font-weight: 700; line-height: 1; }
.pricing-period { font-size: 13px; color: rgba(255,255,255,0.4); }
.pricing-sub { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.pricing-trial {
  display: inline-block;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  background: rgba(52,199,89,0.1);
  padding: 2px 10px;
  border-radius: 10px;
}
.pricing-features { list-style: none; padding: 0; margin: 8px 0 16px; flex: 1; }
.pricing-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check { color: var(--green); font-weight: bold; }

.pricing-tokens {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0 16px;
}
.pricing-tokens-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); font-weight: 600; margin-bottom: 6px; }
.pricing-token-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.pricing-token-row .label { color: rgba(255,255,255,0.4); }
.pricing-token-row .value { font-weight: 600; color: #fff; }
.pricing-token-row .discount { color: var(--green); font-weight: 600; }
.pricing-token-row .save { color: var(--yellow); font-weight: 600; }

.pricing-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.2s;
}
.pricing-cta.free { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); }
.pricing-cta.pro { background: var(--yellow); color: var(--black); }
.pricing-cta.max { background: #fff; color: var(--black); }
.pricing-cta.enterprise { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.pricing-cta.enterprise:hover { background: rgba(255,255,255,0.12); }

/* Token Economy Table */
.token-table-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.token-table-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 16px;
}
.token-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.token-table th { text-align: left; padding: 8px 12px; color: rgba(255,255,255,0.4); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.token-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); }
.token-table tr:last-child td { border-bottom: none; }
.token-table .free-tag { color: var(--green); font-weight: 600; }

/* Conversion scenarios */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 30px auto 0;
}
.scenario-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px 16px;
}
.scenario-card h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.scenario-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.scenario-row .label { color: rgba(255,255,255,0.4); }
.scenario-row .value { color: rgba(255,255,255,0.8); font-weight: 500; }
.scenario-row .best { color: var(--yellow); font-weight: 700; }
.scenario-row .saves { color: var(--green); font-weight: 600; }

/* Enterprise Callout */
.enterprise-callout {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  max-width: 1100px;
  margin: 30px auto 0;
  overflow: hidden;
}
.enterprise-header {
  background: rgba(255,255,255,0.06);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.enterprise-badge {
  background: var(--yellow);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 14px;
  border-radius: 4px;
}
.enterprise-header span { font-size: 15px; color: rgba(255,255,255,0.7); }
.enterprise-body { padding: 24px; }
.enterprise-price { font-size: 32px; font-weight: 700; }
.enterprise-desc { font-size: 14px; color: rgba(255,255,255,0.5); margin: 6px 0 16px; line-height: 1.5; max-width: 700px; }
.enterprise-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.enterprise-feat { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
.enterprise-feat .check { color: var(--green); font-weight: bold; }
.enterprise-feat strong { display: block; color: #fff; font-size: 14px; }
.enterprise-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 60px 24px 30px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.4); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { max-width: 1100px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 30px; }
  .pricing-card.featured { transform: none; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .enterprise-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}
