/* Import colors */
@import url('colors.css');

/* ===== CUSTOM FONTS ===== */

@font-face {
  font-family: 'Jersey';
  src: url('/fonts/Jersey-M54.ttf');
}

/* ===== RESET & BASE STYLES ===== */

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

html {
  scroll-behavior: smooth;
}

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

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

/* ===== LAYOUT UTILITIES ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

/* ===== BUTTON STYLES ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

/* ===== APP STORE BADGE STYLES ===== */

.app-store-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.app-store-badge {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-badges {
  margin-bottom: 20px;
  justify-content: flex-start;
}

.footer-badges .app-store-img {
  height: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  color: var(--color-text-on-brand);
  box-shadow: 0 4px 20px var(--color-shadow-brand);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px var(--color-shadow-brand);
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

.btn-xl {
  padding: 24px 48px;
  font-size: 1.2rem;
}

.btn-arrow {
  font-size: 1.2rem;
}

/* ===== HEADER STYLES ===== */

.site-header {
  background-color: var(--color-black);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.header-logo {
  height: 2.5rem;
  width: auto;
}

.site-name {
  color: var(--color-white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.main-nav {
  display: flex;
  align-items: center;
}

/* Dropdown in header */
.nav-dropdown { position: relative; }
/* Make the dropdown toggle visually match .nav-link */
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font: inherit;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-toggle:hover { color: var(--color-white); }
.nav-caret {
  margin-left: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  color: var(--color-text-secondary);
  transition: transform 120ms ease, color 120ms ease, opacity 120ms ease;
  transform-origin: center;
  opacity: 0.9;
}
.nav-dropdown-toggle:hover .nav-caret { color: var(--color-white); opacity: 1; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); color: var(--color-white); opacity: 1; }
.nav-dropdown-menu { 
  position: absolute; 
  top: 100%; left: 0; 
  min-width: 220px; 
  background: var(--color-black); 
  border: 1px solid var(--color-border-light); 
  border-radius: 8px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  padding: 8px 0; 
  display: none;
  z-index: 1001;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-link { display: block; padding: 8px 12px; color: var(--color-text-secondary); text-decoration: none; white-space: nowrap; }
.nav-dropdown-link:hover { color: var(--color-white); background: rgba(255,255,255,0.06); }

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-white);
}

/* Ensure spacing between dropdown and other nav items matches */
.nav-item.nav-dropdown { display: flex; align-items: center; }
.nav-item.nav-dropdown .nav-dropdown-toggle { color: var(--color-text-secondary); }
.nav-item.nav-dropdown .nav-dropdown-toggle:hover { color: var(--color-white); }

.profile-button {
  background: var(--color-primary);
  color: var(--color-text-on-brand) !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px var(--color-shadow-brand);
}

.profile-button:hover {
  background: var(--color-primary-700);
  color: var(--color-text-on-brand) !important;
  box-shadow: 0 4px 16px var(--color-shadow-brand);
  transform: translateY(-1px);
}

/* ===== NAV TOGGLE (HAMBURGER) ===== */
.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
}

/* ===== HERO SECTION ===== */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-gray-950) 0%, var(--color-gray-900) 50%, var(--color-gray-800) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(30, 251, 151, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 1;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 251, 151, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 251, 151, 0.2);
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--color-white);
  text-shadow: 0 4px 20px var(--color-shadow-dark);
  letter-spacing: -0.02em;
}

.title-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-info) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.hero-stats-inline {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.hero-cta {
  margin-top: 32px;
}

.hero-cta .app-store-badges {
  margin-top: 1.5rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  margin-top: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 608px;
  background: linear-gradient(145deg, var(--color-gray-800), var(--color-gray-700));
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 25px 50px var(--color-shadow-dark);
  position: relative;
  transform: rotate(3deg);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-black);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.app-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px var(--color-shadow-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.profit-card {
  top: 20%;
  right: -30px;
  width: 200px;
}

.ev-card {
  bottom: 20%;
  left: -30px;
  width: 180px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-icon {
  font-size: 1.2rem;
}

.card-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.card-change {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.ev-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-inverse);
}

.pick-ev {
  font-size: 0.75rem;
  background: var(--color-primary-100);
  color: var(--color-primary-900);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
}

/* ===== COMMUNITY SECTION ===== */

.community {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--color-background-primary) 0%, var(--color-background-secondary) 100%);
}

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

.section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.community-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.metric-card {
  background: var(--color-surface-primary);
  padding: 48px 36px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 8px 32px var(--color-shadow-medium);
  border: 1px solid var(--color-border-light);
}

.metric-card:hover {
  box-shadow: 0 12px 40px var(--color-shadow-dark);
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.testimonials-container {
  overflow: visible;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background: var(--color-surface-primary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--color-shadow-medium);
  border: 1px solid var(--color-border-light);
}

.testimonial-item:hover {
  box-shadow: 0 12px 40px var(--color-shadow-dark);
}

.testimonial-content {
  padding: 32px;
}

.testimonial-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.testimonial-meta {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-bottom: 16px;
}

.testimonial-rating {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-brand);
  font-weight: 600;
  font-size: 1.1rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.author-status {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ===== FINAL CTA SECTION ===== */

.final-cta {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-gray-800) 100%);
  padding: 120px 0;
  color: var(--color-white);
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.cta-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.cta-action {
  text-align: center;
}

.cta-action .app-store-badges {
  margin-top: 1.5rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-top: 20px;
  line-height: 1.4;
}

/* ===== FOOTER STYLES ===== */

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  margin-bottom: 1rem;
  color: var(--color-white);
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-primary);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
}

.footer-info {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-info a {
  color: var(--color-text-tertiary);
  text-decoration: none;
}

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

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  /* Add breathing room under the sticky header on mobile */
  .hero { padding-top: 64px; }

  /* Center the store badges in the hero on mobile */
  .hero-cta .app-store-badges { justify-content: center; }
  .header-container { flex-direction: row; gap: 0.75rem; }
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-black);
    border-bottom: 1px solid var(--color-border-light);
    display: none;
  }
  .main-nav.open { display: block; animation: dropdownFade 150ms ease-out; }

  .nav-list { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; gap: 0.5rem; }
  .nav-item { display: block; }
  .nav-link { display: block; padding: 0.75rem 0.75rem; border-radius: 8px; }
  .profile-button { width: 100%; text-align: center; }

  @keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats-inline {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .stat-inline {
    align-items: center;
    text-align: center;
  }

  .phone-mockup {
    width: 240px;
    height: 520px;
  }

  .floating-card {
    display: none;
  }

  .community-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-content {
    padding: 24px;
  }

  .cta-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-features {
    align-items: center;
  }

  .header-container {
    flex-direction: row;
    gap: 0.75rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 1rem;
  }
  
  .app-store-badges {
    gap: 12px;
  }
  
  .app-store-img {
    height: 44px;
  }
  
  .footer-badges .app-store-img {
    height: 36px;
  }
}


@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .phone-mockup {
    width: 200px;
    height: 434px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .btn-xl {
    padding: 18px 36px;
    font-size: 1.1rem;
  }

  .testimonials-track {
    grid-template-columns: 1fr;
  }

  .testimonial-item { margin: 0; }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .footer-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .app-store-badges {
    gap: 8px;
  }
  
  .app-store-img {
    height: 40px;
  }
  
  .footer-badges .app-store-img {
    height: 32px;
  }
}
