/* ============================================
   Anviq Design System — Color Palette
   Extracted from logo + dark theme
   ============================================ */

:root {
  /* Background layers (dark theme) */
  --bg-primary: #0d0f14;
  --bg-secondary: #13161d;
  --bg-card: #1a1d27;
  --bg-card-hover: #21252f;

  /* Brand blues (from brain/circuit in logo) */
  --brand-primary: #2196F3;      /* Bright blue — "IQ" letter, circuit glow */
  --brand-secondary: #1565C0;    /* Deep blue — brain core */
  --brand-accent: #4FC3F7;       /* Light cyan — circuit highlights, glow */
  --brand-dark: #0D47A1;         /* Darkest blue — brain shadow */

  /* Metallic grays (from anvil) */
  --metal-light: #B0BEC5;        /* Anvil highlight */
  --metal-mid: #78909C;          /* Anvil body */
  --metal-dark: #455A64;         /* Anvil shadow */

  /* Text */
  --text-primary: #F0F2F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Glow effects */
  --glow-blue: rgba(33, 150, 243, 0.3);
  --glow-cyan: rgba(79, 195, 247, 0.2);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  --gradient-card: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(33, 150, 243, 0.08) 0%, transparent 60%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ============================================
   Navigation
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13, 15, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo-cropped {
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

.nav-logo .logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-logo .logo-text .iq { color: var(--brand-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 0 20px var(--glow-blue);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--glow-blue);
  opacity: 0.85;
}

.nav-links .btn-primary {
  color: white;
}

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge span { color: var(--brand-accent); }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Products Section
   ============================================ */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 0 40px var(--glow-blue);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tag-live { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.tag-soon { background: rgba(33, 150, 243, 0.15); color: var(--brand-accent); }

/* ============================================
   How It Works
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Features / Benefits
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  transition: border-color 0.2s;
}

.feature:hover { border-color: var(--border-light); }

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(33, 150, 243, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.2rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  text-align: center;
  padding: 80px 0;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-logo img { height: 36px; object-fit: contain; }

.footer-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-logo .logo-text .iq { color: var(--brand-primary); }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switch button {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switch button.active {
  color: var(--text-primary);
  border-color: var(--brand-primary);
  background: rgba(33, 150, 243, 0.1);
}

.lang-switch button:hover:not(.active) {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
