:root {
  --bg-base: #080b14;
  --bg-surface: #0d1017;
  --bg-card: #111827;
  --bg-elevated: #1a2035;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #00c9a7;
  --accent-soft: rgba(0, 201, 167, 0.12);
  --accent-glow: rgba(0, 201, 167, 0.2);
  --accent-hover: #00e6bf;
  --indigo: #6366f1;
  --indigo-soft: rgba(99, 102, 241, 0.12);
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-accent: rgba(0, 201, 167, 0.25);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; opacity: 0.25;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 96px 0; }
.section-padding-sm { padding: 64px 0; }

/* ── Typography ── */
.section-title {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 16px;
}

.section-sub {
  color: var(--text-secondary); max-width: 580px;
  margin-bottom: 48px; font-size: 1.05rem; line-height: 1.7;
}

.section-sub.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.centered { text-align: center; }

/* ── Header ── */
header {
  padding: 0 0;
  position: fixed; width: 100%; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(8, 11, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text-primary);
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--bg-base);
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }
.nav-phone { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  background: var(--accent); color: var(--bg-base);
  font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.2s ease;
  border: none; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,201,167,0.2);
}

.btn:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(0,201,167,0.3); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm { padding: 8px 16px; font-size: 0.825rem; }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-outline:hover { border-color: var(--border-accent); background: var(--accent-soft); }
.btn-full { width: 100%; margin-top: 16px; }

.btn-ghost {
  background: transparent; color: var(--accent);
  border: none; box-shadow: none; padding: 8px 0;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--accent-hover); background: none; box-shadow: none; }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px;
}

.hero-content {
  max-width: 680px;
  animation: fadeInUp 0.6s forwards 0.1s; opacity: 0; transform: translateY(16px);
}

.hero-badge {
  display: inline-block; padding: 6px 14px;
  background: var(--accent-soft); border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl); font-size: 0.75rem; color: var(--accent);
  margin-bottom: 28px; letter-spacing: 0.08em; font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.75rem; line-height: 1.15; font-weight: 700;
  margin-bottom: 20px; letter-spacing: -0.025em;
  max-width: 640px;
}

.hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  margin-bottom: 36px; max-width: 540px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.75rem; font-weight: 700; color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem; color: var(--text-muted); margin-top: 4px;
  font-weight: 500;
}

/* ── Problem Section ── */
.problem-bar {
  padding: 64px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}

.problem-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.problem-item:hover { border-color: rgba(239, 68, 68, 0.2); }

.problem-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(239, 68, 68, 0.1); color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.problem-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.problem-text strong { color: var(--text-primary); }

/* ── Results / Cases ── */
.cases-grid {
  display: grid; gap: 24px;
}

.case-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  align-items: start;
  transition: border-color 0.2s;
}

.case-card:hover { border-color: var(--border-accent); }

.case-industry {
  display: inline-block; padding: 3px 10px;
  background: var(--indigo-soft); color: var(--indigo);
  border-radius: var(--radius-xl); font-size: 0.75rem;
  font-weight: 600; margin-bottom: 12px;
}

.case-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

.case-problem {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px;
  font-style: italic;
}

.case-result {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65;
}

.case-metrics {
  display: flex; gap: 24px; flex-shrink: 0;
}

.case-metric {
  text-align: center; min-width: 100px;
  padding: 16px 20px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
}

.case-metric-num {
  font-size: 1.4rem; font-weight: 700; color: var(--accent);
  line-height: 1;
}

.case-metric-label {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 4px;
  font-weight: 500;
}

/* ── Solutions ── */
.solutions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.solution-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s;
}

.solution-card.revealed { opacity: 1; transform: translateY(0); }
.solution-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-md); }

.solution-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.solution-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.solution-card > p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin-bottom: 20px; }

.solution-list { list-style: none; }
.solution-list li {
  padding: 6px 0; font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.solution-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Process ── */
.process-timeline {
  display: grid; gap: 0; position: relative;
}

.process-step {
  display: grid; grid-template-columns: 1fr 100px; gap: 32px;
  padding: 32px 0; position: relative;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child { border-bottom: none; }

.process-num {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.process-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

.process-time {
  text-align: right; font-size: 0.8rem; color: var(--text-muted);
  font-weight: 500; padding-top: 4px;
}

/* ── Industries ── */
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.industry-item {
  padding: 24px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.industry-item:hover { border-color: var(--border-accent); }

.industry-item h4 {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 4px;
}

.industry-item p {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}

/* ── Team ── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s;
}

.team-card:hover { border-color: var(--border-accent); }

.team-avatar {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--accent);
  margin-bottom: 16px;
}

.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.team-role { font-size: 0.8rem; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.team-bio { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ── CTA ── */
.cta-section {
  text-align: center; padding: 80px 24px;
  background: var(--bg-surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── FAQ ── */
.faq-list { max-width: 700px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; background: none; border: none; color: var(--text-primary);
  font-size: 1rem; font-weight: 600; cursor: pointer; text-align: left;
  font-family: inherit;
}

.faq-question:hover { color: var(--accent); }

.faq-arrow { transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; color: var(--text-muted); }
.faq-item.active .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 0 20px; color: var(--text-secondary);
  font-size: 0.92rem; line-height: 1.7;
}

/* ── Form ── */
.lead-form { max-width: 520px; margin: 0 auto; text-align: left; }

.form-group { margin: 12px 0; }

.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}

.form-label.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

input, textarea, select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.9rem; transition: all 0.2s;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea { resize: vertical; min-height: 100px; }

.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-privacy { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

#result { margin-top: 16px; font-weight: 600; font-size: 0.9rem; text-align: center; }
.success { color: var(--accent); }
.error { color: var(--danger); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

[x-cloak] { display: none !important; }

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

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--text-primary); margin-bottom: 12px;
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem;
}

/* ── Animations ── */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  padding: 12px 24px; background: var(--accent); color: var(--bg-base);
  font-weight: 700; border-radius: var(--radius-sm); z-index: 999;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed; bottom: 80px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Inner pages ── */
.page-hero { padding: 128px 0 48px; }

/* ── Services ── */
.services-list { display: grid; gap: 16px; }

.service-row {
  display: grid; grid-template-columns: 1fr 100px 100px; gap: 24px;
  padding: 28px 32px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  align-items: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s;
}

.service-row.revealed { opacity: 1; transform: translateY(0); }
.service-row:hover { border-color: var(--border-accent); }

.service-row h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.service-row > div:first-child p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.service-price {
  text-align: center; font-size: 0.9rem; font-weight: 700;
  color: var(--accent);
}

.service-time {
  text-align: center; font-size: 0.8rem; color: var(--text-muted);
  font-weight: 500;
}

/* ── Language Switcher ── */
.lang-switch {
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.75rem !important; font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-switch:hover { border-color: var(--accent); }

/* ── Admin ── */
.page-admin { background: var(--bg-base); }

.admin-table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.admin-table th {
  text-align: left; padding: 12px 16px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; border-bottom: 2px solid var(--border);
  white-space: nowrap; font-size: 0.8rem;
}

.admin-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: top;
}

.admin-table tbody tr:hover { background: rgba(0, 201, 167, 0.02); }
.admin-table a { color: var(--accent); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.admin-msg { max-width: 220px; word-break: break-word; }

.admin-lang-badge {
  display: inline-block; padding: 2px 8px;
  background: var(--accent-soft); border-radius: 4px;
  font-size: 0.75rem; color: var(--accent); text-transform: uppercase;
}

/* ── Burger ── */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 110; position: relative;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 1px; transition: all 0.3s ease;
}
.burger span + span { margin-top: 5px; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .burger { display: block; }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 11, 20, 0.97); -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav.open { display: flex; }
  .nav .nav-link { padding: 12px 0; font-size: 0.95rem; }
  .nav .btn { text-align: center; margin-top: 8px; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; width: 100%; }
  .hero-stats { flex-direction: column; gap: 20px; }

  .section-title { font-size: 1.6rem; }
  .section-padding { padding: 64px 0; }

  .problem-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .case-card { grid-template-columns: 1fr; }
  .case-metrics { justify-content: flex-start; }

  .process-step { grid-template-columns: 1fr; gap: 8px; }
  .process-time { text-align: left; }

  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .service-price, .service-time { text-align: left; }

  .admin-table thead { display: none; }
  .admin-table tbody tr {
    display: block; padding: 16px; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg-card);
  }
  .admin-table td {
    display: flex; justify-content: space-between; padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .admin-table td::before {
    content: attr(data-label); font-weight: 600;
    color: var(--text-primary); margin-right: 16px;
  }
  .admin-table td:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
