/**
 * YugoVIN Landing Page - Auto.dev Inspired Dark Theme
 *
 * Dark, modern styling with Tech Blue (#3B82F6) accent
 * Features gradient effects, glow on hover, and clean typography
 */

/* Import CSS Foundation */
@import url('../assets/css/variables.css');

/* ========================================================================
   BASE STYLES
   ======================================================================== */

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

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--bg-primary);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ========================================================================
   MODERN HEADER & NAVIGATION - Dark Theme
   ======================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-primary);
  z-index: var(--z-sticky);
  padding: var(--spacing-4) 0;
}

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

.logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
}

.logo-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  position: relative;
  padding: var(--spacing-2) 0;
  transition: color var(--duration-fast) var(--ease-in-out);
}

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

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-2);
  color: var(--text-primary);
}

/* ========================================================================
   BUTTONS - Dark Theme
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  padding: var(--button-padding-md);
  border-radius: var(--button-radius);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  transition: all var(--duration-base) var(--ease-in-out);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-sm {
  padding: var(--button-padding-sm);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--button-padding-lg);
  font-size: var(--font-size-lg);
}

.btn-primary-gradient {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.btn-primary-gradient:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

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

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--color-primary);
}

.btn-white {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(255, 255, 255, 0.15);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
  width: 100%;
}

/* Icons in buttons */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon {
  width: 20px;
  height: 20px;
}

.icon-check {
  color: var(--color-success);
  width: 18px;
  height: 18px;
}

/* ========================================================================
   HERO SECTION - Dark Theme with Glow
   ======================================================================== */

.hero {
  padding-top: calc(var(--header-height) + var(--spacing-20));
  padding-bottom: var(--spacing-20);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  min-height: 100vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.gradient-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  top: -350px;
  left: -200px;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  bottom: -200px;
  right: -100px;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-6);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.badge-icon {
  font-size: var(--font-size-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-6);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-tight);
}

.text-gradient {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: var(--spacing-2);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto var(--spacing-8);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-12);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-6);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-primary);
}

/* ========================================================================
   DEMO SECTION - Dark Theme
   ======================================================================== */

.demo-section {
  padding: var(--spacing-20) 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-12);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

.demo-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-xl);
}

.demo-input-section {
  margin-bottom: var(--spacing-6);
}

.input-group {
  display: flex;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-4);
}

.demo-input {
  flex: 1;
  padding: var(--spacing-3) var(--spacing-4);
  border: 1px solid var(--border-primary);
  border-radius: var(--input-radius);
  font-size: var(--font-size-base);
  font-family: var(--font-family-mono);
  transition: var(--transition-base);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.demo-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-primary);
  box-shadow: var(--shadow-focus);
}

.demo-input::placeholder {
  color: var(--text-tertiary);
}

.sample-vins {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex-wrap: wrap;
}

.sample-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.vin-chip {
  padding: var(--spacing-2) var(--spacing-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.vin-chip:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.demo-result-section {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.result-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
}

.tab-btn {
  flex: 1;
  padding: var(--spacing-3) var(--spacing-4);
  background: transparent;
  border: none;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.05);
}

.tab-btn.active {
  color: var(--color-primary);
  background: var(--bg-secondary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.code-block {
  padding: var(--spacing-6);
  background: var(--code-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  color: var(--code-color);
  line-height: 1.7;
}

/* ========================================================================
   CODE EXAMPLES SECTION
   ======================================================================== */

.code-examples {
  padding: var(--spacing-20) 0;
  background: var(--bg-primary);
}

.code-examples-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.language-tabs {
  display: flex;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--border-primary);
}

.lang-tab {
  padding: var(--spacing-3) var(--spacing-4);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  transition: var(--transition-fast);
  position: relative;
}

.lang-tab:hover {
  color: var(--text-primary);
}

.lang-tab.active {
  color: var(--color-primary);
}

.lang-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

.code-example-content .code-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
}

/* ========================================================================
   FEATURES GRID - Dark Theme with Glow Hover
   ======================================================================== */

.features {
  padding: var(--spacing-20) 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-6);
}

.feature-card {
  background: var(--bg-primary);
  padding: var(--spacing-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  transition: all var(--duration-base) var(--ease-in-out);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: transparent;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background var(--duration-base) var(--ease-in-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
  border-color: transparent;
}

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

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--color-primary-alpha);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-4);
}

.feature-icon {
  color: var(--color-primary);
  stroke: var(--color-primary);
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-3);
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ========================================================================
   PRICING SECTION - Dark Theme
   ======================================================================== */

.pricing {
  padding: var(--spacing-20) 0;
  background: var(--bg-primary);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-12);
}

.toggle-label {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(28px);
}

.badge-save {
  padding: var(--spacing-1) var(--spacing-2);
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-left: var(--spacing-2);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-6);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  position: relative;
  transition: all var(--duration-base) var(--ease-in-out);
  display: flex;
  flex-direction: column;
}

.pricing-card .plan-features {
  flex-grow: 1;
}

.pricing-card .btn-block {
  margin-top: auto;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  transform: scale(1.02);
  box-shadow: var(--glow-blue);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--glow-blue-strong);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-1) var(--spacing-4);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-header {
  text-align: center;
  padding-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: var(--spacing-6);
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-4);
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-1);
  margin-bottom: var(--spacing-3);
}

.price-currency {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
}

.price-amount {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.price-period {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.price-custom {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.plan-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.plan-features {
  list-style: none;
  margin-bottom: var(--spacing-8);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

/* ========================================================================
   CTA SECTION - Dark with Gradient
   ======================================================================== */

.cta-section {
  padding: var(--spacing-20) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: var(--gradient-glow);
  filter: blur(80px);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-4);
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-8);
}

.cta-actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   FOOTER - Dark Theme
   ======================================================================== */

.footer {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: var(--spacing-16) 0 var(--spacing-8);
  border-top: 1px solid var(--border-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--spacing-12);
  margin-bottom: var(--spacing-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  display: inline-block;
  margin-bottom: var(--spacing-4);
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-6);
}

.footer-social {
  display: flex;
  gap: var(--spacing-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border: 1px solid var(--border-primary);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-6);
}

.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-4);
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.footer-column a {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--spacing-8);
  border-top: 1px solid var(--border-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-4);
  }

  .stat-divider {
    display: none;
  }

  .input-group {
    flex-direction: column;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-4);
    text-align: center;
  }
}
