/* ==========================================================================
   STEALTH DOCS INC. (SDI) - AUTHORITATIVE STYLESHEET (PROPOSAL 3 GLASS UI)
   ========================================================================== */

/* 1. GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* 2. DESIGN TOKENS & CSS VARIABLES */
:root {
  /* Primary & Brand Tonal Palette */
  --sdi-red: #CB1515;
  --sdi-red-dark: #660000;
  --sdi-red-deep: #990000;
  --sdi-red-hover: #CC0000;
  --sdi-red-light: #F4CCCC;
  --sdi-black: #000000;
  --sdi-white: #FFFFFF;
  --sdi-gray-dark: #423E3E;
  --sdi-gray-med: #8D8D8D;
  --sdi-gray-light: #F8F9FA;
  --sdi-canvas-dark: #0D0D0D;

  /* Glassmorphism Surface Tokens */
  --glass-bg-light: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(20, 20, 20, 0.75);
  --glass-backdrop-blur: blur(12px);
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.40);
  --glass-border-dark: 1px solid rgba(203, 21, 21, 0.25);
  --glass-border-red: 1px solid rgba(203, 21, 21, 0.35);

  /* Shadows & Dynamic Lighting */
  --shadow-base: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover-red: 0 8px 32px rgba(203, 21, 21, 0.25);
  --shadow-glow-focus: 0 0 0 3px rgba(203, 21, 21, 0.35);

  /* Typography Defaults */
  --font-web: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-doc: 'Lexend', Georgia, serif;
  --line-height-web: 1.4;
  --line-height-doc: 1.15;
  --tracking-default: 0px;

  /* Layout Standards */
  --max-width-container: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-smooth: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. CORE CSS RESET & GLOBAL BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-web);
  font-size: 1rem;
  line-height: var(--line-height-web);
  letter-spacing: var(--tracking-default);
  color: var(--sdi-gray-dark);
  background-color: var(--sdi-gray-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Document View Scope Overrides (Lexend Font Standard) */
.doc-view, .document-embed, .sdi-sop-view {
  font-family: var(--font-doc);
  line-height: var(--line-height-doc);
}

.doc-view p, .document-embed p {
  text-align: justify;
}

/* 4. TYPOGRAPHY HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--sdi-black);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--tracking-default);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--sdi-black);
  margin-bottom: 1.25rem;
}

.hero-title span.highlight-red {
  color: var(--sdi-red);
}

h1.page-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

h2.section-title {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--sdi-red);
  border-radius: 2px;
  margin-top: 6px;
}

h3.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--sdi-gray-dark);
}

a {
  color: var(--sdi-red);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--sdi-red-dark);
}

/* 5. CONTAINER & GRID SYSTEM */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 6. GLASSMORPHISM COMPONENTS */
.glass-panel {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  border: var(--glass-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-base);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.glass-panel.dark-mode {
  background: var(--glass-bg-dark);
  border: var(--glass-border-dark);
  color: var(--sdi-white);
}

.glass-card {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  border: var(--glass-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-base);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover-red);
  border: var(--glass-border-red);
}

.glass-card.featured {
  border: 2px solid var(--sdi-red);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(244,204,204,0.3));
}

/* 7. BUTTONS & BADGES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-web);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--sdi-red);
  color: var(--sdi-white);
  box-shadow: 0 4px 14px rgba(203, 21, 21, 0.35);
}

.btn-primary:hover {
  background: var(--sdi-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(203, 21, 21, 0.45);
  color: var(--sdi-white);
}

.btn-secondary {
  background: var(--sdi-black);
  color: var(--sdi-white);
}

.btn-secondary:hover {
  background: var(--sdi-gray-dark);
  transform: translateY(-2px);
  color: var(--sdi-white);
}

.btn-outline {
  background: transparent;
  color: var(--sdi-black);
  border: 2px solid var(--sdi-gray-dark);
}

.btn-outline:hover {
  background: var(--sdi-gray-dark);
  color: var(--sdi-white);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--sdi-black);
  border: 1px solid rgba(0,0,0,0.15);
}

.btn-glass:hover {
  background: var(--sdi-red);
  color: var(--sdi-white);
  border-color: var(--sdi-red);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  gap: 0.4rem;
}

.badge-red {
  background: rgba(203, 21, 21, 0.12);
  color: var(--sdi-red);
  border: 1px solid rgba(203, 21, 21, 0.25);
}

.badge-dark {
  background: rgba(0, 0, 0, 0.08);
  color: var(--sdi-black);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* 8. HEADER & NAVIGATION */
.announcement-bar {
  background: var(--sdi-black);
  color: var(--sdi-white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sdi-gray-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--sdi-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--sdi-red);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: var(--glass-border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--sdi-gray-dark);
  display: block;
}

.dropdown-menu a:hover {
  background: rgba(203, 21, 21, 0.08);
  color: var(--sdi-red);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--sdi-black);
  cursor: pointer;
}

/* 9. HERO SECTION */
.hero-section {
  padding: 5rem 0 3rem 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(203,21,21,0.08) 0%, transparent 50%);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--sdi-gray-dark);
  max-width: 780px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: var(--glass-border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-base);
}

.stat-item {
  border-left: 3px solid var(--sdi-red);
  padding-left: 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sdi-red);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sdi-gray-dark);
}

/* 10. 4-STAGE NARRATIVE SECTION */
.narrative-section {
  padding: 4rem 0;
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.narrative-step {
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--sdi-red);
  color: var(--sdi-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* 11. PRICING CARDS SECTION */
.pricing-section {
  padding: 4rem 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sdi-black);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.pricing-features li img {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

/* 12. FAQ ACCORDION */
.faq-accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: var(--glass-border-light);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-web);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sdi-black);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--sdi-red);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out, padding 300ms ease-out;
  padding: 0 1.5rem;
  background: rgba(255,255,255,0.4);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

/* 13. DUAL-TAB MEMBER REGISTRY & LOGIN */
.auth-container {
  max-width: 540px;
  margin: 4rem auto;
}

.tab-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  font-family: var(--font-web);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--sdi-gray-dark);
}

.tab-btn.active {
  background: var(--sdi-white);
  color: var(--sdi-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider-text {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  font-size: 0.85rem;
  color: var(--sdi-gray-med);
}

.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(0,0,0,0.1);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--sdi-black);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-web);
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--sdi-red);
  box-shadow: var(--shadow-glow-focus);
}

.password-meter {
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.password-meter-fill {
  height: 100%;
  width: 0%;
  transition: var(--transition-smooth);
}

.security-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.825rem;
  color: var(--sdi-gray-dark);
}

/* 14. FOOTER & WAVE GRAPHIC */
.wave-transition {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: auto;
}

.wave-transition img, .wave-transition svg {
  width: 100%;
  height: 90px;
  display: block;
}

.site-footer {
  background: var(--sdi-gray-dark);
  color: var(--sdi-white);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--sdi-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--sdi-red);
  margin-top: 6px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--sdi-white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.disclaimer-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* 15. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .hero-section { padding: 3rem 0; }
  .stat-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
    width: 100%;
  }
  .stat-bar { grid-template-columns: 1fr; }
  .social-auth { grid-template-columns: 1fr; }
}
