:root {
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --purple: #7a1ed2;
  --indigo: #4f46e5;
  --pink: #d62ea0;
  --dark: #111827;
  --dark-soft: #1f2937;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(214, 46, 160, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.08), transparent 24%),
    var(--bg);
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 251, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  box-shadow: 0 10px 24px rgba(122, 30, 210, 0.18);
}

.brand strong {
  display: block;
  color: var(--purple);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
}

.nav a.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

.hero {
  padding: 62px 0 32px;
}

.hero-grid,
.split-grid,
.api-grid,
.contact-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-copy h1,
.contact-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p,
.section-head p,
.dark-panel p,
.api-grid p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 46, 160, 0.12);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cta-row.tight {
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  box-shadow: 0 14px 30px rgba(122, 30, 210, 0.2);
}

.btn-secondary {
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
}

.btn-white {
  color: var(--purple);
  background: var(--white);
}

.btn-outline-light {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.stats-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.stat-card,
.feature-card,
.contact-card,
.form-panel,
.card-frame,
.section-head,
.soft-visual,
.contact-visual-frame {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow);
}

.stat-card,
.feature-card,
.contact-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.stat-card h3,
.feature-card h3,
.section-head h2,
.dark-panel h2,
.api-grid h2 {
  margin: 0;
}

.stat-card h3 {
  color: var(--purple);
  font-size: 1.8rem;
}

.stat-card p,
.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-frame {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.card-frame img {
  width: 100%;
  border-radius: 24px;
}

.small-pad {
  padding: 18px;
}

.section {
  padding: 32px 0;
}

.section-head {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.section-head h2,
.dark-panel h2,
.api-grid h2,
.contact-copy h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-card {
  background: rgba(248, 250, 252, 0.94);
}

.feature-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122, 30, 210, 0.12), rgba(79, 70, 229, 0.12));
  margin-bottom: 14px;
}

.split-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.dark-panel {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--dark), var(--dark-soft) 58%, #25315a);
  color: var(--white);
  box-shadow: var(--shadow);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.audience-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.api-section {
  margin-top: 12px;
  padding: 42px 0 70px;
}

.api-grid {
  grid-template-columns: 1.05fr 0.95fr;
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  color: var(--white);
  box-shadow: 0 24px 54px rgba(122, 30, 210, 0.2);
}

.api-grid p {
  color: rgba(255, 255, 255, 0.9);
}

.api-panel {
  padding: 0;
}

.code-block {
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.code-block.dark {
  background: rgba(2, 6, 23, 0.72);
}

.code-block.light {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.code-title {
  color: #f0abfc;
  font-weight: 700;
  font-size: 0.9rem;
}

pre {
  margin: 10px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.contact-page {
  padding-top: 48px;
  padding-bottom: 60px;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.contact-card {
  margin-top: 26px;
}

.contact-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.contact-phone {
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
}

.contact-mail {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--muted);
}

.contact-visual-frame {
  margin-top: 28px;
}

.form-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(122, 30, 210, 0.45);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(122, 30, 210, 0.08);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .api-grid,
  .contact-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 10px 14px;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
}

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

  .hero {
    padding-top: 34px;
  }

  .section-head,
  .dark-panel,
  .form-panel,
  .card-frame,
  .stat-card,
  .feature-card,
  .contact-card,
  .api-grid {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-phone {
    font-size: 1.6rem;
  }
}

.brand-logo {
  height: 54px;
  width: auto;
  display: block;
  background: #ffffff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

.contact-redirect-body .contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-redirect-body .contact-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

@media (max-width: 920px) {
  .brand-logo {
    height: 44px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .contact-redirect-body .contact-grid {
    grid-template-columns: 1fr;
  }
}
