:root {
  --navy-900: #0b1a2a;
  --navy-800: #13263a;
  --navy-700: #1b3248;
  --sea-600: #265c66;
  --gold-500: #c7a76d;
  --gold-400: #d6be8a;
  --sand-100: #f6f1e9;
  --sand-200: #efe4d4;
  --ink-100: #f9fbfc;
  --ink-500: #97a5b2;
  --ink-700: #5b6a78;
  --white: #ffffff;
  --shadow-lg: 0 20px 45px rgba(9, 20, 31, 0.2);
  --shadow-sm: 0 12px 20px rgba(9, 20, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink-100);
  background: linear-gradient(160deg, rgba(11, 26, 42, 0.98), rgba(19, 38, 58, 0.96)),
    radial-gradient(circle at top right, rgba(199, 167, 109, 0.22), transparent 45%),
    radial-gradient(circle at 10% 20%, rgba(40, 94, 102, 0.3), transparent 55%);
  min-height: 100vh;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 167, 109, 0.25), transparent 60%);
  filter: blur(0);
  z-index: 0;
}

.page-shell::before {
  top: -120px;
  right: -120px;
}

.page-shell::after {
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(38, 92, 102, 0.4), transparent 60%);
}

.navbar.brand-bar {
  background: rgba(8, 16, 25, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--sand-100) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--ink-500);
  letter-spacing: 0.2em;
}

.nav-link {
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--sand-100);
}

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  z-index: 1;
}

.hero-card,
.deal-card {
  background: rgba(20, 36, 52, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-card h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--gold-400);
  margin-bottom: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn-gold {
  background: var(--gold-500);
  border: none;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-400);
  color: var(--navy-900);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--sand-100);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.deal-card h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.deal-card .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--sand-100);
}

.deal-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.deal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-500);
}

.stat-pill {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(38, 92, 102, 0.5);
  color: var(--sand-100);
  font-weight: 600;
  font-size: 0.85rem;
}

.section {
  padding: 3rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(11, 26, 42, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin: 0;
}

.section-tag {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(199, 167, 109, 0.2);
  color: var(--gold-400);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.timeline-card {
  background: rgba(20, 36, 52, 0.8);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.timeline-card h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

.step {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(199, 167, 109, 0.2);
  color: var(--gold-400);
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pill-tabs {
  gap: 1rem;
  margin-bottom: 2rem;
}

.pill-tabs .nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sand-100);
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.pill-tabs .nav-link.active {
  background: var(--gold-500);
  color: var(--navy-900);
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.doc-card {
  background: rgba(20, 36, 52, 0.82);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.doc-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.doc-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(38, 92, 102, 0.4);
  color: var(--sand-100);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-badge.gold {
  background: rgba(199, 167, 109, 0.25);
  color: var(--gold-400);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.doc-actions .btn-group .btn {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--sand-100);
}

.doc-actions .btn-group .btn-check:checked + .btn {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

.form-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-switch .form-check-input:checked {
  background-color: var(--sea-600);
  border-color: var(--sea-600);
}

.upload-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.upload-status {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.upload-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.upload-links a {
  color: var(--gold-400);
  font-size: 0.8rem;
  text-decoration: none;
}

.upload-links a:hover {
  text-decoration: underline;
}

.note-card,
.callout-card {
  background: rgba(20, 36, 52, 0.85);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.note-card textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--sand-100);
  margin-top: 1rem;
}

.note-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.note-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.callout-card ul {
  padding-left: 1.1rem;
  margin-top: 1rem;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 16, 25, 0.6);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-500);
}

.footer-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-card,
  .deal-card {
    padding: 2rem;
  }

  .doc-actions {
    justify-content: flex-start;
  }
}
