:root {
  --background: #080808;
  --foreground: #f8f8f8;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.12);
  --text-primary: #f8f8f8;
  --text-muted: rgba(255, 255, 255, 0.78);
  --header-surface: rgba(0, 0, 0, 0.45);
  --hero-grid: rgba(255, 255, 255, 0.03);
  --card-shadow: 0 18px 45px -30px rgba(0, 0, 0, 0.9);
  --accent: #ffd200;
  --accent-soft: rgba(255, 210, 0, 0.14);
}

.light-theme {
  --background: #f5f6f8;
  --foreground: #111216;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.8);
  --border: rgba(15, 23, 42, 0.14);
  --text-primary: #151821;
  --text-muted: rgba(22, 25, 35, 0.72);
  --header-surface: rgba(255, 255, 255, 0.82);
  --hero-grid: rgba(17, 24, 39, 0.06);
  --card-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: background-color 260ms ease, color 260ms ease;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site-main {
  overflow: hidden;
  background: var(--background);
  color: var(--text-primary);
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-glow-layer,
.hero-grid-layer {
  position: absolute;
  inset: 0;
}

.hero-glow-layer {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 210, 0, 0.2), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(130deg, #060606 0%, #0b0b0b 45%, #070707 100%);
}

.light-theme .hero-glow-layer {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 210, 0, 0.24), transparent 30%),
    radial-gradient(circle at 14% 86%, rgba(255, 255, 255, 0.85), transparent 45%),
    linear-gradient(130deg, #f7f8fb 0%, #f2f4f8 45%, #eff2f7 100%);
}

.hero-grid-layer {
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.22;
}

.top-contact-bar {
  border-bottom: 1px solid var(--border);
  background: var(--header-surface);
}

.top-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.top-contact-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-contact-links a:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.top-contact-links a:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
}

.header-wrap {
  padding-top: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--header-surface);
  box-shadow: 0 10px 34px -24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}

.brand,
.header-actions,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 800;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
}

.main-nav {
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.main-nav a,
.top-contact-links a {
  transition: color 260ms ease;
}

.main-nav a:hover,
.top-contact-links a:hover {
  color: var(--accent);
}

.header-actions {
  gap: 8px;
}

.theme-toggle {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 260ms ease, color 260ms ease, background-color 260ms ease;
}

.theme-toggle:hover {
  border-color: rgba(255, 210, 0, 0.65);
  color: var(--accent);
}

.theme-toggle-label {
  min-width: 38px;
  text-align: left;
}

.theme-toggle-thumb {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  font-size: 12px;
}

.btn-primary,
.btn-secondary,
.btn-dark,
.btn-outline-dark {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease, color 260ms ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-dark:hover,
.btn-outline-dark:hover,
.premium-card:hover,
.hero-feature-card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 12px 30px -18px rgba(255, 211, 41, 0.95);
}

.btn-primary:hover {
  background: #ffe45c;
  box-shadow: 0 16px 34px -20px rgba(255, 211, 41, 1);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: rgba(255, 210, 0, 0.7);
  color: var(--accent);
}

.btn-small {
  min-height: 40px;
  padding-inline: 20px;
  font-size: 13px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  padding-block: 56px 80px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 210, 0, 0.4);
  border-radius: 999px;
  background: rgba(255, 210, 0, 0.1);
  color: var(--accent);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.light-theme .hero-brand-pill {
  color: #151821;
  border-color: rgba(255, 210, 0, 0.55);
  background: rgba(255, 210, 0, 0.22);
}

.hero-copy h1 {
  max-width: 780px;
  color: var(--text-primary);
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy > p {
  max-width: 660px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
  font-size: 15px;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-feature-card,
.premium-card,
.about-card {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-feature-card {
  border-radius: 28px;
  padding: 20px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.hero-feature-card:hover {
  background: color-mix(in srgb, var(--surface-strong) 100%, transparent);
  border-color: rgba(255, 210, 0, 0.5);
}

.hero-card-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 210, 0, 0.5);
  border-radius: 999px;
  background: rgba(255, 210, 0, 0.15);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.light-theme .hero-card-icon {
  color: #151821;
  border-color: rgba(255, 210, 0, 0.55);
  background: rgba(255, 210, 0, 0.82);
}

.hero-card-eyebrow,
.step,
.section-kicker {
  color: rgba(255, 210, 0, 0.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.light-theme .hero-card-eyebrow,
.light-theme .step,
.light-theme .section-kicker {
  color: rgba(22, 25, 35, 0.74);
}

.hero-feature-card h3 {
  margin-top: 10px;
  font-size: 20px;
}

.hero-feature-card p:last-child {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.section {
  padding-block: 72px;
}

.section-tight {
  padding-top: 56px;
}

.section-muted {
  border-block: 1px solid var(--border);
  background: #0d0d0d;
}

.light-theme .section-muted {
  background: #eef1f6;
}

.section h2,
.cta-section h2 {
  color: var(--text-primary);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-top: 12px;
}

.section-heading p:last-child,
.about-card p,
.premium-card p,
.cta-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.section-heading p:last-child {
  max-width: 660px;
  margin-top: 16px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-card {
  position: relative;
  min-height: 256px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #111;
}

.workflow-card img {
  width: 100%;
  height: 100%;
  min-height: 256px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.workflow-card:hover img {
  transform: scale(1.05);
}

.workflow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.3), transparent);
}

.workflow-card div {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
}

.workflow-card h3 {
  font-size: 18px;
}

.workflow-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.about-card {
  max-width: 880px;
  border-radius: 28px;
  background: var(--surface-soft);
  padding: clamp(24px, 4vw, 40px);
}

.about-card p {
  margin-top: 16px;
  font-size: 18px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.split-heading span {
  color: var(--text-muted);
  font-size: 14px;
}

.cards-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.services-grid,
.process-grid,
.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audience-grid,
.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-card {
  border-radius: 28px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.premium-card:hover {
  border-color: rgba(255, 210, 0, 0.5);
}

.premium-card h3 {
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.35;
}

.premium-card p {
  margin-top: 12px;
  font-size: 14px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-card span {
  flex: 0 0 auto;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
}

.check-card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.metrics-grid .premium-card h3 {
  margin-top: 12px;
  font-size: 28px;
}

.cta-section {
  border-top: 1px solid var(--border);
  background: var(--accent);
  color: #000;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
}

.cta-section h2 {
  color: #000;
  max-width: 760px;
}

.cta-section p {
  max-width: 680px;
  margin-top: 16px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 18px;
}

.btn-dark {
  border-radius: 999px;
  background: #000;
  color: #fff;
}

.btn-dark:hover {
  background: #171717;
}

.btn-outline-dark {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  color: #000;
}

.btn-outline-dark:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-grid,
  .workflow-grid,
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .top-contact-inner,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 12px;
  }

  .brand {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn-secondary {
    flex: 1;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .hero-layout {
    gap: 36px;
    padding-block: 40px 56px;
  }

  .hero-cards,
  .services-grid,
  .process-grid,
  .workflow-grid,
  .advantages-grid,
  .audience-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions a,
  .cta-actions,
  .cta-actions a {
    width: 100%;
  }

  .section {
    padding-block: 56px;
  }

  .workflow-card,
  .workflow-card img {
    min-height: 230px;
  }
}


.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  color: var(--text-muted);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.lead-panel {
  width: min(100%, 480px);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  padding: 20px;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
  color: rgba(0, 0, 0, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea,
.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #111216;
  padding: 12px 14px;
  outline: none;
}

.form-field textarea,
.admin-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.admin-field input:focus,
.admin-field textarea:focus {
  border-color: #111216;
}

.form-message {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.form-message-success {
  background: rgba(0, 120, 72, 0.14);
  color: #064e3b;
}

.form-message-error {
  background: rgba(185, 28, 28, 0.14);
  color: #7f1d1d;
}

.admin-page {
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 32px 0 64px;
}

.admin-shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.admin-topbar,
.admin-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: 20px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-field {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-muted {
  color: var(--text-muted);
}

@media (max-width: 820px) {
  .footer-inner,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
