/* Raven VPN — Premium Dark Fullscreen Landing */

:root {
  --bg: #030609;
  --text: #f4f7fb;
  --muted: rgba(220, 228, 238, 0.72);
  --soft: rgba(220, 228, 238, 0.52);
  --accent: #8fc7ff;
  --accent-2: #5aa9ff;
  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.12);
  --container: 1240px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Fullscreen page background ── */

.page {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(3, 6, 9, 0.96) 0%, rgba(3, 6, 9, 0.82) 38%, rgba(3, 6, 9, 0.26) 72%, rgba(3, 6, 9, 0.72) 100%),
    url('../img/bg-desktop.jpg');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* ── Header ── */

.header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: rgba(230, 238, 247, 0.7);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(143, 199, 255, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 32px 60px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  width: min(100%, 520px);
  z-index: 2;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(143, 199, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  color: #c4d8ec;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(143, 199, 255, 0.6);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #f5f8fc;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  margin-top: 22px;
}

.hero-slogan {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(245, 248, 252, 0.94);
  margin-top: 18px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(218, 226, 235, 0.76);
  max-width: 470px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  min-width: 180px;
  background: linear-gradient(135deg, rgba(132, 190, 255, 0.95), rgba(50, 115, 184, 0.88));
  color: #06101a;
  font-weight: 800;
  border: none;
  box-shadow:
    0 18px 50px rgba(68, 145, 224, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 56px rgba(68, 145, 224, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #e8eef6;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Cards ── */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
}

/* ── Features ── */

.features {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f4f8;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Why section ── */

.why {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 32px 50px;
}

.why-inner {
  max-width: 900px;
}

.section-title {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f8fc;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 28px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-card {
  padding: 26px 22px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f4f8;
}

.why-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── FAQ ── */

.faq {
  max-width: var(--container);
  margin: 0 auto;
  padding: 50px 32px 60px;
}

.faq .section-title {
  margin-bottom: 28px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.faq-card {
  padding: 26px 24px;
}

.faq-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f0f4f8;
}

.faq-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Footer ── */

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 32px 50px;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* ── Modal ── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.75);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 32px 28px;
  text-align: center;
}

.modal-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.modal-close {
  width: 100%;
}

/* ── Download message page ── */

.download-page-body {
  background: var(--bg);
  min-height: 100svh;
}

.download-page {
  min-height: 100svh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.94) 0%, rgba(3, 6, 9, 0.88) 100%),
    url('../img/bg-mobile.jpg') center top / cover no-repeat;
  background-color: var(--bg);
}

.download-card {
  width: min(100%, 420px);
  max-width: calc(100vw - 32px);
  border-radius: 26px;
  padding: clamp(22px, 6vw, 34px);
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.download-card h1 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: clamp(22px, 7vw, 34px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.download-card p {
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}

.download-card a,
.download-card button {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

/* ── Admin Panel ── */

.panel-body {
  background: var(--bg);
  min-height: 100vh;
}

.panel-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.panel-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.panel-login-card {
  width: min(100%, 400px);
  padding: 36px 30px;
  text-align: center;
}

.panel-login-card h1 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.panel-login-card p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.panel-label {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 8px;
}

.panel-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
}

.panel-input:focus {
  outline: none;
  border-color: rgba(143, 199, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(143, 199, 255, 0.12);
}

.panel-btn {
  width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.panel-header h1 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 24px;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.panel-stat {
  padding: 20px 18px;
}

.panel-stat-label {
  display: block;
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 8px;
}

.panel-stat strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.panel-section {
  padding: 24px;
  margin-bottom: 20px;
}

.panel-section h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.panel-muted {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 14px;
}

.panel-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.panel-upload-form .panel-input {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
  height: auto;
  padding: 10px 14px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-inline-form {
  display: inline;
}

.panel-danger {
  color: #ff8a8a;
  border-color: rgba(255, 138, 138, 0.3);
}

.panel-alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.panel-alert-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ffb0b0;
}

.panel-alert-success {
  background: rgba(80, 200, 120, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.25);
  color: #a8e6c0;
}

.panel-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 900px;
}

.panel-table th,
.panel-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.panel-table th {
  color: var(--soft);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-table td {
  color: var(--muted);
}

.panel-ua {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-empty {
  text-align: center;
  color: var(--soft);
  padding: 24px !important;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.panel-list-item strong {
  color: var(--text);
}

.panel-list-item span {
  color: var(--soft);
}

/* ── Mobile nav open state ── */

@media (max-width: 768px) {
  .page {
    background-image:
      linear-gradient(180deg, rgba(3, 6, 9, 0.94) 0%, rgba(3, 6, 9, 0.72) 42%, rgba(3, 6, 9, 0.97) 100%),
      url('../img/bg-mobile.jpg');
    background-position: center top;
    background-size: cover;
  }

  .header {
    padding: 18px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 14, 22, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 20px 50px;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    white-space: normal;
  }

  .features {
    padding: 10px 20px 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .why {
    padding: 20px 20px 40px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq {
    padding: 30px 20px 40px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer {
    padding: 24px 20px 40px;
  }

  .panel-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .panel-stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1920px) {
  .hero-title {
    font-size: 76px;
  }

  .hero-slogan {
    font-size: 46px;
  }
}
