:root {
  --bg-dark: #0A0815;
  --bg-card: rgba(22, 18, 36, 0.78);
  --bg-card-hover: rgba(30, 24, 48, 0.9);
  --border: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(226, 63, 224, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #A8A5BD;
  --text-dim: #736F8C;
  --primary: #E23FE0;
  --secondary: #7C4DFF;
  --accent: #00D2FF;
  --success: #00F5A0;
  --warning: #FFB300;
  --danger: #FF4757;
  --grad-brand: linear-gradient(135deg, #E23FE0 0%, #7C4DFF 50%, #00D2FF 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.25) 0%, transparent 70%);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(226, 63, 224, 0.35);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: 
    var(--grad-glow),
    radial-gradient(circle at 10% 25%, rgba(226, 63, 224, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(0, 210, 255, 0.1) 0%, transparent 45%),
    var(--bg-dark);
}

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

a:hover {
  color: var(--primary);
}

/* Container */
.container,
.nav-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header,
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 8, 21, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper,
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand-link,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main) !important;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(226, 63, 224, 0.45);
}

.brand-name {
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.btn-header {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--grad-brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(124, 77, 255, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(226, 63, 224, 0.55);
}

/* Badge & Indicators */
.badge-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(226, 63, 224, 0.14);
  border: 1px solid rgba(226, 63, 224, 0.35);
  color: #FF77FD;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00F5A0;
  border-radius: 50%;
  box-shadow: 0 0 10px #00F5A0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--grad-brand);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(124, 77, 255, 0.45);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(226, 63, 224, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-main) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Feature Cards Grid */
.features-section {
  padding: 60px 0 90px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Security Trust Bar */
.trust-bar {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  margin: 20px 0 60px;
}

.trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-item span.icon {
  font-size: 1.4rem;
  color: var(--accent);
}

/* Legal & Policy Layout */
.policy-page,
.legal-page {
  padding: 60px 0 100px;
}

.policy-header,
.legal-header {
  text-align: center;
  margin-bottom: 40px;
}

.effective-date {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.policy-card,
.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.policy-card h2,
.legal-card h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-card h2:first-of-type,
.legal-card h2:first-of-type {
  margin-top: 0;
}

.policy-card h3,
.legal-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #E0DCF5;
  margin: 24px 0 10px;
}

.policy-card p,
.policy-card li,
.legal-card p,
.legal-card li,
.legal-content p,
.legal-content li {
  color: #C3BFDA;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.policy-card ul,
.policy-card ol,
.legal-card ul,
.legal-card ol,
.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.policy-card strong,
.legal-card strong,
.legal-content strong {
  color: #FFFFFF;
}

.policy-callout,
.callout,
.contact-box {
  background: rgba(124, 77, 255, 0.12);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.policy-callout.warning,
.callout.warning {
  background: rgba(255, 71, 87, 0.12);
  border-left-color: var(--danger);
}

.policy-callout.success,
.callout.success {
  background: rgba(0, 245, 160, 0.12);
  border-left-color: var(--success);
}

.policy-callout h4,
.callout h4,
.contact-box p:first-child strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: block;
}

.policy-callout p,
.callout p,
.contact-box p {
  margin-bottom: 6px;
  color: #E2DFFA;
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  color: #FFFFFF;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #C3BFDA;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pill-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-badge.red {
  background: rgba(255, 71, 87, 0.15);
  color: #FF7788;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.pill-badge.yellow {
  background: rgba(255, 179, 0, 0.15);
  color: #FFCA28;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.pill-badge.green {
  background: rgba(0, 245, 160, 0.15);
  color: #00F5A0;
  border: 1px solid rgba(0, 245, 160, 0.3);
}

/* Form Styles */
.form-card {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(226, 63, 224, 0.25);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label input {
  margin-top: 4px;
  accent-color: var(--danger);
  width: 18px;
  height: 18px;
}

.btn-danger {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FF4757 0%, #C0392B 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
  transition: all 0.25s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 71, 87, 0.6);
}

.form-status {
  display: none;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
}

.form-status.active {
  display: block;
}

/* Footer */
.site-footer,
.footer {
  margin-top: auto;
  background: #06050D;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container,
  .nav-container,
  .footer-container {
    padding: 0 16px;
  }
  
  .site-header,
  .navbar {
    padding: 8px 0;
  }

  .nav-wrapper,
  .nav-container {
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 0 8px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    display: inline-block;
    padding: 7px 14px;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a.active {
    background: var(--grad-brand);
    color: #FFFFFF !important;
    border-color: transparent;
  }

  .nav-links a.active::after {
    display: none;
  }

  .btn-header {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-link,
  .brand {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .policy-card,
  .legal-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .policy-header h1,
  .legal-header h1 {
    font-size: 2rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
