:root {
  --container: min(1240px, calc(100% - 64px));
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --transition: 220ms ease;
}

html[data-theme="dark"] {
  --bg: #070214;
  --bg-soft: #100325;
  --surface: rgba(23, 10, 53, 0.82);
  --surface-2: rgba(41, 20, 80, 0.75);
  --card: rgba(36, 18, 72, 0.58);
  --card-2: rgba(58, 27, 101, 0.65);
  --text: #f8f6ff;
  --muted: #b8aed0;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #f21db5;
  --purple: #8a39ff;
  --orange: #f3a256;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  --bg: #f4eefc;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(247, 239, 255, 0.92);
  --card: rgba(255, 255, 255, 0.82);
  --card-2: rgba(248, 238, 255, 0.96);
  --text: #170e31;
  --muted: #665b84;
  --line: rgba(23, 14, 49, 0.12);
  --pink: #e624b3;
  --purple: #7c33ff;
  --orange: #ee9a56;
  --shadow: 0 24px 72px rgba(75, 43, 132, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--purple) 55%, transparent), transparent 22%),
    radial-gradient(circle at 65% 18%, color-mix(in srgb, var(--orange) 24%, transparent), transparent 20%),
    linear-gradient(135deg, var(--bg) 0%, #12032d 68%, #24105a 100%);
  transition: background var(--transition), color var(--transition);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 78% 10%, rgba(138, 57, 255, 0.18), transparent 22%),
    radial-gradient(circle at 64% 18%, rgba(243, 162, 86, 0.14), transparent 20%),
    linear-gradient(135deg, #f7f2fd 0%, #f2e8fb 68%, #efe2fb 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.page-shell { overflow: clip; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.header-top,
.nav-row {
  display: flex;
  align-items: center;
}

.header-top {
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.nav-row {
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.header-actions {
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: #ffcf4a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle { color: #f08a27; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }

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

.main-nav a,
.footer-links a,
.site-footer li a,
.footer-copy,
.lead,
.about-copy p,
.about-note p,
.highlight-grid p,
.hero-stats small {
  color: var(--muted);
}

.main-nav a {
  font-weight: 500;
}

.main-nav a:hover,
.footer-links a:hover,
.site-footer li a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

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

.btn-solid {
  background: linear-gradient(135deg, var(--pink), #c22fff 60%, #ff5fbf);
  color: #fff;
  box-shadow: 0 16px 32px rgba(242, 29, 181, 0.24);
}

.btn-accent {
  background: linear-gradient(135deg, var(--orange), #ea6d93);
  box-shadow: none;
}

.btn-outline {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  border-color: var(--line);
}

.with-icon {
  padding-right: 10px;
  justify-content: space-between;
  min-width: 270px;
}

.icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), #a841ff);
  color: #fff;
}

.hero {
  padding: 28px 0 34px;
}

.hero-panel,
.panel {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background:
    radial-gradient(circle at 86% 18%, rgba(243, 162, 86, 0.18), transparent 18%),
    radial-gradient(circle at 68% 14%, rgba(138, 57, 255, 0.24), transparent 22%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 86%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 72px 70px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.9rem;
  color: #d3c8f2;
}

html[data-theme="light"] .eyebrow { color: #7b639d; }

.hero-copy h1,
.about-copy h2,
.compact-head h2,
.about-highlight h3 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 840px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 700;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--pink), #9a4eff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
}

.hero-stats div { min-width: 140px; }
.hero-stats small {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero-stats strong {
  font-size: clamp(2rem, 3vw, 3.4rem);
  letter-spacing: -0.05em;
}

.services-section,
.about-section {
  padding: 26px 0 0;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.compact-head h2 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

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

.info-card {
  min-height: 280px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-2) 80%, transparent), color-mix(in srgb, var(--card) 92%, transparent));
}

.accent-card {
  background:
    radial-gradient(circle at 78% 8%, rgba(243, 162, 86, 0.18), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--card-2) 88%, transparent), color-mix(in srgb, var(--card) 96%, transparent));
}

.card-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(126, 43, 255, 0.34), rgba(242, 29, 181, 0.24));
  color: #ff4dc8;
  font-size: 1.2rem;
}

.info-card h3 {
  margin: 26px 0 14px;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.info-card p,
.highlight-grid p,
.about-copy p,
.about-note p,
.footer-copy {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: 44px;
  align-items: stretch;
}

.about-copy h2 {
  max-width: 680px;
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
}

.about-copy p {
  max-width: 620px;
  margin-top: 28px;
}

.about-copy .btn { margin-top: 34px; }

.about-side {
  display: grid;
  gap: 22px;
  align-self: stretch;
}

.about-highlight {
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 14%, rgba(243, 162, 86, 0.16), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--card-2) 84%, transparent), color-mix(in srgb, var(--card) 96%, transparent));
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: #d3c8f2;
}

html[data-theme="light"] .mini-label { color: #7b639d; }

.about-highlight h3 {
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  line-height: 0.98;
}

.about-highlight-intro {
  margin: 18px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  align-items: start;
}

.highlight-grid article {
  min-height: 100%;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 46%, transparent);
}

.highlight-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}


@media (min-width: 1100px) {
  .about-panel {
    padding: 42px 42px 38px;
  }

  .about-copy h2 {
    max-width: 560px;
  }

  .about-highlight-intro {
    max-width: none;
  }

  .highlight-grid p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

.site-footer {
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 32px;
  padding-bottom: 34px;
}

.footer-brand { margin-bottom: 18px; }
.footer-copy { max-width: 520px; }
.site-footer h4 {
  margin: 0 0 20px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li { margin-top: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .card-grid,
  .about-grid,
  .footer-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .about-copy h2,
  .about-copy p,
  .compact-head h2,
  .hero-copy h1,
  .lead {
    max-width: none;
  }
}

@media (max-width: 860px) {
  :root { --container: min(100% - 28px, 1240px); }

  .site-header { position: static; }
  .header-top {
    min-height: auto;
    padding: 14px 0 12px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 1.25rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .header-actions {
    gap: 8px;
    margin-left: 0;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .header-actions .btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .nav-row {
    min-height: auto;
    padding-bottom: 14px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero { padding-top: 0; }
  .hero-panel,
  .panel {
    padding: 22px 16px 26px;
    border-radius: 24px;
  }

  .hero-panel {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
    line-height: 0.98;
  }

  .lead,
  .info-card p,
  .about-copy p,
  .highlight-grid p,
  .footer-copy,
  .about-highlight-intro {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 14px;
  }

  .with-icon {
    width: 100%;
    min-width: 0;
  }

  .hero-stats {
    margin-top: 44px;
    gap: 28px;
  }

  .compact-head h2,
  .about-copy h2,
  .about-highlight h3 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .info-card {
    min-height: auto;
    padding: 24px;
  }

  .info-card h3 {
    font-size: 1.45rem;
  }

  .about-highlight {
    padding: 22px;
    border-radius: 22px;
  }

  .highlight-grid article {
    padding: 16px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 560px) {
  .brand {
    font-size: 1.08rem;
    gap: 8px;
  }

  .brand img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .header-actions .btn {
    padding: 0 14px;
    min-height: 40px;
    font-size: 0.88rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}
