:root {
  color-scheme: dark;
  --bg-0: #050b17;
  --bg-1: #0b1427;
  --bg-2: #111e35;
  --panel: rgba(10, 19, 35, 0.78);
  --panel-strong: rgba(12, 23, 41, 0.9);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f6fbff;
  --muted: #9cb0c8;
  --muted-2: #7688a0;
  --accent: #58d6ff;
  --accent-strong: #2ca7ff;
  --accent-soft: rgba(88, 214, 255, 0.14);
  --success: #74f0b2;
  --danger: #ff8b8b;
  --shadow: 0 30px 70px rgba(2, 8, 20, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 214, 255, 0.12), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(44, 167, 255, 0.1), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(89, 92, 255, 0.07), transparent 34%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 35%, #040811 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20vmax;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 214, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(58, 130, 246, 0.1), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(87, 89, 255, 0.08), transparent 30%);
  filter: blur(12px);
}

body::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
  opacity: 0.35;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.9), rgba(4, 10, 20, 0.6));
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 214, 255, 0.26), rgba(44, 167, 255, 0.08));
  border: 1px solid rgba(88, 214, 255, 0.28);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand__mark span {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.brand__name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 214, 255, 0.18);
  background: rgba(8, 18, 33, 0.55);
  color: var(--muted);
  font-size: 0.8rem;
}

.header-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 214, 255, 0.16);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 18, 33, 0.55);
}

.lang-switch__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.lang-switch__links {
  display: inline-flex;
  gap: 8px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 23, 42, 0.66);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lang-link.is-active {
  border-color: rgba(88, 214, 255, 0.55);
  background: rgba(88, 214, 255, 0.14);
  color: var(--accent);
}

.lang-link:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 255, 0.34);
}

.page {
  padding: 34px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0 26px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 700;
}

.title {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.title .accent {
  color: var(--accent);
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pill-link,
.pill-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 23, 42, 0.66);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pill-link:hover,
.pill-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 255, 0.34);
  background: rgba(88, 214, 255, 0.08);
  box-shadow: 0 12px 30px rgba(2, 8, 20, 0.25);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 25, 44, 0.88), rgba(10, 19, 35, 0.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.stat-value {
  margin-top: 10px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-hint {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.checkout-card,
.info-card,
.status-card {
  border-radius: 32px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 28, 47, 0.92), rgba(10, 18, 32, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.checkout-card {
  padding: 24px;
}

.checkout-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.checkout-card h2,
.status-card h1 {
  margin: 0.34rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(116, 240, 178, 0.2);
  background: rgba(116, 240, 178, 0.09);
  color: #c6ffe0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.panel-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.field-label--optional {
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-2);
  font-weight: 700;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.amount-button {
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(6, 14, 27, 0.68);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.amount-button span {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
}

.amount-button small {
  display: block;
  color: var(--muted-2);
  font-size: 0.7rem;
  margin-top: 2px;
}

.amount-button:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 214, 255, 0.32);
  background: rgba(88, 214, 255, 0.08);
}

.amount-button.is-active {
  border-color: rgba(88, 214, 255, 0.55);
  background: rgba(88, 214, 255, 0.14);
}

.amount-field {
  position: relative;
}

.amount-input {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(6, 14, 27, 0.72);
  color: var(--text);
  padding: 0 16px 0 44px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.amount-input:focus {
  border-color: rgba(88, 214, 255, 0.56);
  box-shadow: 0 0 0 4px rgba(88, 214, 255, 0.12);
}

.amount-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.error-box {
  border-radius: 18px;
  border: 1px solid rgba(255, 139, 139, 0.28);
  background: rgba(255, 139, 139, 0.08);
  color: #ffd8d8;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.primary-button {
  min-height: 56px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04111e;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(44, 167, 255, 0.2);
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.02) brightness(1.04);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  margin: 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(10, 18, 32, 0.7);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(2, 8, 20, 0.2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(88, 214, 255, 0.12);
  border: 1px solid rgba(88, 214, 255, 0.16);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.footer {
  padding: 26px 0 38px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  margin-top: 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer a {
  color: #d6f5ff;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.status-card {
  width: min(560px, 100%);
  padding: 30px;
}

.status-card--maintenance .status-icon {
  background: rgba(88, 214, 255, 0.1);
  border-color: rgba(88, 214, 255, 0.25);
  color: var(--accent);
}

.status-card--success .status-icon {
  background: rgba(116, 240, 178, 0.1);
  border-color: rgba(116, 240, 178, 0.25);
  color: #a6ffd0;
}

.status-card--cancel .status-icon {
  background: rgba(255, 190, 92, 0.1);
  border-color: rgba(255, 190, 92, 0.25);
  color: #ffd79b;
}

.status-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.status-copy {
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 0;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header__inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .feature-grid,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .checkout-card,
  .status-card {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
