﻿/* ─────────────────────────────────────────
   SimpleProxy.Space — shared site styles
   index.html · cabinet.html · purchase.html
   ───────────────────────────────────────── */

@font-face { font-family: Inter; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ── base ── */
:root {
  --text:        #f4f7ff;
  --muted:       #aeb8cf;
  --accent:      #74879b;
  --shadow:      0 20px 60px rgba(0, 8, 24, 0.40);
  --panel:       #1e2a40;
  --panel-light: #253247;
  --line:        #2d3a54;
  --green:       #74d58a;
  --blue:        #74879b;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 10%, rgba(116, 135, 155, 0.10), transparent 32%),
    radial-gradient(circle at 85% 5%,  rgba(74, 104, 160, 0.15), transparent 28%),
    linear-gradient(180deg, #1c2740 0%, #16203a 55%, #111b2e 100%);
  min-height: 100vh;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  isolation: isolate;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100dvw;
  height: calc(100% + 54px);
  transform: translateX(-50%);
  background: rgba(17, 27, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 54px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 54px), transparent 100%);
  mask-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* ── brand ── */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-badge { display: none; }

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

/* ── nav links ── */
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-link,
.primary-link {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 16px;
  transition: opacity 0.18s ease;
}

.ghost-link {
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
}

.ghost-link:hover { color: var(--text); opacity: 1; }

.primary-link {
  background: var(--blue);
  color: var(--text);
  font-weight: 700;
  box-shadow: none;
}

.primary-link:hover { opacity: 0.88; }

/* ── eyebrow badge ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

/* ── section head ── */
.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn:disabled,
.btn:disabled:hover {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--text);
  box-shadow: none;
}

.btn-secondary {
  color: var(--text);
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
}

/* ── footer ── */
footer {
  padding: 30px 0 48px;
  color: rgba(174, 184, 207, 0.50);
  font-size: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  justify-self: start;
}

.footer-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.footer-telegram-link svg {
  width: 16px;
  height: 16px;
  display: block;
  transform: translateY(-0.5px);
}

.footer-telegram-link:hover {
  border-color: rgba(174, 184, 207, 0.45);
  opacity: 0.88;
}

.footer-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.footer-info-link::after {
  content: "i";
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(174, 184, 207, 0.45);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

.footer-info-link:hover {
  border-color: rgba(174, 184, 207, 0.45);
  opacity: 0.88;
}

/* ── reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.78s ease, transform 0.78s ease;
  will-change: opacity, transform;
}

.reveal-soft {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-soft.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-soft {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── panel ── */
.panel {
  padding: 26px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ── payment alert ── */
.payment-alert {
  display: none;
  margin: 18px 0 8px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.55;
}

.payment-alert.is-visible { display: block; }

.payment-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.payment-alert.success {
  border-color: rgba(116, 213, 138, 0.30);
  background: rgba(116, 213, 138, 0.08);
}

.payment-alert.fail {
  border-color: rgba(255, 100, 89, 0.35);
  background: rgba(255, 100, 89, 0.08);
}

.payment-alert a { color: var(--muted); text-decoration: underline; }

/* ── form fields ── */
.field { display: grid; gap: 8px; }

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

input:not([type=checkbox]):not([type=radio]),
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(116, 135, 155, 0.08);
  color: var(--text);
  padding: 0 17px;
  outline: none;
  font: inherit;
  color-scheme: dark;
}

textarea {
  border-radius: 18px;
  min-height: 130px;
  padding: 14px 17px;
  resize: vertical;
}

input:not([type=checkbox]):not([type=radio])::placeholder,
textarea::placeholder {
  color: rgba(174, 184, 207, 0.40);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:autofill {
  -webkit-box-shadow: 0 0 0 1000px #1e2a40 inset !important;
  box-shadow: 0 0 0 1000px #1e2a40 inset !important;
  -webkit-text-fill-color: #f4f7ff !important;
  color: #f4f7ff !important;
  caret-color: #f4f7ff;
  border-color: #2d3a54 !important;
  outline: none !important;
  filter: none !important;
}

input:not([type=checkbox]):not([type=radio]):focus,
textarea:focus {
  border-color: rgba(116, 135, 155, 0.60);
  box-shadow: 0 0 0 4px rgba(116, 135, 155, 0.12);
}

/* ── app download grid ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-card-shell { display: block; }

.app-link {
  display: block;
  height: 100%;
  border-radius: 20px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.app-link:hover { transform: translateY(-3px); border-color: var(--blue); }

.app-link.is-disabled { cursor: default; opacity: 0.48; }
.app-link.is-disabled:hover { transform: none; border-color: var(--line); }

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(116, 135, 155, 0.10);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.app-icon svg { width: 22px; height: 22px; fill: var(--muted); }

.app-link h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.app-link p  { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.app-status {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ── responsive ── */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.6;
  }
}
