/* ==========================================================================
   IA Belka - Raycast-inspired Design
   ========================================================================== */

/* CSS Variables (Design Tokens) */
:root {
  /* Colors */
  --bg-black: #000000;
  --bg-dark: #0a0a0f;
  --bg-card: #16161f;
  --bg-card-hover: #1f1f2e;
  
  --accent-fire-start: #ff6b00;
  --accent-fire-end: #ff0000;
  --accent-cool: #00d9ff;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #666666;
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 107, 0, 0.3);
  
  /* Gradients */
  --gradient-fire: linear-gradient(135deg, var(--accent-fire-start) 0%, var(--accent-fire-end) 100%);
  --gradient-cool: linear-gradient(135deg, #00d9ff 0%, #0066ff 100%);
  
  /* Effects */
  --glow-fire: 0 0 30px rgba(255, 107, 0, 0.4);
  --glow-fire-strong: 0 0 40px rgba(255, 107, 0, 0.6);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 8rem 2rem;
  --card-padding: 2rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */

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

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 2rem;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.flame-icon {
  font-size: 1.5rem;
  display: inline-block;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.05); 
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.lang-switcher a {
  transition: var(--transition-smooth);
}

.lang-switcher a.active {
  color: var(--text-primary);
  font-weight: 600;
}

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

.lang-switcher .divider {
  opacity: 0.3;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary,
.btn-hero,
.btn-price {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-align: center;
}

.btn-primary {
  background: var(--gradient-fire);
  color: white;
  box-shadow: var(--glow-fire);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-fire-strong);
}

.btn-hero {
  background: var(--gradient-fire);
  color: white;
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
  box-shadow: var(--glow-fire);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-fire-strong);
}

.btn-price {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  width: 100%;
}

.btn-price:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-price.primary {
  background: var(--gradient-fire);
  border: none;
  box-shadow: var(--glow-fire);
}

.btn-price.primary:hover {
  box-shadow: var(--glow-fire-strong);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 6rem;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy {
  background: var(--bg-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   Solutions Section
   ========================================================================== */

.solution-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.tab.active {
  background: var(--gradient-fire);
  color: white;
  border-color: transparent;
  box-shadow: var(--glow-fire);
}

.tab-content {
  display: none;
}

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

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.solution-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.solution-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.solution-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.solution-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.view-all {
  display: block;
  text-align: center;
  color: var(--accent-fire-start);
  font-weight: 600;
  padding: 1rem;
  transition: var(--transition-smooth);
}

.view-all:hover {
  color: var(--accent-fire-end);
  transform: translateY(-2px);
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */

.timeline-section {
  background: var(--bg-dark);
}

.timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.timeline-step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
}

.step-badge {
  display: inline-block;
  background: var(--gradient-fire);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.timeline-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.step-time {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-arrow {
  font-size: 2rem;
  color: var(--accent-fire-start);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

.price-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--accent-fire-start);
  box-shadow: var(--glow-fire);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-fire);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
}

.price-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.price-timeline span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-subtle);
}

.price-features li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Examples Section
   ========================================================================== */

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: block;
}

.example-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.2);
  transform: translateY(-4px);
}

.example-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.example-placeholder {
  font-size: 4rem;
}

.example-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 107, 0, 0.2);
  color: var(--accent-fire-start);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.example-card h3 {
  padding: 1.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.25rem;
}

.example-card p {
  padding: 0 1.5rem;
  padding-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.example-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.example-value {
  color: var(--accent-fire-start);
  font-weight: 600;
}

.example-time {
  color: var(--text-muted);
}

.example-card.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.example-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   CTA Final Section
   ========================================================================== */

.cta-final {
  background: var(--bg-dark);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.flame-large {
  font-size: 5rem;
  margin-bottom: 2rem;
  display: inline-block;
  animation: flicker 2s infinite;
}

.cta-final h2 {
  margin-bottom: 1rem;
}

.cta-final p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-meta {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-black);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-column a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-lang a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer-lang a.active {
  color: var(--text-primary);
  font-weight: 600;
}

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

.footer-lang span {
  opacity: 0.3;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
  :root {
    --section-padding: 5rem 1.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .timeline {
    flex-direction: column;
  }
  
  .timeline-arrow {
    transform: rotate(90deg);
  }
  
  .solution-grid {
    grid-template-columns: 1fr;
  }
  
  .price-cards {
    grid-template-columns: 1fr;
  }
  
  .example-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .solution-tabs {
    justify-content: flex-start;
  }
  
  .tab {
    font-size: 0.8125rem;
    padding: 0.75rem 1.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
