/* ═══════════════════════════════════════════
   ORION PRO — Main Stylesheet
   Imports the design system + page styles
   ═══════════════════════════════════════════ */

@import url('css/variables.css');
@import url('css/components.css');
@import url('css/animations.css');

/* ═══ PAGE-SPECIFIC: HERO ═══ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-8) var(--space-16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12,12,13,0.92) 0%,
    rgba(12,12,13,0.85) 30%,
    rgba(12,12,13,0.80) 50%,
    rgba(12,12,13,0.85) 70%,
    rgba(12,12,13,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 24px);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 600px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
}

/* ═══ PAGE-SPECIFIC: NALEDI SECTION ═══ */
.naledi-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.naledi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.naledi-voice {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text);
  font-style: italic;
}

.naledi-voice em {
  color: var(--primary);
  font-style: normal;
}

.naledi-traits {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.naledi-trait {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.naledi-trait-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(10,132,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.naledi-trait-text h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.naledi-trait-text p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .naledi-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ═══ PAGE-SPECIFIC: FEATURES ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--primary-dim);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(10,132,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ═══ PAGE-SPECIFIC: PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--background);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.pricing-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

/* ═══ PAGE-SPECIFIC: CTA ═══ */
.cta-section {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ═══ PAGE-SPECIFIC: SERVICES ═══ */
.services-section {
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  text-align: center;
  padding: var(--space-8);
}

.service-card h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.service-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--primary);
}

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

/* ═══ PAGE-SPECIFIC: LEGAL DOCUMENT ═══ */
.legal-document {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  line-height: var(--leading-relaxed);
}

.legal-document article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
}

.legal-header h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  margin-bottom: var(--space-2);
  color: var(--text);
}

.legal-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.legal-meta div {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}

.legal-meta dt {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.legal-meta dd {
  font-size: var(--text-sm);
  color: var(--text);
  margin: 0;
  font-family: var(--font-mono);
}

.toc {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

.toc h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  color: var(--text);
}

.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toc > ul > li {
  margin-bottom: var(--space-2);
}

.toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
}

.toc a:hover {
  text-decoration: underline;
}

.toc ul ul {
  padding-left: var(--space-4);
  margin-top: var(--space-1);
}

.legal-document h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.legal-document h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.legal-document h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-document p {
  margin-bottom: var(--space-4);
  color: var(--text);
}

.legal-document ul,
.legal-document ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-document li {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.legal-document li::marker {
  color: var(--primary);
}

.legal-document dl {
  margin-bottom: var(--space-4);
}

.legal-document dt {
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin-top: var(--space-3);
}

.legal-document dd {
  margin-left: var(--space-4);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.legal-document address {
  font-style: normal;
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.legal-document address p {
  margin-bottom: var(--space-1);
}

.legal-document a {
  color: var(--primary);
  word-break: break-word;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--background);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
  text-decoration: none;
  font-weight: var(--weight-semibold);
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  top: 0;
}

@media (max-width: 768px) {
  .legal-document {
    padding: var(--space-4) var(--space-4);
  }

  .legal-document article {
    padding: var(--space-6) var(--space-4);
  }

  .legal-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  .legal-document {
    max-width: 100%;
    padding: 0;
    line-height: 1.6;
  }

  .legal-document article {
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .toc {
    display: none;
  }

  header,
  footer {
    display: none;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  ul,
  li {
    page-break-inside: avoid;
  }
}
