/* ============================================
   FuelDash — Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --color-dark: #0f172a;
  --color-dark-alt: #1e293b;
  --color-amber: #f59e0b;
  --color-amber-light: #fbbf24;
  --color-amber-dark: #d97706;
  --color-cream: #fefce8;
  --color-warm-white: #fffbeb;
  --color-light: #fafaf9;
  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --color-text-light: #a8a29e;
  --color-border: #e7e5e4;
  --color-white: #ffffff;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1140px;
  --radius: 12px;
  --radius-lg: 20px;
  --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 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--color-text-muted); max-width: 640px; }
p + p { margin-top: 1em; }

.text-amber { color: var(--color-amber); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: #94a3b8;
}

.section--cream {
  background: var(--color-cream);
}

.section--light {
  background: var(--color-light);
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo span {
  color: var(--color-amber);
}

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

.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  color: var(--color-text-muted);
}

.nav a:hover,
.nav a.active {
  color: var(--color-dark);
  background: var(--color-light);
}

.nav a.nav-cta {
  background: var(--color-amber);
  color: var(--color-dark);
  font-weight: 600;
  padding: 8px 20px;
}

.nav a.nav-cta:hover {
  background: var(--color-amber-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--color-amber);
  color: var(--color-dark);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn--primary:hover {
  background: var(--color-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

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

.btn--outline:hover {
  border-color: var(--color-amber);
  color: var(--color-amber-dark);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-dark-alt);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card__title {
  margin-bottom: 10px;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-amber-dark);
  background: var(--color-cream);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  opacity: 0.07;
  pointer-events: none;
}

/* --- Step/Process --- */
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
}

.step + .step {
  border-top: 1px solid var(--color-border);
}

.step__number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-amber);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.step__content h3 {
  margin-bottom: 6px;
}

/* --- Pricing Cards --- */
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  border: 2px solid var(--color-border);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

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

.pricing-card--featured {
  border-color: var(--color-amber);
  box-shadow: var(--shadow-glow);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-amber);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 16px 0 4px;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-card__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.pricing-card li::before {
  content: '✓';
  color: var(--color-amber);
  font-weight: 700;
  font-size: 1rem;
}

/* --- Stats Row --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-amber);
  line-height: 1;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
}

.testimonial__text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 100%;
}

.testimonial__author {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-dark);
}

.testimonial__location {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.faq-item__question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-amber);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-top: 16px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: #94a3b8;
  margin: 0 auto 32px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: 80px 0 40px;
}

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

.footer__brand p {
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 300px;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--color-amber);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: radial-gradient(ellipse at right, rgba(245, 158, 11, 0.06), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  color: var(--color-white);
  position: relative;
}

.page-header p {
  color: #94a3b8;
  position: relative;
  font-size: 1.15rem;
  margin-top: 16px;
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-3 { margin-top: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-in--d1 { animation-delay: 0.1s; }
.animate-in--d2 { animation-delay: 0.2s; }
.animate-in--d3 { animation-delay: 0.3s; }
.animate-in--d4 { animation-delay: 0.4s; }
.animate-in--d5 { animation-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 32px; }
  .cta-banner { padding: 40px 24px; }
  .hero { padding: 130px 0 60px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .section { padding: 64px 0; }
  .pricing-card { padding: 32px 24px; }
}
