/* ============================================
   ANTIMAT - Global Styles
   Black & Red Theme (Dark) / Red & White (Light)
   ============================================ */

/* CSS Variables */
:root {
  /* Dark Theme (Default) - AMOLED Pure Black */
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #121212;
  --bg-card: #0A0A0A;
  --bg-card-hover: #141414;
  
  --accent: #E63946;
  --accent-dark: #C41E3A;
  --accent-light: #FF4D5A;
  --accent-glow: rgba(230, 57, 70, 0.3);
  
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #666666;
  
  --border: #2A2A2A;
  --border-light: #333333;
  
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 4px 20px rgba(230, 57, 70, 0.3);
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --header-height: 72px;
  --container-max: 1200px;
  --container-padding: 24px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Light Theme */
.theme-light {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F8F8;
  --bg-tertiary: #F0F0F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFA;
  
  --text-primary: #0A0A0A;
  --text-secondary: #555555;
  --text-muted: #999999;
  
  --border: #E5E5E5;
  --border-light: #EEEEEE;
  
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 4px 20px rgba(230, 57, 70, 0.2);
}

/* ============================================
   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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(230, 57, 70, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.theme-light .header {
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-dark .icon-sun { display: none; }
.theme-dark .icon-moon { display: block; }
.theme-light .icon-sun { display: block; }
.theme-light .icon-moon { display: none; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 8px 0;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--container-padding);
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 40%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Stop Sign Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stop-sign {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stop-sign-inner {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.stop-svg {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 20px 40px rgba(230, 57, 70, 0.4));
}

.stop-octagon {
  fill: var(--accent);
  transition: fill var(--transition);
}

.stop-border {
  stroke: rgba(255, 255, 255, 0.3);
}

.stop-text {
  font-family: var(--font-display);
  font-size: 48px;
  fill: white;
  letter-spacing: 0.1em;
}

/* Animated waves */
.stop-waves {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.wave {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: wave-expand 3s ease-out infinite;
}

.wave:nth-child(2) { animation-delay: 1s; }
.wave:nth-child(3) { animation-delay: 2s; }

@keyframes wave-expand {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Floating elements */
.floating-element {
  position: absolute;
  font-size: 2.5rem;
  animation: float-random 5s ease-in-out infinite;
}

.fe-1 { top: 10%; left: -10%; animation-delay: 0s; }
.fe-2 { top: 60%; right: -15%; animation-delay: 1s; }
.fe-3 { bottom: 5%; left: 5%; animation-delay: 2s; }
.fe-4 { top: 0; right: 10%; animation-delay: 0.5s; }

@keyframes float-random {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(5deg); }
  75% { transform: translateY(10px) rotate(-5deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
  padding: 120px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.step:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
}

/* ============================================
   Download Section
   ============================================ */

.download {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.download-content {
  text-align: center;
}

.download-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.download-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.download-btn.android:hover {
  background: #3DDC84;
  color: black;
  border-color: #3DDC84;
}

.download-btn svg {
  width: 36px;
  height: 36px;
}

.download-btn-text {
  text-align: left;
}

.download-btn-small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.download-btn-large {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.download-btn.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-btn.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-column a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-credit {
  color: var(--accent);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --header-height: 64px;
  }
  
  .nav-links,
  .nav-actions .btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .step-number {
    font-size: 2.5rem;
  }
  
  .step-icon {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

