:root {
  --bg: #050816;
  --bg-2: #0a1228;
  --panel: rgba(12, 19, 38, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #f7f9ff;
  --muted: #a7b1c7;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ff7a1a;
  --accent-2: #ffcf6a;
  --success: #5de4a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 122, 26, 0.18), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(255, 207, 106, 0.11), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, #070d1c 100%);
}

body[data-theme='light'] {
  --bg: #f3f7fc;
  --bg-2: #eaf1fb;
  --panel: rgba(255, 255, 255, 0.90);
  --panel-soft: rgba(18, 35, 65, 0.04);
  --text: #0f1d36;
  --muted: #607089;
  --line: rgba(15, 23, 42, 0.10);
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 122, 26, 0.16), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(255, 207, 106, 0.20), transparent 20%),
    linear-gradient(180deg, #fcfdff 0%, var(--bg-2) 48%, #e9f0fa 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.brand-logo {
  display: block;
  width: clamp(126px, 12vw, 210px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 80px;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 12, 24, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav > * {
  min-width: 0;
}

body[data-theme='light'] .nav {
  background: rgba(255, 255, 255, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

body[data-theme='light'] .brand {
  background: rgba(255, 255, 255, 0.72);
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #121212;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-links,
.nav-actions,
.hero-actions,
.cta-actions,
.footer-actions,
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links {
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
}

.nav-actions {
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.lang-switcher {
  display: flex;
  gap: 6px;
}

.theme-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

body[data-theme='light'] .theme-button,
body[data-theme='light'] .lang-button,
body[data-theme='light'] .button.alt {
  background: rgba(255, 255, 255, 0.82);
}

.lang-button {
  min-width: 42px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--accent);
  color: #111;
  border-color: transparent;
}

.nav-links a {
  color: #dbe3f8;
  font-size: clamp(0.82rem, 0.84vw, 0.9rem);
  white-space: nowrap;
}

body[data-theme='light'] .nav-links a {
  color: #23324d;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #ff9755);
  color: #121212;
  font-weight: 800;
  cursor: pointer;
}

.button.alt {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button.light {
  background: #f0f4ff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

h1, h2, h3, .brand {
  font-family: 'Space Grotesk', sans-serif;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.9rem, 6vw, 5.4rem);
  line-height: 0.94;
}

.lead,
.section-head p,
.metric p,
.feature p,
.case p,
.testimonial p,
.faq p,
.contact-card p,
.form-status,
.bullet-list {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
}

.hero-panel,
.stats,
.services,
.cases,
.why-grid,
.landing-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.landing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 0.9fr 1.1fr; }

.card,
.hero-side,
.metric,
.feature,
.case,
.why,
.landing,
.testimonial,
.contact-card,
.form-card,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-side,
.metric,
.feature,
.case,
.why,
.landing,
.testimonial,
.contact-card,
.form-card {
  padding: 24px;
  min-width: 0;
}

.hero-side {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.18), transparent 26%),
    var(--panel);
}

body[data-theme='light'] .hero-side,
body[data-theme='light'] .metric,
body[data-theme='light'] .feature,
body[data-theme='light'] .case,
body[data-theme='light'] .why,
body[data-theme='light'] .landing,
body[data-theme='light'] .testimonial,
body[data-theme='light'] .contact-card,
body[data-theme='light'] .form-card,
body[data-theme='light'] .faq details {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.92)),
    var(--panel);
}

.hero-stack {
  display: grid;
  gap: 14px;
}

.stack-line {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-soft);
}

body[data-theme='light'] .stack-line {
  background: rgba(242, 246, 252, 0.95);
}

.stack-line strong,
.metric strong,
.feature h3,
.case h3,
.why strong,
.landing h3,
.testimonial h3,
.contact-card h3 {
  display: block;
  margin-bottom: 8px;
}

.metric strong { font-size: 1.35rem; }

section { padding-top: 88px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.feature h3,
.case h3,
.landing h3 { margin: 0 0 12px; font-size: 1.24rem; }

.label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

body[data-theme='light'] .label {
  background: rgba(255, 244, 232, 0.9);
  color: var(--accent);
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.landing h3 + p,
.case .bullet-list,
.why p,
.testimonial footer {
  margin-top: 12px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.form-card form {
  display: grid;
  gap: 14px;
}

.form-card label {
  display: grid;
  gap: 8px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-theme='light'] .form-card input,
body[data-theme='light'] .form-card textarea,
body[data-theme='light'] .form-card select {
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(244, 247, 252, 0.92);
}

.form-card textarea { resize: vertical; }
.form-status { min-height: 24px; margin: 0; }
.form-status.success { color: var(--success); }
.form-status.error { color: #ff8b8b; }

.footer {
  margin-top: 88px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

body[data-theme='light'] .footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.92));
}

@media (max-width: 1320px) {
  .nav .button.alt {
    display: none;
  }
}

@media (max-width: 1240px) {
  .nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    padding-top: 4px;
  }

  .nav-actions {
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  .hero,
  .contact-grid,
  .services,
  .cases,
  .why-grid,
  .landing-grid,
  .testimonial-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .footer {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 20px), var(--container)); }
  .nav { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links,
  .nav-actions { width: 100%; justify-content: center; }
  .nav-links { justify-content: flex-start; }
  .hero,
  .contact-grid,
  .services,
  .cases,
  .why-grid,
  .landing-grid,
  .testimonial-grid,
  .stats {
    grid-template-columns: 1fr;
  }
}
