
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8f9;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --accent: #1769aa;
  --accent-hover: #0f4f86;
  --accent-warm: #d97706;
  --accent-green: #15803d;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
  --nav-bg: rgba(255,255,255,0.95);
}

.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #020617;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-light: #64748b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-warm: #f59e0b;
  --accent-green: #22c55e;
  --border: #334155;
  --card-bg: #1e293b;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
  --nav-bg: rgba(15,23,42,0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem; font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.logo span { color: var(--text-primary); }

.nav-links {
  display: flex; gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex; gap: 12px; align-items: center;
}

.btn-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Hero */
.hero {
  min-height: 82vh;
  padding: 150px 0 96px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.64) 42%, rgba(3, 7, 18, 0.16) 100%),
    url("../assets/images/steel-hero.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(680px, 100%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.42);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  max-width: 640px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 620px;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.34);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.38);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(255,255,255,0.78);
}

.stats-band {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 26px 24px;
  border-left: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Section */
.section {
  padding: 60px 0;
}

.section-muted {
  background: var(--bg-secondary);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--accent-warm);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.opportunity-section {
  padding-bottom: 28px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.opportunity-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.opportunity-card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.25;
}

.opportunity-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-company {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.8rem;
}

.card-meta {
  flex: 1;
}

.card-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-building { background: #dbeafe; color: #1d4ed8; }
.dark .status-building { background: #1e3a5f; color: #93bbfc; }

.status-signed { background: #dcfce7; color: #166534; }
.dark .status-signed { background: #1a3a2a; color: #86efac; }

.status-design { background: #fef3c7; color: #92400e; }
.dark .status-design { background: #3a2a1a; color: #fcd34d; }

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.card-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.feature-panel {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-panel:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.feature-panel-wide {
  grid-row: span 2;
  min-height: 378px;
  background:
    linear-gradient(180deg, rgba(23,105,170,0.08), rgba(217,119,6,0.08)),
    var(--card-bg);
}

.feature-kicker {
  margin-bottom: 26px;
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-panel h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.feature-panel p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-panel span {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Page Content */
.page-content {
  padding-top: 100px;
  min-height: 60vh;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.placeholder-content {
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 60px;
  text-align: center;
  color: var(--text-light);
}

.placeholder-content h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.content-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.prose-block {
  padding: 32px;
}

.prose-block h2 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 1.35rem;
}

.prose-block p {
  max-width: 780px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.mini-card {
  min-height: 136px;
  padding: 22px;
  border-right: 1px solid var(--border);
}

.mini-card:last-child {
  border-right: none;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.98rem;
}

.mini-card span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.contact-grid .content-panel {
  grid-row: span 2;
}

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

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.contact-card p {
  color: var(--text-secondary);
}

.daily-brief-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.daily-brief-header .page-desc {
  margin-bottom: 0;
}

.daily-brief-action {
  flex: 0 0 auto;
  margin-top: 6px;
}

.daily-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.brief-panel,
.brief-archive {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.brief-panel {
  overflow: hidden;
}

.brief-hero {
  padding: 30px 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(23,105,170,0.08), rgba(23,105,170,0));
}

.brief-date {
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-hero h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 1.65rem;
  line-height: 1.25;
}

.brief-hero p {
  max-width: 820px;
  color: var(--text-secondary);
}

.brief-hero span {
  display: inline-block;
  margin-top: 14px;
  color: var(--text-light);
  font-size: 0.82rem;
}

.brief-sections {
  display: grid;
  gap: 0;
}

.brief-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.brief-section:last-child {
  border-bottom: none;
}

.brief-section h2 {
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: 1.18rem;
}

.brief-items {
  display: grid;
  gap: 16px;
}

.brief-item {
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.brief-item h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

.brief-meta {
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 0.82rem;
}

.brief-item p {
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.brief-item strong {
  color: var(--text-primary);
}

.brief-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.brief-sources a,
.brief-sources span {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  text-decoration: none;
}

.brief-archive {
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.brief-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.brief-archive-header span {
  color: var(--text-primary);
  font-weight: 700;
}

.brief-archive-header strong {
  color: var(--accent);
}

.brief-archive-list {
  display: grid;
}

.brief-archive-item {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

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

.brief-archive-item:hover {
  background: var(--bg-secondary);
}

.brief-archive-item.active {
  background: rgba(23,105,170,0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}

.brief-archive-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.brief-archive-item span,
.brief-loading,
.brief-empty p {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.brief-loading,
.brief-empty {
  padding: 24px;
}

.brief-empty h2 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  z-index: 2000;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  width: 600px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
}

.search-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.search-result {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-result:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.search-result strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.search-result span,
.search-empty {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.search-empty {
  padding: 12px 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner { padding: 0 12px; }
  .logo { font-size: 1.18rem; }
  .nav-actions { gap: 6px; }
  .btn-icon, .hamburger { width: 34px; height: 34px; }
  .hamburger { position: fixed; top: 15px; right: 12px; }
  .nav-actions a[title="Sign In"] { display: none !important; }
  .hero {
    min-height: 76vh;
    padding: 116px 0 70px;
    background:
      linear-gradient(180deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.68) 68%, rgba(3, 7, 18, 0.28) 100%),
      url("../assets/images/steel-hero.jpg") center / cover no-repeat;
  }
  .hero-content { width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { max-width: 100%; font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { margin-top: 22px; }
  .btn-primary, .btn-secondary { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 16px; }
  .stat-item:nth-child(2) { border-right: 1px solid var(--border); }
  .opportunity-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .feature-panel-wide { min-height: 240px; }
  .card-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .mini-card { border-right: none; border-bottom: 1px solid var(--border); }
  .mini-card:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .content-panel { grid-row: auto; }
  .daily-brief-header { flex-direction: column; }
  .daily-brief-action { width: 100%; text-align: center; }
  .daily-brief-layout { grid-template-columns: 1fr; }
  .brief-archive { position: static; }
  .brief-hero, .brief-section { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }

  /* Mobile nav - hide desktop links, show hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
  }

  .hamburger {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .logo { font-size: 1.08rem; }
  #search-btn, #theme-toggle, #lang-toggle { display: none; }
  .hero h1 {
    max-width: 330px;
    font-size: 2rem;
  }
  .hero p {
    max-width: 330px;
    font-size: 0.95rem;
  }
  .hero-proof {
    max-width: 330px;
  }
}

/* Hamburger button - hidden on desktop */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.2s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}
