@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

:root {
  --navy:       #0b1d3a;
  --navy-deep:  #071529;
  --navy-mid:   #122340;
  --navy-light: #1a3052;
  --gold:       #c9a052;
  --gold-light: #dbb96e;
  --gold-pale:  #f5ecd6;
  --gold-rule:  rgba(201,160,82,0.3);
  --white:      #ffffff;
  --off-white:  #f8f6f1;
  --paper:      #f2ede4;
  --text-dark:  #1a1a1a;
  --text-mid:   #4a4a4a;
  --text-muted: #8a8a8a;
  --border:     #e2ddd4;
  --green:      #2a7d5a;
  --green-bg:   #eaf4ef;
  --amber:      #b07d20;
  --amber-bg:   #faf3e0;
  --red:        #b03a2e;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gold-rule); border-radius: 3px; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  background: var(--navy-deep);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201,160,82,0.2);
}

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

.logo {
  width: 42px;
  height: 42px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-deep);
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(201,160,82,0.25);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }

.system-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.system-subtitle {
  font-size: 10px;
  font-weight: 400;
  color: rgba(201,160,82,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.nav-links { display: flex; gap: 0; }

.nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { transform: scaleX(1); }

.search-box { position: relative; }

.search-box input {
  width: 220px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,160,82,0.2);
  padding: 0 14px 0 36px;
  color: rgba(255,255,255,0.85);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  outline: none;
  transition: 0.2s;
  border-radius: 0;
}

.search-box input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,160,82,0.5);
}

.search-box input::placeholder { color: rgba(255,255,255,0.3); }

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201,160,82,0.6);
  font-size: 15px;
  pointer-events: none;
}

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

.live-date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-align: right;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(201,160,82,0.25);
  width: 34px;
  height: 34px;
  color: rgba(201,160,82,0.6);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border-radius: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,160,82,0.08);
}

/* ── HERO ───────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 40px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-left {}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-kicker-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-kicker span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 420px;
}

.hero-right {}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid rgba(201,160,82,0.2);
}

.stat-item {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid rgba(201,160,82,0.1);
}

.stat-item:last-child { border-bottom: none; }

.stat-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── STATUS STRIP ───────────────────────────────── */
.status-strip {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(201,160,82,0.15);
}

.status-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 11px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-left { display: flex; align-items: center; gap: 10px; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}

.status-right {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ── WRAPPER ────────────────────────────────────── */
.wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 40px 80px;
}

/* ── SECTION ────────────────────────────────────── */
.section { margin-bottom: 60px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-rule);
  margin-bottom: 28px;
}

.section-title-group {}

.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.section-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 2px;
}

/* ── GRID ───────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ── CARD ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  text-decoration: none;
  color: var(--text-dark);
  transition: 0.25s ease;
  position: relative;
  display: block;
  animation: fadeUp 0.4s ease both;
}

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

.grid .card:nth-child(1) { animation-delay: 0.04s; }
.grid .card:nth-child(2) { animation-delay: 0.08s; }
.grid .card:nth-child(3) { animation-delay: 0.12s; }

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  border-color: rgba(201,160,82,0.4);
  box-shadow: 0 8px 32px rgba(11,29,58,0.1);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.card-icon svg { width: 20px; height: 20px; }

.blue   { color: #1a5fa8; background: #eef4fc; border-color: #d0e3f5; }
.green  { color: #1e7a4e; background: #eaf5ee; border-color: #c2e0cf; }
.yellow { color: #9a6e10; background: #faf5e4; border-color: #ecdbb0; }
.gray   { color: #5a6475; background: #f4f5f7; border-color: #dde0e6; }
.purple { color: #5b3fa5; background: #f0ecfb; border-color: #d4c8f2; }

.status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.active { background: var(--green-bg); color: var(--green); border: 1px solid #c2e0cf; }
.active::before { background: var(--green); }
.development { background: var(--amber-bg); color: var(--amber); border: 1px solid #ecdbb0; }
.development::before { background: var(--amber); }

.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  font-weight: 400;
}

.open-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}

.card:hover .open-link { gap: 12px; color: var(--gold); }

.disabled-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ── ANNOUNCEMENT ───────────────────────────────── */
.announcement-section { margin-bottom: 60px; }

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-rule);
  margin-bottom: 0;
}

.announcement-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.announcement-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.announcement-box { background: var(--white); border: 1px solid var(--border); border-top: none; }

.announcement-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.announcement-item:last-child { border-bottom: none; }
.announcement-item:hover { background: var(--off-white); }

.announcement-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 3px;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.announcement-connector { width: 1px; flex: 1; min-height: 24px; }

.red { background: var(--red); }
.announcement-dot.blue { background: #1a5fa8; }
.announcement-dot.green { background: var(--green); }

.connector-red { background: rgba(176,58,46,0.2); }
.connector-blue { background: rgba(26,95,168,0.2); }
.connector-green { background: transparent; }

.announcement-item p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 5px;
  font-weight: 400;
}

.announcement-item time {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201,160,82,0.2);
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 30px;
  height: 30px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--navy-deep);
}

.footer-text {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.footer-text strong { color: rgba(201,160,82,0.7); font-weight: 500; }

.footer-right {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── LIGHT / DARK ───────────────────────────────── */
.light-mode body { background: #fafaf8; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: row; border-left: none; border-top: 1px solid rgba(201,160,82,0.2); padding-top: 24px; }
  .stat-item { padding: 0 32px 0 0; border-bottom: none; border-right: 1px solid rgba(201,160,82,0.1); }
  .stat-item:last-child { border-right: none; }
  .nav-center { display: none; }
}

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 20px; }
  .hero-content { padding: 40px 20px 36px; }
  .hero h1 { font-size: 34px; }
  .wrapper { padding: 36px 20px 60px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 20px; }
}
