/* =============================================
   MAPVAULT — PREMIUM MINIMAL DESIGN SYSTEM
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f0f0f0;
  --text-2: #888;
  --text-3: #555;
  --accent: #c9a96e;
  --accent-dim: rgba(201, 169, 110, 0.12);
  --accent-glow: rgba(201, 169, 110, 0.25);
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.75; }

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 1 !important;
}

.nav-logo svg {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-btn {
  padding: 8px 20px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--accent);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 80px) 32px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  background: var(--bg-3);
  animation: fadeUp 0.8s ease both;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 460px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn-primary:hover::before {
  background: rgba(255,255,255,0.12);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary:disabled::before { display: none; }

.btn-primary.full {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  opacity: 1;
}

.hero-legal {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 400px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-legal a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-legal a:hover {
  color: var(--text-2);
  opacity: 1;
}

/* =============================================
   FEATURES
   ============================================= */

.features {
  padding: 80px 32px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 28px;
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  background: var(--accent-dim);
}

.feature-card h3 {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

/* =============================================
   STATS
   ============================================= */

.stats {
  padding: 0 32px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.stats-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 48px 0;
  background: var(--bg-3);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--white);
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* =============================================
   MODAL
   ============================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-3);
  color: var(--text);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.modal h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--white);
}

.modal > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-agreements {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
  user-select: none;
}

.check-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.check-item input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.check-item input:checked + .checkmark::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 1.5px solid #080808;
  border-bottom: 1.5px solid #080808;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.check-item a {
  color: var(--accent);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-2);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

/* =============================================
   POLICY PAGES
   ============================================= */

.policy-hero {
  padding: calc(var(--nav-height) + 80px) 32px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.policy-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

.policy-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.policy-hero p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
}

.policy-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.policy-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.policy-meta-item span:first-child {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy-meta-item span:last-child {
  font-size: 13px;
  color: var(--text-2);
}

.policy-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 120px;
}

.policy-toc {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 56px;
}

.policy-toc h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 500;
}

.policy-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-toc ol li {
  counter-increment: toc;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}

.policy-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  min-width: 20px;
}

.policy-toc ol li a {
  color: var(--text-2);
}

.policy-toc ol li a:hover {
  color: var(--accent);
  opacity: 1;
}

.policy-section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.policy-section-num {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}

.policy-section h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.policy-section p,
.policy-section li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
}

.policy-section p + p {
  margin-top: 14px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.policy-section ul li {
  list-style: none;
  padding-left: 16px;
  position: relative;
}

.policy-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.policy-section ol li {
  list-style: decimal;
}

.policy-highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--accent);
  line-height: 1.65;
}

.policy-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 52px;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.7s ease both;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    flex-direction: column;
    gap: 32px;
    padding: 40px 32px;
  }
  .stat-divider {
    width: 48px;
    height: 1px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* =============================================
   SYSTEM REQUIREMENTS
   ============================================= */

.sysreq {
  padding: 0 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.sysreq-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sysreq-label {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: 1px;
}

.sysreq-item {
  background: var(--bg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}

.sysreq-item:hover { background: var(--bg-3); }

.sysreq-key {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 500;
}

.sysreq-val {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 400;
}

/* =============================================
   CONTACTS STRIP
   ============================================= */

.contacts-strip {
  padding: 0 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.contacts-strip-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contacts-strip-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contacts-strip-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.contacts-strip-addr {
  font-size: 13px;
  color: var(--text-2);
}

.contacts-strip-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contacts-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}

.contacts-strip-link:hover {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 700px) {
  .sysreq-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-strip-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .sysreq-grid { grid-template-columns: 1fr; }
}
