:root {
  --bg: #050608;
  --surface: rgba(17, 19, 24, 0.86);
  --surface-strong: rgba(23, 26, 32, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f7f2eb;
  --muted: rgba(247, 242, 235, 0.76);
  --muted-strong: rgba(247, 242, 235, 0.92);
  --accent: #ff5c68;
  --accent-rgb: 255, 92, 104;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.18), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(180deg, #050506 0%, #090b0f 38%, #050608 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
  opacity: 0.28;
}

body.theme-cyan {
  --accent: #42d7ef;
  --accent-rgb: 66, 215, 239;
}

body.theme-blue {
  --accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
}

body.theme-orange {
  --accent: #ff8d4b;
  --accent-rgb: 255, 141, 75;
}

body.theme-violet {
  --accent: #9a74ff;
  --accent-rgb: 154, 116, 255;
}

body.theme-green {
  --accent: #93f0c2;
  --accent-rgb: 147, 240, 194;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 6, 8, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name strong {
  font-size: 18px;
}

.brand-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-shell {
  display: flex;
  justify-content: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #111;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--accent-rgb), 0.9));
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-ghost {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.panel,
.card,
.hero-copy,
.contact-panel,
.form-panel,
.price-card,
.case-card,
.article-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, background 0.32s ease;
}

.motion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 72px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.08) 32px, transparent 72px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.motion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%, transparent 66%, rgba(255, 255, 255, 0.05));
  opacity: 0.42;
  pointer-events: none;
}

.motion-card:hover {
  border-color: rgba(var(--accent-rgb), 0.34);
  box-shadow: var(--shadow), 0 18px 44px rgba(0, 0, 0, 0.26);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
}

.motion-card.is-glow-active::before {
  opacity: 1;
}

.hero-copy {
  padding: 38px;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-copy p:last-child,
.section-subtitle:last-child {
  margin-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.5);
}

.hero-title,
.section-title,
.card h3,
.article-shell h1,
.article-shell h2,
.article-shell h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 0.95;
}

.hero-subtitle {
  margin: 0 0 26px;
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.button-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-microcopy {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.stat {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1;
  margin-bottom: 6px;
}

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

.panel {
  padding: 28px;
}

.panel h2,
.panel h3 {
  margin: 0 0 10px;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

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

.mini-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.mini-card strong,
.price-card strong,
.contact-card strong,
.case-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-2,
.grid-3,
.grid-4,
.split,
.steps,
.faq-grid,
.lead-grid,
.article-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.grid-2,
.split,
.lead-grid,
.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

.card {
  padding: 26px;
}

.card-media {
  width: 100%;
  height: 180px;
  margin-bottom: 18px;
  border-radius: 20px;
  object-fit: cover;
}

.card .tag,
.price-card .tag,
.case-card .tag {
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.card:hover .tag,
.price-card:hover .tag,
.case-card:hover .tag {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
}

.card h3,
.price-card h3,
.contact-card h3,
.faq-card summary,
.case-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.02;
}

.card p,
.contact-card p,
.faq-card p,
.case-card p,
.price-card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--muted-strong);
  font-size: 13px;
}

.bullet-list,
.article-shell ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.bullet-list li,
.article-shell li {
  margin-bottom: 10px;
}

.step-card {
  padding: 24px;
}

.step-no {
  display: inline-flex;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.12);
  font-weight: 800;
}

.step-note,
.meta-line,
.support-line {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.price-card,
.case-card,
.contact-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

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

.faq-card {
  padding: 24px;
}

.faq-card details {
  display: block;
}

.faq-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  color: var(--accent);
  flex: 0 0 auto;
}

.faq-card details[open] summary::after {
  content: "-";
}

.faq-card details.is-open summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.58s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}

.faq-card details.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

.faq-card details.is-open .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-card p {
  margin-top: 14px;
}

.lead-grid {
  align-items: stretch;
}

.contact-panel,
.form-panel {
  padding: 30px;
}

.lead-points {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.lead-points div {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.lead-points span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.lead-points strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
}

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

.lead-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.related-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
}

.article-shell {
  padding: 38px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.article-shell h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.96;
}

.article-lead {
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: 19px;
}

.article-shell h2 {
  margin: 34px 0 14px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
}

.article-shell h3 {
  margin: 24px 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.08;
}

.article-shell p {
  margin: 0 0 16px;
  color: var(--muted-strong);
}

.article-sidebar {
  display: grid;
  gap: 18px;
}

.js .motion-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.78s ease, transform 0.78s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--delay, 0) * 80ms);
}

.js .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer {
  padding: 26px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .grid-4,
  .steps,
  .grid-3,
  .case-grid,
  .article-grid,
  .split,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-shell {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    background: rgba(5, 6, 8, 0.92);
  }

  .header-inner {
    grid-template-columns: auto auto;
    gap: 12px;
    min-height: 70px;
    overflow: visible;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .mobile-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 11, 14, 0.94);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    clip-path: inset(0 0 100% 0 round 22px);
    will-change: opacity, transform, clip-path;
    transition: opacity 0.36s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), clip-path 0.56s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.36s ease;
  }

  .header-inner.is-open .mobile-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 22px);
  }

  .js .header-inner > .nav-shell,
  .js .header-inner > .header-actions {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    overflow: hidden;
  }

  .mobile-menu-panel .nav-shell,
  .mobile-menu-panel .header-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    height: auto;
    overflow: visible;
  }

  .site-nav a,
  .header-actions .button {
    width: 100%;
  }

  .hero-copy,
  .panel,
  .card,
  .contact-panel,
  .form-panel,
  .article-shell {
    padding: 24px;
  }

  .section {
    padding: 70px 0;
  }

  .stats,
  .grid-2,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card summary::after {
    transition: transform 0.68s cubic-bezier(0.2, 0.95, 0.25, 1), opacity 0.38s ease;
  }

  .faq-answer {
    transition: grid-template-rows 0.92s cubic-bezier(0.18, 0.98, 0.24, 1), opacity 0.58s ease;
  }

  .faq-answer-inner {
    transform: translateY(-10px);
    transition: transform 0.68s cubic-bezier(0.2, 0.95, 0.25, 1), opacity 0.52s ease;
  }

  .motion-card:hover {
    transform: translateY(-3px);
  }
}
