*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --accent: #39f29b;
  --accent-soft: rgba(57, 242, 155, 0.16);
  --accent-strong: #0af58f;
  --accent-crypto: #23d1ff;
  --danger: #ff7b7b;
  --border-strong: rgba(81, 255, 183, 0.7);
  --border-soft: rgba(81, 255, 183, 0.35);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.9);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --transition-fast: 0.18s ease;
  --transition-med: 0.3s ease;
  --bg-main: radial-gradient(circle at top left, #101f1a 0%, #050908 40%, #020304 100%);
  --bg-elevated: radial-gradient(circle at top left, rgba(58, 120, 90, 0.4), rgba(4, 10, 8, 0.98));
  --bg-elevated-soft: rgba(6, 16, 12, 0.96);
  --bg-strong: radial-gradient(circle at top, rgba(62, 137, 100, 0.8), rgba(2, 7, 5, 0.98));
  --bg-chip: rgba(15, 42, 31, 0.96);
  --bg-footer: radial-gradient(circle at top, rgba(40, 91, 67, 0.6), rgba(3, 7, 5, 0.98));
  --bg-hero-gradient: radial-gradient(circle at 80% 30%, rgba(107, 255, 189, 0.2), transparent 55%), linear-gradient(to left, rgba(5, 12, 8, 0.98), rgba(2, 6, 5, 0));
  --text-main: #f4fff7;
  --text-subtle: #c1e2d2;
  --text-muted: #93a9a0;
  --text-strong: #ffffff;
  --glass: rgba(6, 18, 13, 0.9);
  --glass-strong: rgba(6, 18, 13, 0.98);
}

body.theme-light {
  --bg-main: radial-gradient(circle at top left, #f4fff8 0%, #edf5f1 50%, #e1eee6 100%);
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f4fbf7;
  --bg-strong: linear-gradient(135deg, #e6fff2, #ffffff);
  --bg-chip: rgba(231, 248, 239, 0.96);
  --bg-footer: linear-gradient(to top, #e7f5ec, #f7fff9);
  --bg-hero-gradient: radial-gradient(circle at 70% 20%, rgba(83, 214, 147, 0.35), transparent 55%), linear-gradient(to left, #f5fff8, #f5fff8);
  --text-main: #07120b;
  --text-subtle: #40594b;
  --text-muted: #6b8174;
  --text-strong: #020704;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-strong: rgba(255, 255, 255, 0.98);
  --border-strong: rgba(31, 184, 112, 0.8);
  --border-soft: rgba(31, 184, 112, 0.35);
  --accent-soft: rgba(31, 184, 112, 0.12);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  transition: background var(--transition-med), color var(--transition-med);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(1, 6, 4, 0.96), rgba(1, 7, 5, 0.8), transparent);
  border-bottom: 1px solid var(--border-soft);
}

body.theme-light .header {
  background: linear-gradient(to bottom, rgba(244, 255, 248, 0.96), rgba(244, 255, 248, 0.9), transparent);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-strong);
}

.nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-subtle);
  padding: 6px 8px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020604;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(12, 209, 115, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(12, 209, 115, 0.7);
  filter: brightness(1.04);
}

.btn-primary.btn-lg {
  padding: 10px 22px;
  font-size: 15px;
}

.btn-secondary {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--glass);
  color: var(--text-subtle);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-subtle);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.theme-toggle {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--glass-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #4effa2 0%, #16c582 55%, #04744a 100%);
  box-shadow: 0 0 12px rgba(112, 255, 189, 0.9);
}

.hero-title {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-subtle);
  max-width: 480px;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg-chip);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-item {
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
}

body.theme-light .stat-item {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.stat-value {
  font-size: 17px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.hero-gradient {
  position: absolute;
  inset: -30px -60px -40px 16%;
  background: var(--bg-hero-gradient);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.9s ease-out 0.15s, transform 0.9s ease-out 0.15s;
  pointer-events: none;
}

.hero-card-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.hero-card {
  width: 320px;
  max-width: none;
  position: relative;
  right: -70px;
  transform-origin: center;
  transform: translateX(160%) rotate(-24deg) scale(1.18);
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.9));
  opacity: 0;
}

.page-loaded .hero-gradient {
  opacity: 1;
  transform: translateX(0);
}

@keyframes card-slide-in {
  0% {
    transform: translateX(160%) rotate(-28deg) scale(1.2);
    opacity: 0;
  }
  55% {
    transform: translateX(-6%) rotate(-18deg) scale(1.24);
    opacity: 1;
  }
  100% {
    transform: translateX(0) rotate(-16deg) scale(1.22);
    opacity: 1;
  }
}

.page-loaded .hero-card {
  animation: card-slide-in 1.3s cubic-bezier(0.18, 0.9, 0.32, 1.02) forwards;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px 40px;
}

.section-grid {
  padding-top: 30px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 24px;
}

.section-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-subtle);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius-md);
  padding: 16px 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
}

body.theme-light .card {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.card-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 17px;
  margin: 0 0 8px;
}

.card-text {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 0 0 10px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-main);
}

.card-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.card-link {
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px dashed rgba(57, 242, 155, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.card-link:hover {
  color: var(--accent-strong);
  border-bottom-color: transparent;
}

.highlight {
  padding-top: 40px;
}

.highlight-inner {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  background: var(--bg-strong);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-strong);
}

.highlight-items {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  gap: 12px;
}

.highlight-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.highlight-content h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.highlight-content p {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.highlight-visual {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  animation: orbit-rotate 26s linear infinite;
}

.orbit-circle {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.orbit-outer {
  border: 1px dashed rgba(158, 255, 205, 0.7);
}

.orbit-middle {
  inset: 20px;
  border-radius: 999px;
  border: 1px solid rgba(125, 243, 191, 0.7);
}

.orbit-inner {
  inset: 46px;
  border-radius: 999px;
  border: 1px solid rgba(203, 255, 225, 0.9);
  background: radial-gradient(circle, rgba(126, 255, 199, 0.85), rgba(3, 14, 9, 0.98));
  box-shadow: 0 0 45px rgba(126, 255, 199, 0.9);
}

body.theme-light .orbit-inner {
  background: radial-gradient(circle, rgba(57, 242, 155, 0.9), #ffffff);
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8bffd0, #2eea9c);
  box-shadow: 0 0 14px rgba(140, 255, 210, 0.9);
}

.orbit-dot-1 {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-dot-2 {
  right: -4px;
  top: 55%;
  transform: translateY(-50%);
}

.orbit-dot-3 {
  left: 8%;
  bottom: -4px;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.highlight-badges {
  position: absolute;
  inset: auto 0 8px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.badge-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--glass-strong);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding-top: 36px;
}

.split-text {
  max-width: 520px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
  font-size: 13px;
  color: var(--text-main);
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 5px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--accent);
}

.sdk-block {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: var(--bg-elevated-soft);
  border: 1px dashed var(--border-soft);
}

.sdk-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sdk-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-subtle);
}

.split-visual {
  display: flex;
  justify-content: center;
}

.terminal {
  width: 260px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.terminal-header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(3, 9, 7, 0.96);
  color: var(--text-muted);
  font-size: 11px;
}

body.theme-light .terminal-header {
  background: #e7f5ec;
}

.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(116, 255, 191, 0.7);
}

.terminal-title {
  margin-left: auto;
}

.terminal-body {
  padding: 10px 10px 12px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: var(--text-main);
}

.code-line {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.code-key {
  color: #88ffd2;
}

.code-func {
  color: #7ae3ff;
}

.code-str {
  color: #fff38c;
}

.code-num {
  color: #ffb78e;
}

.code-op {
  color: #d2e0d7;
}

.code-text {
  color: var(--text-main);
}

.terminal-status {
  margin-top: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  background: var(--bg-chip);
  color: var(--text-subtle);
}

.phone-mockup {
  width: 220px;
  padding: 8px;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  background: var(--bg-strong);
  box-shadow: var(--shadow-strong);
}

.phone-screen {
  border-radius: 22px;
  padding: 10px 10px 12px;
  background: linear-gradient(160deg, #050e0a, #061712);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-light .phone-screen {
  background: linear-gradient(160deg, #e9fff3, #f8fffb);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.phone-balance {
  padding: 8px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(61, 177, 121, 0.5), rgba(6, 22, 15, 0.96));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.theme-light .phone-balance {
  background: radial-gradient(circle at top left, rgba(61, 177, 121, 0.4), #ffffff);
}

.phone-balance.crypto {
  background: radial-gradient(circle at top left, rgba(35, 209, 255, 0.4), rgba(6, 22, 21, 0.96));
}

body.theme-light .phone-balance.crypto {
  background: radial-gradient(circle at top left, rgba(35, 209, 255, 0.3), #ffffff);
}

.phone-balance span {
  font-size: 11px;
  color: var(--text-subtle);
}

.phone-balance strong {
  font-size: 16px;
}

.phone-operations {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-op {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 10px;
  background: rgba(5, 19, 12, 0.96);
  color: var(--text-main);
}

body.theme-light .phone-op {
  background: #eef8f3;
}

.op-plus {
  color: var(--accent);
}

.op-minus {
  color: var(--danger);
}

.phone-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.chart-bar {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(to top, #1e9e61, #7fffca);
  height: 18px;
}

.chart-bar-1 {
  height: 12px;
}

.chart-bar-2 {
  height: 22px;
}

.chart-bar-3 {
  height: 16px;
}

.chart-bar-4 {
  height: 26px;
}

.section-testimonials {
  padding-top: 36px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  padding: 16px 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strong);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar-letter {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-crypto));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #020806;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 11px;
  color: var(--text-muted);
}

.testimonial-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.section-faq {
  padding-top: 36px;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: 14px;
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
}

.faq-icon {
  margin-left: 12px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-subtle);
  transition: max-height 0.22s ease, padding-bottom 0.22s ease;
}

.faq-item.open .faq-answer {
  padding-bottom: 10px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.section-cta {
  padding-top: 40px;
  padding-bottom: 50px;
}

.cta-inner {
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  background: var(--bg-strong);
  border: 1px solid var(--border-strong);
  max-width: 760px;
  box-shadow: var(--shadow-strong);
}

.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-footer);
  padding: 20px 0 18px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 18px;
}

.footer-logo {
  margin-bottom: 6px;
}

.footer-title {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-text {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-subtle);
}

.footer-link {
  display: block;
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 4px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.9;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
  z-index: 60;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  padding: 18px 18px 16px;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform var(--transition-med), opacity var(--transition-med);
  position: relative;
}

body.theme-light .modal-dialog {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.modal-header {
  margin-bottom: 8px;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--accent-soft);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.request-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-row-column {
  flex-direction: column;
}

.form-row-between {
  justify-content: space-between;
  align-items: center;
}

.input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated-soft);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

body.theme-light .input {
  background: #f7fff9;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.textarea {
  min-height: 80px;
  border-radius: 14px;
  resize: vertical;
}

.checkbox-group-label {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-subtle);
}

.checkbox-item input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 260px;
}

.modal-success {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text-main);
  font-size: 12px;
  display: none;
}

.success-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.success-text {
  font-size: 11px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(24px);
}

[data-animate="fade-left"].in-view {
  transform: translateX(0);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-visual {
    order: -1;
    height: 270px;
  }

  .hero-card-wrapper {
    width: 260px;
    height: 240px;
  }

  .hero-card {
    width: 300px;
    right: -50px;
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .highlight-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 14px;
  }

  .nav {
    position: fixed;
    inset: 58px 12px auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--glass-strong);
    border: 1px solid var(--border-soft);
    transform: scale(0.96);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .header-actions {
    gap: 8px;
  }

  .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid,
  .cards-grid-3,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-inline: 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .cta-inner {
    padding-inline: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    height: 240px;
  }

  .hero-card-wrapper {
    width: 250px;
  }
}

@media (max-width: 520px) {
  .form-row-between {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .modal-dialog {
    margin: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
