/* ============================================================
   TrustCraft Premium Design System v2
   Conversion-optimized with premium navigation
   ============================================================ */

:root {
  /* Premium Color Palette */
  --bg: #0a0a0f;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-elevated: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(94, 106, 210, 0.3);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --accent: #5e6ad2;
  --accent-gradient: linear-gradient(135deg, #5e6ad2 0%, #7170ff 100%);
  --accent-hover: #7170ff;
  --accent-glow: rgba(94, 106, 210, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --cta-gradient: linear-gradient(135deg, #5e6ad2 0%, #8b5cf6 50%, #7170ff 100%);
  --cta-shadow: 0 10px 40px -10px rgba(94, 106, 210, 0.6);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border radius */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(94, 106, 210, 0.3);

  /* Layout */
  --wrap: 720px;
  --wrap-wide: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-lg);
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: var(--space-3xl) 0 var(--space-lg);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: -0.01em;
  margin: var(--space-xl) 0 var(--space-md);
}

p {
  margin: var(--space-md) 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

ul, ol {
  padding-left: var(--space-lg);
  margin: var(--space-md) 0;
}

li {
  margin: var(--space-sm) 0;
  line-height: 1.7;
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* Layout */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

/* Premium Header + Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.brand:hover {
  text-decoration: none;
  transform: translateX(2px);
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.pillnav {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-xs) 0;
  margin: 0 calc(-1 * var(--space-xs));
}

.pillnav::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.pill:hover {
  color: var(--text);
  border-color: var(--border-glow);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pill:hover::before {
  opacity: 0.1;
}

.pill[aria-current="page"] {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--cta-shadow);
  transform: translateY(-1px);
}

.pill[aria-current="page"]::before {
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.hero .badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.hero .lede {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

/* Premium CTA Button */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--cta-gradient);
  color: #ffffff;
  text-align: center;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--cta-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -10px rgba(94, 106, 210, 0.8);
}

.cta:hover::before {
  left: 100%;
}

.cta:active {
  transform: translateY(-1px);
}

.cta-large {
  padding: var(--space-lg) var(--space-3xl);
  font-size: 1.125rem;
}

/* Sticky CTA for Mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 90;
  display: none;
}

.sticky-cta .cta {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
  
  body {
    padding-bottom: 80px;
  }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Trust Box */
.trust-box {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.trust-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.trust-box h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.trust-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Metric Display */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.metric:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.metric .number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.metric .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Link Cards */
.linkcard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-sm) 0;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.linkcard::before {
  content: '→';
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  transition: all 0.2s ease;
}

.linkcard:hover {
  border-color: var(--border-glow);
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.linkcard:hover::before {
  opacity: 1;
  right: var(--space-md);
}

.linkcard strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 1.0625rem;
}

.linkcard span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Tables */
.tbl-wrap {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9375rem;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
}

th {
  background: var(--surface-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

td {
  color: var(--text-secondary);
}

/* FAQ Section */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: var(--space-md) 0;
  overflow: hidden;
  background: var(--surface);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-size: 1.0625rem;
}

.faq-question:hover {
  background: var(--surface-hover);
}

.faq-question .icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Step-by-Step Guide */
.steps {
  counter-reset: step;
  margin: var(--space-2xl) 0;
}

.step {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  position: relative;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.step:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--cta-shadow);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text);
  font-size: 1.125rem;
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Footer */
footer {
  margin-top: var(--space-4xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer p {
  margin: var(--space-sm) 0;
  color: var(--text-muted);
}

/* Back to Top */
.totop {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-lg);
  transition: all 0.2s ease;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.totop:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Age Gate */
#agegate {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

#agegate .box {
  max-width: 440px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

#agegate h2 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.75rem;
}

#agegate p {
  color: var(--text-secondary);
  margin: var(--space-lg) 0;
}

.age-btn {
  display: block;
  width: 100%;
  background: var(--cta-gradient);
  color: #ffffff;
  border: 0;
  padding: var(--space-md);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--space-sm);
  transition: all 0.2s ease;
  box-shadow: var(--cta-shadow);
}

.age-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -10px rgba(94, 106, 210, 0.8);
}

.age-btn.leave {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  box-shadow: none;
}

.age-btn.leave:hover {
  background: var(--surface-hover);
  transform: none;
}

/* Responsive */
@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
  }
  
  .pillnav {
    margin: 0;
  }
  
  .hero {
    padding: var(--space-4xl) 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .card, .trust-box, .step {
    padding: var(--space-lg);
  }
  
  .metric .number {
    font-size: 1.75rem;
  }
  
  .cta-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }
}

/* Print styles */
@media print {
  .site-header,
  .pillnav,
  .cta,
  .sticky-cta,
  .totop {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    background: white;
    color: black;
  }
  
  .card, .trust-box {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }
}