:root {
  --bg: #0b1324;
  --bg-soft: #121d35;
  --panel: rgba(255,255,255,0.08);
  --panel-border: rgba(255,255,255,0.12);
  --text: #eef4ff;
  --muted: #b7c3dd;
  --primary: #0b57d0;
  --accent: #f28c00;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --radius: 22px;
  --max: 1180px;

  /* Theme-specific variables */
  --body-bg: radial-gradient(circle at top left, rgba(11,87,208,0.30), transparent 35%), radial-gradient(circle at 85% 15%, rgba(242,140,0,0.18), transparent 25%), linear-gradient(180deg, #0a1222 0%, #101a30 100%);
  --topbar-bg: rgba(8, 13, 25, 0.62);
  --border-light: rgba(255,255,255,0.08);
  --border-med: rgba(255,255,255,0.10);
  --border-hard: rgba(255,255,255,0.12);
  --hover-border: rgba(255,255,255,0.22);
  --glow: radial-gradient(circle, rgba(242,140,0,0.28), transparent 65%);
  --pill-bg: rgba(255,255,255,0.08);
  --pill-text: #dfe8fb;
  --eyebrow-bg: rgba(255,255,255,0.08);
  --eyebrow-text: #d7e5ff;
  --link-color: #ffffff;
  --logo-filter: none;
  --btn-sec-bg: rgba(255,255,255,0.08);
  --btn-sec-text: var(--white);
  --theme-toggle-bg: rgba(255,255,255,0.08);
}

[data-theme="light"] {
  --panel: #c6cedb;
  --panel-border: rgba(0,0,0,0.08);
  --text: #1a202c;
  --muted: #4a5568;
  --shadow: 0 10px 40px rgba(0,0,0,0.06);

  --body-bg: radial-gradient(circle at top left, rgba(11,87,208,0.08), transparent 35%), radial-gradient(circle at 85% 15%, rgba(242,140,0,0.05), transparent 25%), linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --border-light: rgba(0,0,0,0.06);
  --border-med: rgba(0,0,0,0.08);
  --border-hard: rgba(0,0,0,0.12);
  --hover-border: rgba(0,0,0,0.2);
  --glow: radial-gradient(circle, rgba(242,140,0,0.12), transparent 65%);
  --pill-bg: rgba(0,0,0,0.04);
  --pill-text: #2d3748;
  --eyebrow-bg: rgba(0,0,0,0.04);
  --eyebrow-text: #2d3748;
  --link-color: #0b57d0;
  --logo-filter: none;
  --btn-sec-bg: #ffffff;
  --btn-sec-text: #1a202c;
  --theme-toggle-bg: rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--body-bg);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-light);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-med);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--theme-toggle-bg);
  border: 1px solid var(--border-med);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-switch:hover {
  background: var(--border-hard);
  color: var(--text);
}

.theme-switch svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.lang-switch a {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.lang-switch a.active {
  background: var(--btn-sec-bg);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), inset 0 0 0 1px var(--border-light);
}

.hero {
  padding: 72px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.section-card,
.contact-box,
.footer-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--eyebrow-text);
  background: var(--eyebrow-bg);
  border: 1px solid var(--border-med);
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ffb03a);
  color: #1c1200;
  box-shadow: 0 12px 24px rgba(242,140,0,0.28);
}

.btn-secondary {
  background: var(--btn-sec-bg);
  color: var(--btn-sec-text);
  border: 1px solid var(--border-hard);
}

.btn-secondary:hover {
  background: var(--hover-border);
}

.back-link {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.back-link:hover {
  opacity: 1;
  color: var(--link-color);
  transform: translateX(-4px);
}

.hero-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  background: var(--glow);
  pointer-events: none;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.hero-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--border-hard);
  color: var(--pill-text);
  font-size: 0.92rem;
}

.services {
  padding: 12px 0 44px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.section-card {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.section-card:hover {
  transform: translateY(-4px);
  border-color: var(--hover-border);
}

.icon-box {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.35rem;
}

.icon-box img {
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 44px;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter 0.3s ease;
}

.section-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.section-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link-color);
  font-weight: 700;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contact {
  padding: 10px 0 60px;
}

.contact-box {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
}

.contact-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.mail-link {
  font-size: 1.15rem;
  font-weight: 800;
  word-break: break-word;
}

.footer {
  padding: 0 0 34px;
}

.footer-card {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-card a {
  color: var(--link-color);
  font-weight: 600;
}

.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-box,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .topbar-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy,
  .hero-card,
  .section-card,
  .contact-box,
  .footer-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.streamcue {
  font-family: "Intro", sans-serif;
  letter-spacing: -0.01em;
}

.streamcue .cue {
  font-style: italic;
  font-weight: 600;
}

/* ─── Contact Modal ─────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 10, 22, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(145deg, #0d1a30 0%, #101e38 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 36px 36px 32px;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

[data-theme="light"] .modal-box {
  background: linear-gradient(145deg, #f0f4f8 0%, #e8eef6 100%);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text);
  transform: scale(1.1);
}

.modal-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

[data-theme="light"] .modal-close {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
}

.modal-header {
  margin-bottom: 24px;
  padding-right: 28px;
}

.modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(242,140,0,0.12);
  border: 1px solid rgba(242,140,0,0.22);
  border-radius: 999px;
  margin-bottom: 14px;
}

.modal-tag svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 4px;
  line-height: 1.5;
}

.modal-hint {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.7;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-hint::before {
  content: "⏱";
  font-size: 0.7rem;
}

/* Form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-field label .req {
  color: var(--accent);
  margin-left: 2px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  cursor: pointer;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(183,195,221,0.45);
}

.form-field select option {
  background: #0d1a30;
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(242,140,0,0.55);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(242,140,0,0.10);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-color: rgba(239, 68, 68, 0.6);
}

[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea {
  background: rgba(255,255,255,0.8);
  border-color: rgba(0,0,0,0.15);
  color: #1a202c;
}

[data-theme="light"] .form-field input:focus,
[data-theme="light"] .form-field textarea:focus {
  border-color: rgba(242,140,0,0.6);
  background: #fff;
}

/* Honeypot */
.form-field--honey {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #ffb03a);
  color: #1c1200;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 10px 28px rgba(242,140,0,0.3);
  width: 100%;
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(242,140,0,0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-submit .spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(28,18,0,0.3);
  border-top-color: #1c1200;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error/success banners */
.form-banner {
  display: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 2px;
}

.form-banner.is-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.28);
  color: #fca5a5;
}

.form-banner.is-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  color: #86efac;
}

.form-banner svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0 8px;
  gap: 16px;
}

.modal-success.is-visible {
  display: flex;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #4ade80;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.modal-success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.modal-success p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
}

.btn-close-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}

.btn-close-success:hover {
  background: rgba(255,255,255,0.12);
}

/* Mobile */
@media (max-width: 540px) {
  .modal-box {
    padding: 28px 20px 24px;
    border-radius: 20px;
    max-height: 92dvh;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

