/* ============================================================
   MYTFM – Landing Page Styles
   Brand: Truck Finance | Rouge · Noir · Blanc
   ============================================================ */

/* ── Variables ── */
:root {
  --red:       #E3000F;
  --red-dark:  #B8000C;
  --red-light: #FF1A28;
  --black:     #0A0A0A;
  --gray-900:  #111111;
  --gray-800:  #1A1A1A;
  --gray-700:  #2A2A2A;
  --gray-500:  #666666;
  --gray-300:  #CCCCCC;
  --gray-100:  #F2F2F2;
  --white:     #FFFFFF;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.16);
  --shadow-red: 0 12px 40px rgba(227,0,15,.25);

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --header-h:   68px;
}

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

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

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

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

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

ul { list-style: none; }

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

/* ── Section shared ── */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-eyebrow--light { color: rgba(255,255,255,.6); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: .02em;
  color: var(--black);
  margin-bottom: 16px;
}

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

.section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

.section-desc--light { color: rgba(255,255,255,.65); }

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

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

/* ── Reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  border-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--black);
  transition: opacity var(--transition);
}

.logo:hover { opacity: .8; }
.logo strong { color: var(--red); }
.logo__icon { flex-shrink: 0; }

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover { color: var(--black); background: var(--gray-100); }

.nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
}

.nav__link--cta:hover { background: var(--red-dark) !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Hero content */
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(227,0,15,.06);
  border: 1px solid rgba(227,0,15,.18);
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--black);
  margin-bottom: 8px;
  position: relative;
}

.hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--red);
  border-radius: 3px;
  margin-top: 16px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: .04em;
  color: var(--gray-700);
  margin-bottom: 16px;
  margin-top: 20px;
}

.hero__desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
}

/* CTA Buttons */
.hero__cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn--store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1.5px solid transparent;
}

.btn--store:hover { transform: translateY(-2px); }
.btn--store:active { transform: translateY(0); }

.btn--apple {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--apple:hover { background: var(--gray-800); box-shadow: var(--shadow-md); }

.btn--google {
  background: var(--white);
  color: var(--black);
  border-color: var(--gray-300);
}

.btn--google:hover { background: var(--gray-100); box-shadow: var(--shadow-sm); }

.btn__icon { flex-shrink: 0; }

.btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn__text small {
  font-size: .7rem;
  font-weight: 400;
  opacity: .7;
  letter-spacing: .03em;
}

.btn--lg { padding: 14px 26px; font-size: .95rem; }

/* Badges */
.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* Phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(227,0,15,.14) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero__phone {
  animation: float 4s ease-in-out infinite;
}

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

.phone-frame {
  width: 240px;
  background: var(--white);
  border-radius: 36px;
  border: 8px solid var(--black);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 80px;
  height: 20px;
  background: var(--black);
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

.phone-screen {
  padding: 12px;
  background: var(--gray-100);
  min-height: 400px;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.phone-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.phone-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.phone-stat {
  background: var(--white);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.phone-stat--red { background: var(--red); }
.phone-stat--red .phone-stat__num,
.phone-stat--red .phone-stat__label { color: var(--white); }

.phone-stat--green { background: #16a34a; }
.phone-stat--green .phone-stat__num,
.phone-stat--green .phone-stat__label { color: var(--white); }

.phone-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--black);
}

.phone-stat__label {
  display: block;
  font-size: 9px;
  color: var(--gray-500);
  margin-top: 3px;
}

.phone-list {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-100);
}

.phone-item:last-child { border-bottom: none; }
.phone-item p { font-size: 9px; line-height: 1.4; color: var(--gray-700); }
.phone-item p:first-child { font-weight: 600; color: var(--black); }

.phone-item__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.phone-item__dot--orange { background: #f97316; }
.phone-item__dot--green  { background: #16a34a; }

.phone-bar {
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
  overflow: hidden;
}

.phone-bar__fill {
  height: 100%;
  width: 60%;
  background: var(--red);
  border-radius: 2px;
  animation: progress 3s ease-in-out infinite alternate;
}

@keyframes progress {
  from { width: 40%; }
  to   { width: 75%; }
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gray-300));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 0;
  background: var(--white);
}

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

.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-100);
  transition: background var(--transition);
}

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

.feature-card:hover::before { background: var(--red); }

.feature-card--accent {
  background: var(--black);
  border-color: var(--black);
}

.feature-card--accent .feature-card__icon { background: rgba(255,255,255,.08); color: var(--red); }
.feature-card--accent .feature-card__title { color: var(--white); }
.feature-card--accent .feature-card__desc  { color: rgba(255,255,255,.55); }
.feature-card--accent .feature-card__tag   { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.feature-card--accent::before { background: var(--red); }

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(227,0,15,.07);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.feature-card:hover .feature-card__icon { background: rgba(227,0,15,.12); }

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card__desc {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-card__tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(227,0,15,.06);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  padding: 100px 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,0,15,.1) 0%, transparent 65%);
  pointer-events: none;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.why__content .section-title--light {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.why__benefits {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.benefit:first-child { padding-top: 0; }
.benefit:last-child { border-bottom: none; }

.benefit__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
  min-width: 40px;
}

.benefit__body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.benefit__body p {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  padding: 100px 0;
  background: var(--gray-100);
}

.download__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.download__cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 20px;
}

.download__note {
  font-size: .8rem;
  color: var(--gray-500);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .06em;
  color: var(--white);
  transition: opacity var(--transition);
}

.footer__logo:hover { opacity: .8; }
.footer__logo strong { color: var(--red); }

.footer__brand p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__brand p a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer__brand p a:hover { color: var(--red); }

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}

.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Header mobile */
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    transform: translateY(-100%) translateY(-1px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__link { padding: 12px 16px; text-align: center; }

  /* Hero mobile */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    text-align: center;
  }

  .hero__title::after { margin: 16px auto 0; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__cta-group { justify-content: center; }
  .hero__badges { justify-content: center; }
  .hero__visual { order: -1; }

  .phone-frame { width: 200px; }

  /* Features mobile */
  .features__grid { grid-template-columns: 1fr; }

  /* Why mobile */
  .why__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer mobile */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer__nav { justify-content: center; }
  .footer__brand { align-items: center; }
}

@media (max-width: 480px) {
  .hero__cta-group { flex-direction: column; align-items: center; }
  .btn--store { width: 100%; max-width: 280px; justify-content: center; }
  .download__cta-group { flex-direction: column; align-items: center; }
}
