/* ==========================================================================
   THE CORNWALL RESOLUTION TRUST - OFFICIAL DESIGN SYSTEM & STYLESHEET
   A Private Fiduciary Settlement Trust | Clark County, Nevada (NRS 163)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Fiduciary Color Palette */
  --primary-navy: #081a30;
  --deep-navy: #040c18;
  --midnight-blue: #0b223f;
  --surface-navy: #102a4c;
  --card-bg: rgba(16, 42, 76, 0.65);
  --card-border: rgba(197, 160, 89, 0.28);
  
  /* Imperial Gold Accents */
  --gold-primary: #d4af37;
  --gold-light: #faecc5;
  --gold-hover: #e5c158;
  --gold-dark: #a27c1a;
  --gold-muted: #c5a059;
  --gold-gradient: linear-gradient(135deg, #faecc5 0%, #d4af37 40%, #b8860b 80%, #996515 100%);
  --gold-gradient-text: linear-gradient(135deg, #fff2cf 0%, #e6ca65 40%, #d4af37 70%, #aa7c11 100%);
  --seal-glow: 0 0 35px rgba(212, 175, 55, 0.25);

  /* Neutrals & Text */
  --text-pure: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold-subtle: rgba(212, 175, 55, 0.18);
  
  /* Status Colors */
  --status-active: #10b981;
  --status-alert: #f59e0b;
  --status-danger: #ef4444;

  /* Typography */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--deep-navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(19, 49, 87, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 100% 60%, rgba(184, 134, 11, 0.07) 0%, transparent 40%),
    linear-gradient(180deg, #040c18 0%, #061528 50%, #030811 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utility */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--text-pure);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.gold-gradient-text {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.mono {
  font-family: var(--font-mono);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(4, 12, 24, 0.88);
  border-bottom: 1px solid var(--border-gold-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.nav-seal-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.3s ease;
}

.nav-seal-img:hover {
  transform: scale(1.04) rotate(2deg);
}

.nav-titles {
  display: flex;
  flex-direction: column;
}

.nav-main-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.nav-sub-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold-primary);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #040c18;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold-subtle);
  color: var(--gold-primary);
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

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

.hero-seal-wrapper {
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.hero-seal {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: var(--seal-glow), var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.hero-seal:hover {
  transform: scale(1.03);
}

.hero-seal-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  animation: slowSpin 60s linear infinite;
  pointer-events: none;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 42, 76, 0.75);
  border: 1px solid var(--gold-muted);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-active);
  box-shadow: 0 0 8px var(--status-active);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.hero-subtitle {
  max-width: 820px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

.hero-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: #051222;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 42, 76, 0.45);
  color: var(--text-primary);
  border: 1px solid var(--border-gold-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  background: rgba(16, 42, 76, 0.85);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* Quick Telemetry Bar */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  margin-top: 10px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0 12px;
  border-left: 2px solid var(--border-gold-subtle);
}

.telemetry-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-muted);
  margin-bottom: 4px;
}

.telemetry-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-pure);
}

.telemetry-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Section Header */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: rgba(5, 16, 32, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-pretitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-muted);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gold-divider {
  width: 70px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Interactive Look-up Banner */
.lookup-card {
  background: linear-gradient(135deg, rgba(16, 42, 76, 0.9) 0%, rgba(9, 25, 48, 0.95) 100%);
  border: 1.5px solid var(--gold-muted);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.lookup-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lookup-text h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.lookup-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.lookup-controls {
  display: flex;
  gap: 12px;
  flex: 1;
  max-width: 500px;
  min-width: 280px;
}

.lookup-input {
  flex: 1;
  background: rgba(4, 12, 24, 0.8);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.lookup-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lookup-btn {
  background: var(--gold-gradient);
  color: #040c18;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 0 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.lookup-btn:hover {
  transform: translateY(-1px);
}

#lookup-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  display: none;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-meta-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.card-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
}

.card-meta-item span:first-child {
  color: var(--text-muted);
}

.card-meta-item span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Wire Protocol & Fedwire Box */
.wire-instruction-box {
  background: linear-gradient(180deg, rgba(16, 42, 76, 0.85) 0%, rgba(8, 26, 48, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  margin-bottom: 40px;
}

.wire-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-gold-subtle);
  padding-bottom: 20px;
}

.wire-title-group h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.wire-title-group p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.badge-strict {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--status-danger);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
}

.wire-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.wire-field-card {
  background: rgba(4, 12, 24, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 20px;
  position: relative;
}

.wire-field-card.highlight {
  border-color: var(--gold-muted);
  background: rgba(197, 160, 89, 0.08);
}

.wire-field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-muted);
  margin-bottom: 4px;
}

.wire-field-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

.wire-copy-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
}

.wire-copy-btn:hover {
  color: var(--gold-light);
}

/* IMAD / OMAD Callout Box */
.imad-callout {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--gold-primary);
  padding: 24px;
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
}

.imad-callout h4 {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.imad-callout p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.imad-spec-diagram {
  background: #030811;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #93c5fd;
  margin-top: 14px;
  overflow-x: auto;
}

/* Certificate of Trust Interactive Card */
.cert-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border: 8px double #0a2540;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid #c5a059;
  pointer-events: none;
}

.cert-header {
  text-align: center;
  border-bottom: 2px solid #0a2540;
  padding-bottom: 20px;
  margin-bottom: 26px;
}

.cert-seal-small {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 50%;
  border: 2px solid #c5a059;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0a2540;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.cert-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b8860b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cert-citation {
  font-size: 0.8rem;
  font-style: italic;
  color: #64748b;
  margin-top: 4px;
}

.cert-body {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1a202c;
  text-align: justify;
}

.cert-list {
  list-style: none;
  margin: 20px 0;
}

.cert-item {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.cert-item-num {
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #0a2540;
}

.cert-item strong {
  color: #0a2540;
}

.cert-signatures {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid #cbd5e1;
  padding-top: 24px;
}

.cert-sig-line {
  border-top: 1px solid #000000;
  padding-top: 6px;
  font-size: 0.88rem;
}

.cert-print-bar {
  text-align: center;
  margin-top: 30px;
}

/* Contact & Inquiries */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 24px;
}

.info-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.info-box-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-form-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 36px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-muted);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(4, 12, 24, 0.75);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #02070f;
  border-top: 1px solid var(--border-gold-subtle);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-brand h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 440px;
}

.footer-links h5 {
  color: var(--gold-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #091a30;
  border: 1px solid var(--gold-muted);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--gold-primary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .cert-signatures {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #040c18;
    padding: 24px;
    border-bottom: 1px solid var(--border-gold-subtle);
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .cert-card {
    padding: 24px;
  }
  /* Prevent iOS Safari auto-zoom on form focus */
  .form-input, .form-select, .form-textarea, .lookup-input, input, select, textarea {
    font-size: 16px !important;
  }
  .hero-action-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-action-group .btn-primary, .hero-action-group .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .telemetry-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .wire-details-grid {
    grid-template-columns: 1fr;
  }
  .lookup-controls {
    flex-direction: column;
    gap: 10px;
  }
  .lookup-btn {
    width: 100%;
  }
}

/* Main Line Hero Charter Banner */
.hero-charter-line {
  margin: 0 auto 28px;
  max-width: 740px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.14) 0%, rgba(4, 12, 24, 0.9) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(197, 160, 89, 0.15);
  backdrop-filter: blur(10px);
}
.charter-line-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.charter-line-badge {
  background: var(--gold-primary);
  color: #040c18;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.charter-line-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.charter-line-sub {
  font-size: 0.8rem;
  color: var(--gold-light);
}
.charter-line-cta {
  background: linear-gradient(135deg, #c5a059 0%, #e6ca85 100%);
  color: #040c18 !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.charter-line-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.5);
}
@media (max-width: 680px) {
  .hero-charter-line {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 14px 16px;
  }
  .charter-line-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .charter-line-cta {
    justify-content: center;
    width: 100%;
  }
}


/* ==========================================================================
   EXECUTIVE SURVEILLANCE & COMMAND BAR (LARGE PRO STATUS BAR)
   ========================================================================== */
.surveillance-bar {
  background: linear-gradient(180deg, rgba(8, 26, 48, 0.95) 0%, rgba(4, 12, 24, 0.98) 100%);
  border-top: 2px solid var(--gold-primary);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
  margin: 20px 0 40px;
  position: relative;
  z-index: 20;
}

.surveillance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-gold-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 10px;
}

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

.surveillance-cell {
  background: rgba(6, 18, 36, 0.92);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.surveillance-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.surveillance-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.surveillance-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 992px) {
  .surveillance-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .surveillance-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5:00 P.M. PST COUNTDOWN & AUTOMATED ENFORCEMENT PROTOCOL
   ========================================================================== */
.countdown-card {
  background: linear-gradient(135deg, rgba(24, 8, 8, 0.92) 0%, rgba(10, 16, 32, 0.96) 60%, rgba(4, 12, 24, 0.98) 100%);
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.25), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.countdown-clock-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.countdown-unit {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 16px 22px;
  min-width: 105px;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(239, 68, 68, 0.15);
}

.countdown-digits {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-unit-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fca5a5;
  font-weight: 600;
}

.enforcement-timeline {
  margin-top: 30px;
  border-left: 2px solid rgba(239, 68, 68, 0.5);
  padding-left: 24px;
  margin-left: 10px;
}

.enforcement-step {
  position: relative;
  margin-bottom: 24px;
}

.enforcement-step::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.enforcement-step-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 4px;
}

.enforcement-step-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.enforcement-step-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   OFFICIAL ACCESS ACKNOWLEDGMENT & READING PROGRESS TRACKER
   ========================================================================== */
.reading-tracker-bar {
  background: rgba(6, 18, 36, 0.95);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.reading-progress-outer {
  flex: 1;
  min-width: 260px;
}

.reading-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #10b981);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.verification-token-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed var(--gold-primary);
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.token-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   DOSSIER TABS & DOCUMENT VIEWER
   ========================================================================== */
.dossier-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.dossier-tab-btn {
  background: rgba(16, 42, 76, 0.5);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.dossier-tab-btn:hover {
  background: rgba(16, 42, 76, 0.8);
  color: #ffffff;
}

.dossier-tab-btn.active {
  background: var(--gold-primary);
  color: #040c18;
  border-color: var(--gold-primary);
  font-weight: 700;
}

.dossier-panel {
  display: none;
  background: rgba(4, 12, 24, 0.85);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px;
}

.dossier-panel.active {
  display: block;
}

