:root {
  --bg-deep: #070B14;
  --bg-obsidian: #0B1220;
  --bg-card: #111A2E;
  --bg-alt: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(148, 163, 184, 0.18);
  --border-accent: rgba(56, 189, 248, 0.38);
  --text-heading: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --accent-amber: #F59E0B;
  --accent-gold: #FBBF24;
  --accent-cyan: #38BDF8;
  --header-bg: rgba(7, 11, 20, 0.88);
}

html[data-theme="light"] {
  --bg-deep: #F8FAFC;
  --bg-obsidian: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-alt: #EFF6FF;
  --border-subtle: #CBD5E1;
  --border-accent: #0284C7;
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #475569;
  --accent-amber: #B45309;
  --accent-gold: #D97706;
  --accent-cyan: #0369A1;
  --header-bg: rgba(248, 250, 252, 0.92);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent-gold);
  color: #070B14;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-heading);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.brand-wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
}

.brand-wordmark span {
  color: var(--accent-gold);
}

.brand-wordmark small {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  margin-left: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn,
.btn-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.btn-amber {
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  color: #070B14;
  border: 1px solid #FDE68A;
}

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

.btn-primary {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
}

.btn-outline,
.btn-utility {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
}

.btn-utility {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-outline:hover,
.btn-utility:hover {
  border-color: var(--accent-cyan);
}

/* Hero */
.hero {
  padding: 68px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 22% 20%, rgba(56, 189, 248, 0.09) 0%, transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.hero-crest-wrap {
  display: flex;
  justify-content: center;
}

.hero-crest {
  width: 260px;
  height: 260px;
  display: block;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.hero-copy h1 span {
  color: var(--accent-gold);
}

.lead {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: var(--text-body);
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-header h2,
.contact-info h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--text-heading);
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Brand Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px;
}

.pillar-symbol {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  color: var(--text-heading);
  font-size: 1.15rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
}

/* Minimal Titles List */
.titles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.title-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-row-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill,
.platform-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.status-pill {
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.platform-pill {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.direct-email {
  margin-top: 20px;
  font-weight: 600;
}

.direct-email a {
  color: var(--accent-cyan);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid var(--accent-cyan);
  border-color: transparent;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.ok {
  color: #10B981;
}

.form-feedback.err {
  color: #F43F5E;
}

/* Legal / Privacy */
.legal-container {
  max-width: 780px;
  padding: 48px 22px 72px;
}

.legal-container h1,
.legal-container h2 {
  color: var(--text-heading);
}

.legal-meta {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 36px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-heading);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .pillars-grid,
  .title-showcase-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 44px 0;
    text-align: center;
  }
  .hero-cta-row {
    justify-content: center;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .title-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }
  .hero-crest {
    width: 196px;
    height: 196px;
  }
}

/* IRS Clean Print Standard */
@media print {
  @page {
    margin: 0;
  }

  body {
    margin: 0 !important;
    padding: 1.8cm 2cm !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .no-print {
    display: none !important;
  }

  h1, h2, h3 {
    color: #000000 !important;
    break-after: avoid !important;
  }

  a:after {
    content: "" !important;
  }
}
