/* ============================================================
   FlipLane — Global Design System
   Dark theme with green (#00e676) accents
   ============================================================ */

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-glass: rgba(10, 10, 10, 0.85);
  --green: #00e676;
  --green-dim: #00c853;
  --green-glow: rgba(0, 230, 118, 0.12);
  --green-border: rgba(0, 230, 118, 0.35);
  --red-strike: #ff4444;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-dim: #888888;
  --border: #2a2a2a;
  --border-light: #333333;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-glow: 0 0 40px rgba(0, 230, 118, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
}
.heading-lg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}
.heading-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.heading-sm {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.text-lg { font-size: 1.15rem; line-height: 1.7; color: var(--text-secondary); }
.text-md { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; line-height: 1.5; color: var(--text-dim); }
.text-green { color: var(--green); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--green); }
.footer-logo span { font-size: 0.95rem; }

/* Logo image styles (replaces text logo in navbar and footer) */
.logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img img {
  height: 32px;
  width: auto;
}
.login-logo-img,
.login-logo-img img {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.login-logo-img img {
  height: 36px;
  width: auto;
}
.topbar-logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.topbar-logo-img img {
  height: 36px;
  width: auto;
}


.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--green);
  background: var(--green-glow);
}
.nav-links a.active {
  color: var(--green);
}
.nav-cta {
  font-size: 0.8rem !important;
  color: var(--green) !important;
  background: var(--green-glow) !important;
  border: 1px solid var(--green-border) !important;
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.nav-cta:hover {
  background: rgba(0, 230, 118, 0.25) !important;
}

/* Nav actions (phone + cta grouped together on right) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Phone link in navbar */
.nav-phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-phone:hover {
  color: var(--green);
  background: var(--green-glow);
}

/* Footer phone/contact styles */
.footer-phone-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.footer-phone-link:hover { color: var(--green); }
.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
  align-items: center;
}
.footer-contact-row a { text-decoration: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 4px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1rem;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
  }
  .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .nav-actions .nav-phone {
    font-size: 1rem;
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .nav-actions .nav-cta,
  .nav-actions .nav-login {
    font-size: 1rem;
    padding: 14px 16px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
}
.section-sm {
  padding: 60px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.btn-primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: #00ff88;
  box-shadow: 0 0 50px rgba(0, 230, 118, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 20px 48px;
  font-size: 1.1rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card-glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.card-glass:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow-glow);
}
.card-highlight {
  border-color: var(--green-border);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid var(--green-border);
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* Count-up number animation */
@keyframes countPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Subtle floating */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 230, 118, 0.2); }
  50% { box-shadow: 0 0 60px rgba(0, 230, 118, 0.35); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.spacer-top { padding-top: 72px; } /* accounts for fixed nav */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.inline-flex { display: inline-flex; }

/* Strike-through price */
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--red-strike);
  color: var(--text-dim);
}

/* Uppercase phone number */
.phone-uppercase {
  text-transform: uppercase;
}

/* Ensure all phone display elements are uppercase */
.nav-phone,
.footer-phone-link {
  text-transform: uppercase;
}
