/* DigitalVPN cabinet — shell (tokens, layout, nav, hero, UI primitives) */

:root {
  --site-font-sans: Manrope, system-ui, -apple-system, sans-serif;
  --site-font-headings: "Space Grotesk", system-ui, sans-serif;
  --site-container-max: 64rem;
  --site-radius: 0.5rem;
  --site-radius-lg: 1rem;
  --site-space: 1rem;
  --site-bg-dark: #15161a;
  --site-text-dark: #f0f0f2;
  --site-dimmed-dark: #8a8a94;
  --site-border-dark: rgba(255, 255, 255, 0.08);
  --site-accent: #228be6;
  --site-accent-hover: #1c7ed6;
  --site-accent-light: rgba(34, 139, 230, 0.15);
  --site-bg-light: #f6f7f9;
  --site-text-light: #1a1a1a;
  --site-dimmed-light: #45454d;
  --site-border-light: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--site-font-sans);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#site-app {
  overflow-x: hidden;
  max-width: 100vw;
}

.ui-title,
h1.ui-title {
  font-family: var(--site-font-headings);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dgvpn-dark .ui-title {
  color: #f0f0f2;
}

.dgvpn-light .ui-title {
  color: #0f0f12;
}

.ui-subtitle {
  color: #6b6b76;
  letter-spacing: 0.01em;
}

.dgvpn-dark .ui-subtitle {
  color: #8a8a94;
}

.dgvpn-light .ui-subtitle {
  color: #45454d;
}

.ui-card {
  border-radius: var(--site-radius-lg);
  border: 1px solid var(--site-border-dark);
  margin-bottom: var(--site-space);
  background: rgba(21, 22, 26, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.2s ease;
}

.ui-card:hover {
  border-color: rgba(34, 139, 230, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(34, 139, 230, 0.08), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transform: translateY(-2px);
}

.dgvpn-light .ui-card {
  border-color: var(--site-border-light);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.dgvpn-light .ui-card:hover {
  border-color: rgba(34, 139, 230, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(34, 139, 230, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-2px);
}

.ui-btn {
  border-radius: 0.625rem;
  padding: 0.52rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.ui-btn-primary {
  background: var(--site-accent);
  color: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(34, 139, 230, 0.28);
}

.ui-btn-primary:hover {
  transform: translateY(-1px);
  background: var(--site-accent-hover);
  box-shadow: 0 4px 10px rgba(34, 139, 230, 0.34);
}

.ui-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8ec;
  background: rgba(255, 255, 255, 0.04);
}

.ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent);
}

.dgvpn-light .ui-btn-secondary {
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--site-text-light);
  background: rgba(0, 0, 0, 0.03);
}

.dgvpn-light .ui-btn-secondary:hover {
  border-color: var(--site-accent);
  background: var(--site-accent-light);
  color: var(--site-accent-hover);
}

.ui-input {
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f2;
  padding: 0.75rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  font-size: 1rem;
}

.ui-input:focus,
.ui-input:focus-visible {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px var(--site-accent-light);
}

.dgvpn-light .ui-input {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0b;
}

select.ui-input {
  color-scheme: dark;
}

.dgvpn-dark select.ui-input,
.dgvpn-dark select.ui-input option {
  background-color: #1c1f26;
  color: #f0f0f2;
}

.dgvpn-light select.ui-input {
  color-scheme: light;
}

.field-label {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.dgvpn-dark {
  background-color: var(--site-bg-dark);
  color: var(--site-text-dark);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 139, 230, 0.03) 0%, transparent 50%);
}

.dgvpn-light {
  background-color: var(--site-bg-light);
  color: var(--site-text-light);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 139, 230, 0.04) 0%, transparent 45%);
}

.link-dgvpn {
  color: inherit;
  text-decoration: none;
}

.link-dgvpn:hover {
  color: var(--site-accent);
}

.site-container {
  max-width: var(--site-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .site-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

.header-glass {
  background: rgba(21, 22, 26, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--site-border-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.dgvpn-light .header-glass {
  background: rgba(246, 247, 249, 0.9);
  border-bottom-color: var(--site-border-light);
}

.nav-shell {
  border-bottom: 1px solid var(--site-border-dark);
}

.dgvpn-light .nav-shell {
  border-bottom-color: var(--site-border-light);
}

.header-glass.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
}

.header-glass .site-container {
  max-width: 72rem;
}

.site-header-inner.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-space);
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #e8e8ec;
  transition: color 0.3s ease;
  text-decoration: none;
}

.dgvpn-light .site-logo {
  color: #1a1a20;
}

.nav-brand {
  font-family: var(--site-font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: inherit;
}

.site-nav {
  display: none;
  color: var(--site-dimmed-dark);
}

.dgvpn-light .site-nav {
  color: var(--site-dimmed-light);
}

.nav-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-header-actions.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  padding: 0.42rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 2.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.dgvpn-light .btn-nav {
  border-color: rgba(0, 0, 0, 0.15);
}

.dgvpn-light .btn-nav:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
}

.theme-toggle-btn .theme-icon {
  display: none;
  align-items: center;
  justify-content: center;
}

.dgvpn-light .theme-icon-sun,
.dgvpn-dark .theme-icon-moon {
  display: inline-flex !important;
}

.nav-icon {
  display: block;
  flex-shrink: 0;
}

.site-main {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem;
  padding-top: 5.5rem;
}

@media (min-width: 768px) {
  .site-main {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  margin-top: 5rem;
}

.site-footer-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.875rem;
  color: #6b6b76;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.dgvpn-light .site-footer-inner {
  color: #505059;
}

.site-footer-inner a {
  color: inherit;
  transition: color 0.3s ease;
}

.hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(34, 139, 230, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(34, 139, 230, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 30%, rgba(34, 139, 230, 0.04), transparent 45%);
}

.dgvpn-light .hero-glow {
  background: radial-gradient(ellipse 90% 60% at 50% -15%, rgba(34, 139, 230, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(34, 139, 230, 0.05), transparent 50%);
}

.hero-section.hero {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  min-height: auto;
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--site-space);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.0625rem;
  max-width: 32rem;
  line-height: 1.6;
}

.dgvpn-dark .hero-subtitle {
  color: var(--site-dimmed-dark);
}

.dgvpn-light .hero-subtitle {
  color: var(--site-dimmed-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.animate-fade-up {
  animation: none;
  opacity: 1;
  transform: none;
}

.animate-delay-1 {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.dgvpn-light .nav-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a20;
}

.dgvpn-dark .nav-toggle {
  color: #e8e8ec;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-close {
  display: none;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@media (min-width: 768px) {
  .site-nav.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .nav-close {
    display: none !important;
  }

  .nav-actions-mobile {
    display: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-overlay {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .site-header-actions.nav-actions {
    order: 1;
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-action-desktop {
    display: none !important;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10001;
    width: min(85vw, 280px);
    height: 100vh;
    padding: 4.5rem 1.5rem 1.5rem;
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
  }

  .dgvpn-light .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-left-color: rgba(0, 0, 0, 0.08);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    display: flex;
  }

  .site-nav__link {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    border-radius: 0.75rem;
    color: #e8e8ec;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--site-accent);
  }

  .dgvpn-light .site-nav__link {
    color: #1a1a20;
  }

  .dgvpn-light .site-nav__link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--site-accent-hover);
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--site-border-dark);
  }

  .dgvpn-light .nav-actions-mobile {
    border-top-color: var(--site-border-light);
  }

  .nav-action-mobile-btn {
    width: 100%;
    justify-content: center;
    padding: 0.62rem 0.875rem;
    text-decoration: none;
  }

  body.nav-open .header-glass.nav-shell {
    z-index: 10002;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: none;
    border-radius: var(--site-radius);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--site-accent);
  }

  .dgvpn-light .nav-close {
    background: rgba(0, 0, 0, 0.06);
  }

  .site-main {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .ui-card:hover {
    transform: none;
  }
  .ui-btn-primary:hover {
    transform: none;
  }
}
