/* FarthestFuel Website Styles */
/* Premium dark theme with orange accents */

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

:root {
  /* Brand Colors */
  --accent-orange: #FF9500;
  --accent-dark: #E85D04;
  --accent-glow: rgba(255, 149, 0, 0.3);
  
  /* Backgrounds */
  --bg-primary: #0D1025;
  --bg-elevated: #1A1F3D;
  --bg-card: #151933;
  --bg-gradient: linear-gradient(135deg, #0D1025 0%, #151933 50%, #0D1025 100%);
  
  /* Status Colors */
  --success: #34C759;
  --warning: #FF9F0A;
  --error: #FF3B30;
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Typography */
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Effects */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(255, 149, 0, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 149, 0, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232, 93, 4, 0.05), transparent),
    var(--bg-primary);
  pointer-events: none;
  z-index: -1;
}

/* Grid Pattern Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(13, 16, 37, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav__links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 149, 0, 0.4);
  color: var(--text-primary);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255, 149, 0, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__text {
  animation: fadeInUp 0.8s ease-out;
}

.hero__tagline {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-orange);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__device {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--bg-elevated);
  border-radius: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.hero__device::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.hero__screen {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-card) 100%);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
}

.hero__screen-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero__screen-map {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a2744 0%, #0d1a2d 100%);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.hero__screen-map::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-dark));
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.hero__screen-map::after {
  content: '';
  position: absolute;
  top: calc(20% - 4px);
  right: 10%;
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.hero__screen-card {
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__screen-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero__screen-info h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero__screen-info p {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* Glow Effect behind device */
.hero__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}

/* Features Section */
.features {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__subtitle {
  color: var(--accent-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__description {
  max-width: 600px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 149, 0, 0.2);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(232, 93, 4, 0.1));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.feature-card__title {
  margin-bottom: var(--space-sm);
}

.feature-card__description {
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent, rgba(26, 31, 61, 0.3), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-dark), var(--accent-orange));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(255, 149, 0, 0.3);
}

.step__title {
  margin-bottom: var(--space-sm);
}

.step__description {
  font-size: 0.95rem;
  max-width: 250px;
  margin: 0 auto;
}

/* CTA Section */
.cta {
  padding: var(--space-2xl) 0;
}

.cta__card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.1), transparent 50%);
  animation: rotate 20s linear infinite;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  margin-bottom: var(--space-sm);
}

.cta__description {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

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

.footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--accent-orange);
}

.footer__contact {
  text-align: right;
}

.footer__contact-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.footer__email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-orange);
}

/* Page Header (for inner pages) */
.page-header {
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.page-header__title {
  margin-bottom: var(--space-sm);
}

.page-header__description {
  font-size: 1.1rem;
}

/* Content Sections (for inner pages) */
.content-section {
  padding: var(--space-xl) 0;
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--accent-orange);
}

.content-section p {
  margin-bottom: var(--space-md);
}

.content-section ul, .content-section ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-section li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* Support Page Specific */
.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-md);
  box-shadow: 0 0 30px rgba(255, 149, 0, 0.2);
}

.contact-card__title {
  margin-bottom: var(--space-sm);
}

.contact-card__email {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-orange);
  display: block;
  margin-bottom: var(--space-md);
}

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

.contact-card__list {
  text-align: left;
  display: inline-block;
  margin-top: var(--space-md);
}

.contact-card__list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  margin-top: var(--space-xl);
}

.faq__title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 149, 0, 0.2);
}

.faq-item__question {
  padding: var(--space-md);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.faq-item__question::before {
  content: 'Q';
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item__answer {
  padding: 0 var(--space-md) var(--space-md);
  padding-left: calc(var(--space-md) + 28px + var(--space-sm));
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Legal Pages */
.legal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.legal-content h2 {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--accent-orange);
  font-size: 1.3rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content .summary {
  background: rgba(255, 149, 0, 0.1);
  border-left: 3px solid var(--accent-orange);
  padding: var(--space-md);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: var(--space-lg);
}

.legal-content .summary p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.legal-content .caps {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  from {
    opacity: 0.5;
    transform: scale(1);
  }
  to {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__buttons {
    justify-content: center;
  }
  
  .hero__visual {
    order: -1;
    margin-bottom: var(--space-lg);
  }
  
  .hero__device {
    width: 240px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .steps::before {
    display: none;
  }
  
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer__contact {
    text-align: center;
  }
  
  .features__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }
  
  .hero__device {
    width: 200px;
    height: 420px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero__buttons {
    flex-direction: column;
  }
}

/* App Store Button Styling - Official Badge Style */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 12px 20px;
  background: #000;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}

.app-store-btn:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: scale(1.02);
}

.app-store-btn__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-top: -2px;
}

.app-store-btn__text {
  text-align: left;
  line-height: 1.15;
}

.app-store-btn__text span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 2px;
}

.app-store-btn__text strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
