/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: var(--grad);
  color: #0b1020;
  box-shadow: 0 10px 34px -12px var(--glow-purple), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn-primary:hover {
  box-shadow: 0 16px 46px -10px var(--glow-pink), 0 0 28px rgba(192, 132, 252, 0.45);
}

.btn-ghost {
  background: rgba(192, 132, 252, 0.07);
  border-color: rgba(192, 132, 252, 0.35);
  color: #e9d5ff;
}
.btn-ghost:hover {
  background: rgba(192, 132, 252, 0.14);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 26px rgba(192, 132, 252, 0.28);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 104px 0 84px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  background: rgba(192, 132, 252, 0.08);
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(74, 222, 128, 0.9); }
  50% { opacity: 0.55; box-shadow: 0 0 18px rgba(74, 222, 128, 0.55); }
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 900px;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 800;
  background: linear-gradient(115deg, #f5f3ff 0%, #e9d5ff 28%, #c084fc 52%, #f472b6 76%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 34px rgba(192, 132, 252, 0.32));
}

.hero .lead {
  margin: 22px auto 0;
  max-width: 660px;
  color: #cbd5e1;
  font-size: clamp(16px, 1.7vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 62px;
}

.stat {
  position: relative;
  padding: 20px 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.55), rgba(10, 15, 29, 0.75));
  text-align: left;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.7;
}
.stat b {
  display: block;
  font-size: 21px;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #e9d5ff, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }

/* ── Sections ─────────────────────────────────────────────────────── */
section { position: relative; }

.section { padding: 78px 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  background: linear-gradient(110deg, #f5f3ff 10%, #c084fc 65%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ── Cards ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.5), rgba(10, 15, 29, 0.82));
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 180px at 12% -20%, rgba(192, 132, 252, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 60px -34px rgba(192, 132, 252, 0.55);
}
.card:hover::after { opacity: 1; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: linear-gradient(150deg, rgba(192, 132, 252, 0.16), rgba(244, 114, 182, 0.08));
  color: #e9d5ff;
  margin-bottom: 18px;
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.14) inset;
}
.icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #f1f5f9;
}

.card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.7px;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
}

.chip.new {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.09);
  color: #a5f3fc;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
}

/* ── Feature rows ─────────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding: 34px 0;
}

.feature + .feature { border-top: 1px solid var(--border); }

.feature h3 {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  margin-top: 8px;
}

.feature .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature p.desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  color: #cbd5e1;
  font-size: 14.5px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 12px var(--glow-purple);
  transform: rotate(45deg);
}

/* ── Mock visuals ─────────────────────────────────────────────────── */
.mock {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(19, 31, 56, 0.95), rgba(8, 12, 24, 0.98));
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
}

.mock-bar .dot-sm {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
}
.mock-bar .dot-sm.r { background: #f87171; }
.mock-bar .dot-sm.y { background: #fbbf24; }
.mock-bar .dot-sm.g { background: #4ade80; }

.mock-url {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body { padding: 18px; }

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.035);
}
.site-row + .site-row { margin-top: 9px; }
.site-row .name { color: #dbeafe; font-size: 13.5px; font-family: "SFMono-Regular", Consolas, monospace; }
.site-row.dim .name { color: var(--muted-2); }

.pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
}
.pill.ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
  color: #86efac;
}

.term-body {
  margin: 0;
  padding: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.8px;
  line-height: 1.85;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}
.term-body .dim { color: var(--muted-2); }
.term-body .grn { color: #86efac; }
.term-body .cyn { color: #67e8f9; }
.term-body .pnk { color: #f9a8d4; }

.cursor {
  display: inline-block;
  width: 7px;
  color: var(--purple);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Infrastructure ───────────────────────────────────────────────── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.infra-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.45), rgba(10, 15, 29, 0.8));
}
.infra-card h4 {
  margin: 0;
  font-size: 15px;
  color: #f1f5f9;
  letter-spacing: 0;
}
.infra-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.8px;
}
.infra-card .val {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(100deg, #a5f3fc, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Steps ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.42), rgba(10, 15, 29, 0.8));
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-weight: 800;
  color: #0b1020;
  background: var(--grad);
  box-shadow: 0 0 22px var(--glow-pink);
  margin-bottom: 16px;
}

.step h4 { margin: 0; font-size: 17px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(192, 132, 252, 0.35);
  background: rgba(30, 41, 59, 0.45);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: #e2e8f0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: var(--purple);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: rgba(192, 132, 252, 0.15);
}

.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.8px;
}

/* ── Contacts ─────────────────────────────────────────────────────── */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 26px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  background:
    radial-gradient(560px 260px at 8% -30%, rgba(192, 132, 252, 0.22), transparent 65%),
    radial-gradient(420px 240px at 100% 120%, rgba(244, 114, 182, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(8, 12, 24, 0.9));
  box-shadow: 0 40px 90px -50px rgba(192, 132, 252, 0.5);
  overflow: hidden;
}

.contact-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  background: linear-gradient(110deg, #f5f3ff, #c084fc 70%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card p { margin-top: 14px; color: var(--muted); }

.contact-lines { display: grid; gap: 18px; margin-top: 26px; }

.contact-line .lbl {
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-line a {
  display: inline-block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
  color: #e9d5ff;
}
.contact-line a:hover { color: #f9a8d4; }

.contact-side { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.contact-side img {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  display: block;
  box-shadow: 0 0 46px rgba(192, 132, 252, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-side img:hover {
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow: 0 0 64px rgba(244, 114, 182, 0.42);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 54px 0 34px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.7));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}

.footer-col h5 {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a, .footer-col span {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: #f9a8d4; text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

/* ── Reveal animation ─────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .visual { order: -1; }
  .contact-card { grid-template-columns: 1fr; padding: 34px; }
  .contact-side { flex-direction: row; justify-content: flex-start; }
  .contact-side img { width: 96px; height: 96px; border-radius: 20px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .hero { padding: 74px 0 60px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 46px; }
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { width: 100%; }
  .contact-card { padding: 26px 22px; }
  .contact-side { flex-direction: column; align-items: flex-start; }
  .header-inner { min-height: 66px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
