/* ── Variables ── */
:root {
  --vk-bg: #0F1623;
  --vk-surface: #1A2333;
  --vk-border: #243044;
  --vk-accent: #A8E63D;
  --vk-accent-dark: #8CC22E;
  --vk-text: #E8EDF5;
  --vk-muted: #7A8BA3;
  --vk-white: #FFFFFF;
  --vk-glow: rgba(168,230,61,0.15);
  --radius-card: 8px;
  --radius-btn: 6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--vk-bg); color: var(--vk-text); font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--vk-white); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
.text-accent { color: var(--vk-accent); }
.text-muted { color: var(--vk-muted); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  color: var(--vk-accent); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { margin-bottom: 52px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--vk-muted); font-size: 1.05rem; max-width: 560px; }
.alt-bg { background: var(--vk-surface); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vk-accent); color: #0F1623;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-btn); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--vk-accent-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168,230,61,0.3);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--vk-white);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: var(--radius-btn);
  border: 1px solid var(--vk-border); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--vk-accent); color: var(--vk-accent); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ── Badges ── */
.badge {
  display: inline-block; background: rgba(168,230,61,0.1); color: var(--vk-accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 100px; border: 1px solid rgba(168,230,61,0.25);
  text-transform: uppercase;
}
.badge-pill {
  display: inline-block; background: var(--vk-surface); color: var(--vk-muted);
  font-size: 0.78rem; font-weight: 500; padding: 4px 10px;
  border-radius: 100px; border: 1px solid var(--vk-border);
}

/* ── Navbar ── */
.vk-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,22,35,0.96); border-bottom: 1px solid var(--vk-border);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.vk-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
.logo-voxi { color: var(--vk-white); }
.logo-kit  { color: var(--vk-accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--vk-muted); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--vk-white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--vk-accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--vk-text); font-size: 1.3rem; cursor: pointer; margin-left: 12px; line-height: 1; }

/* ── Hero ── */
.vk-hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(168,230,61,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-content h1 { margin: 16px 0 18px; }
.hero-sub { color: var(--vk-muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Stats Bar ── */
.stats-bar { background: var(--vk-surface); border-top: 1px solid var(--vk-border); border-bottom: 1px solid var(--vk-border); padding: 40px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--vk-accent); line-height: 1; margin-bottom: 6px; }
.stat-item .stat-label { color: var(--vk-muted); font-size: 0.85rem; }

/* ── Services Grid ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card {
  background: var(--vk-surface); border: 1px solid var(--vk-border); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: rgba(168,230,61,0.3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.service-icon { font-size: 1.8rem; }
.service-card h3 { margin: 0; }
.service-card > p { color: var(--vk-muted); font-size: 0.9rem; flex: 1; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.service-link { color: var(--vk-accent); font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s; }
.service-link:hover { opacity: 0.75; }

/* ── Process ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.8rem; font-weight: 700; color: rgba(168,230,61,0.15); line-height: 1; margin-bottom: 14px; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--vk-muted); font-size: 0.875rem; }

/* ── Feature Cards ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: var(--vk-surface); border: 1px solid var(--vk-border); border-radius: var(--radius-card);
  padding: 24px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { color: var(--vk-muted); font-size: 0.875rem; }

/* ── Tool Badges ── */
.tool-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tool-badge {
  background: var(--vk-surface); border: 1px solid var(--vk-border);
  border-radius: var(--radius-card); padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
.tb-icon { font-size: 1.4rem; flex-shrink: 0; }
.tool-badge div strong { display: block; font-size: 0.875rem; color: var(--vk-white); }
.tool-badge div span { font-size: 0.78rem; color: var(--vk-muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq-item { border: 1px solid var(--vk-border); border-radius: var(--radius-card); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: var(--vk-surface); border: none;
  padding: 18px 24px; color: var(--vk-white); font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(168,230,61,0.04); }
.faq-icon { color: var(--vk-accent); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 14px 24px 18px; color: var(--vk-muted); font-size: 0.9rem; }

/* ── CTA Section ── */
.cta-section { background: var(--vk-surface); border-top: 1px solid var(--vk-border); }
.cta-inner { text-align: center; }
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner > p { color: var(--vk-muted); max-width: 480px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Contact Form ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contact-info { }
.contact-info h2 { margin-bottom: 12px; }
.contact-info p { color: var(--vk-muted); margin-bottom: 32px; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: var(--vk-surface); border: 1px solid var(--vk-border);
  border-radius: var(--radius-card); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.cc-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-card h4 { font-size: 0.8rem; color: var(--vk-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-card a { color: var(--vk-accent); font-size: 0.9rem; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-form-box { background: var(--vk-surface); border: 1px solid var(--vk-border); border-radius: var(--radius-card); padding: 36px; }
.contact-form-box h3 { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--vk-text); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--vk-bg); border: 1px solid var(--vk-border);
  border-radius: var(--radius-btn); padding: 11px 14px;
  color: var(--vk-text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--vk-accent);
  box-shadow: 0 0 0 3px rgba(168,230,61,0.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--vk-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

/* ── About Page ── */
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-card {
  background: var(--vk-surface); border: 1px solid var(--vk-border);
  border-radius: var(--radius-card); padding: 28px;
}
.about-card .ac-icon { font-size: 1.8rem; margin-bottom: 14px; }
.about-card h3 { font-size: 1rem; margin-bottom: 8px; }
.about-card p { color: var(--vk-muted); font-size: 0.875rem; }
.about-card a { color: var(--vk-accent); }

/* ── Services Detail Page ── */
.service-section { padding: 72px 0; border-bottom: 1px solid var(--vk-border); scroll-margin-top: 80px; }
.service-section:last-of-type { border-bottom: none; }
.service-section-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.service-section-inner.flipped { direction: rtl; }
.service-section-inner.flipped > * { direction: ltr; }
.service-section h2 { margin-bottom: 14px; }
.service-section > .service-section-inner > div > p { color: var(--vk-muted); margin-bottom: 24px; }
.service-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.service-list li { color: var(--vk-muted); font-size: 0.9rem; padding-left: 20px; position: relative; }
.service-list li::before { content: '→'; color: var(--vk-accent); position: absolute; left: 0; }
.service-panel {
  background: var(--vk-surface); border: 1px solid var(--vk-border);
  border-radius: var(--radius-card); padding: 28px;
}
.service-panel h4 { font-size: 0.78rem; color: var(--vk-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .badge-pill { font-size: 0.8rem; padding: 5px 12px; }

/* ── Footer ── */
.vk-footer { background: var(--vk-surface); border-top: 1px solid var(--vk-border); padding: 52px 0 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--vk-muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--vk-accent); }
.footer-tagline { color: var(--vk-muted); font-size: 0.9rem; max-width: 420px; }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-contact a { color: var(--vk-accent); font-size: 0.875rem; }
.footer-contact a:hover { text-decoration: underline; }
.footer-copy { color: var(--vk-muted); font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-inner, .contact-layout, .service-section-inner, .service-section-inner.flipped { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .about-focus-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(15,22,35,0.98); border-bottom: 1px solid var(--vk-border);
    padding: 12px 16px; gap: 2px; backdrop-filter: blur(14px);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-inner .btn-primary { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* Service FAQs stay accessible without JavaScript. */
.service-faq h2 { margin-bottom: 24px; }
.service-faq details { border: 1px solid var(--vk-border); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.service-faq summary { cursor: pointer; font-weight: 600; }
.service-faq details p { margin-top: 12px; color: var(--vk-muted); }

/* Stable fallbacks, viewport geometry, and decorative space. */
body, .btn-primary, .btn-secondary,
.form-group input, .form-group textarea, .form-group select {
  font-family: 'Inter', Arial, sans-serif;
}
h1, h2, h3, h4, .vk-logo, .stat-num, .step-num, .faq-question {
  font-family: 'Space Grotesk', Arial, sans-serif;
}
.vk-nav { min-height: 64px; }
.hero-inner { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.hero-with-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}
.hero-orrery {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  justify-self: center;
}
.services-hero { padding: 96px 0 72px; }
.services-hero h1 { margin-bottom: 18px; }
.services-hero .section-sub { max-width: 680px; color: var(--vk-muted); }
.stat-num { font-variant-numeric: tabular-nums; min-height: 1em; }
img { height: auto; }
@media (max-width: 768px) {
  .hero-with-visual { grid-template-columns: minmax(0, 1fr); }
  .services-hero { padding: 56px 0; }
}

/* Content is visible by default; only offscreen elements opt into reveals. */
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.reveal-pending > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.54s; }

/* Hero content never waits for a fade-in or a script to become visible. */
.hero-content, .hero-content .badge { animation: none; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal-pending, .reveal-stagger.reveal-pending > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
