@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  color: #2D3748;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

/* ── Navbar ── */
.navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { height: 48px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: #4A5568;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #0F2557; }
.nav-links .btn-nav {
  background: #0F2557;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-links .btn-nav:hover { background: #1B3A7A; color: #fff; transform: translateY(-1px); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D3748;
  margin: 5px 0;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #0F2557;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F2557;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* ── Section Styles ── */
.section {
  padding: 4rem 0;
}
.section + .section {
  border-top: 1px solid #C8D6E5;
}
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F2557;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section p {
  font-size: 1.1rem;
  color: #4A5568;
  margin-bottom: 1.25rem;
  text-align: justify;
}
.section p:last-child { margin-bottom: 0; }

/* ── Teaser Card ── */
.teaser-card {
  background: #fff;
  border: 1px solid #C8D6E5;
  border-left: 4px solid #0F2557;
  border-radius: 12px;
  padding: 3rem;
  margin: 4rem 0 2rem;
  text-align: center;
}
.teaser-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F2557;
  margin-bottom: 1rem;
}
.teaser-card p {
  font-size: 1.05rem;
  color: #4A5568;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
  text-align: justify;
}
.btn-read-more {
  display: inline-block;
  background: #0F2557;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-read-more:hover { background: #1B3A7A; transform: translateY(-1px); }

/* ── Page Header ── */
.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  border-bottom: 2px solid #1B3A7A;
  background: linear-gradient(175deg, #0B1A3B 0%, #162D5A 100%);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.page-header .page-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.75rem;
}

/* ── Article/Prose Content ── */
.prose {
  padding: 3rem 0 4rem;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0F2557;
  margin: 3rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 1.1rem;
  color: #4A5568;
  margin-bottom: 1.25rem;
  text-align: justify;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}
.prose ul li {
  font-size: 1.1rem;
  color: #4A5568;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  text-align: justify;
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #A0AEC0;
}

/* ── Bottom CTA link ── */
.bottom-cta {
  text-align: center;
  padding: 3rem 0 5rem;
  border-top: 1px solid #E2E8F0;
  margin-top: 2rem;
}
.bottom-cta a {
  display: inline-block;
  background: #0F2557;
  color: #fff;
  padding: 0.85rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}
.bottom-cta a:hover { background: #1B3A7A; transform: translateY(-1px); }

/* ── Contact Form ── */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  color: #2D3748;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4A5568;
  box-shadow: 0 0 0 3px rgba(74,85,104,0.1);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.btn-submit {
  width: 100%;
  background: #0F2557;
  color: #fff;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: #1B3A7A; transform: translateY(-1px); }

/* ── Placeholder Page ── */
.placeholder-page {
  text-align: center;
  padding: 8rem 2rem;
}
.placeholder-page h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 1rem;
}
.placeholder-page p {
  font-size: 1.15rem;
  color: #718096;
}

/* ── Footer ── */
.footer {
  border-top: 2px solid #0F2557;
  padding: 2rem 0;
  text-align: center;
  color: #A0AEC0;
  font-size: 0.85rem;
  background: #0B1A3B;
}

/* ── Success Message ── */
.success-message {
  text-align: center;
  padding: 6rem 2rem;
}
.success-message h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 1rem;
}
.success-message p {
  font-size: 1.1rem;
  color: #4A5568;
  margin-bottom: 2rem;
}

/* ── NVDA DCF Tool ── */
.dcf-tool {
  padding: 2.5rem 0 3rem;
}
.dcf-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.dcf-control label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F2557;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dcf-control input,
.dcf-control select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #CBD5E0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dcf-control input:focus,
.dcf-control select:focus {
  outline: none;
  border-color: #0F2557;
  box-shadow: 0 0 0 3px rgba(15,37,87,0.1);
}
.dcf-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, #0B1A3B, #162D5A);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.dcf-result-item {
  text-align: center;
}
.dcf-result-item .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.dcf-result-item .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}
.dcf-result-item .value.up { color: #68D391; }
.dcf-result-item .value.down { color: #FC8181; }
.dcf-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.dcf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.dcf-table thead th {
  background: #0F2557;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  text-align: right;
  white-space: nowrap;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dcf-table thead th:first-child { text-align: left; border-radius: 6px 0 0 0; }
.dcf-table thead th:last-child { border-radius: 0 6px 0 0; }
.dcf-table tbody td {
  padding: 0.6rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid #E2E8F0;
  color: #4A5568;
}
.dcf-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0F2557;
}
.dcf-table tbody tr:hover { background: #F0F4FF; }
.dcf-table tbody tr.historical { background: #F7FAFC; }
.dcf-table tbody tr.projected { background: #fff; }
.dcf-table .editable-cell {
  position: relative;
}
.dcf-table .editable-cell input {
  width: 70px;
  padding: 0.3rem 0.4rem;
  border: 1px solid #CBD5E0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  text-align: right;
  color: #2D3748;
  background: #fff;
}
.dcf-table .editable-cell input:focus {
  outline: none;
  border-color: #0F2557;
  box-shadow: 0 0 0 2px rgba(15,37,87,0.12);
}
.dcf-mkt-btn {
  display: inline-block;
  background: #fff;
  color: #0F2557;
  border: 2px solid #0F2557;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2rem;
}
.dcf-mkt-btn:hover { background: #0F2557; color: #fff; }
.dcf-mkt-btn.active { background: #0F2557; color: #fff; }
.mkt-implied-row { display: none; }
.mkt-implied-row.visible { display: table-row; }
.dcf-note {
  background: #F0F4FF;
  border: 1px solid #C8D6E5;
  border-left: 4px solid #0F2557;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-top: 2.5rem;
}
.dcf-note h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F2557;
  margin-bottom: 1rem;
}
.dcf-note p {
  font-size: 1rem;
  color: #4A5568;
  margin-bottom: 1rem;
  line-height: 1.75;
  text-align: justify;
}
.dcf-note p:last-child { margin-bottom: 0; }
.dcf-note ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.dcf-note ol li {
  font-size: 1rem;
  color: #4A5568;
  margin-bottom: 0.75rem;
  line-height: 1.75;
  text-align: justify;
}
.dcf-note em {
  font-style: italic;
  color: #718096;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid #E2E8F0;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .teaser-card { padding: 2rem; }
  .container { padding: 0 1.25rem; }
  .page-header { padding: 4.5rem 0 2rem; }
  .dcf-controls { grid-template-columns: 1fr 1fr; }
  .dcf-result-bar { flex-direction: column; text-align: center; padding: 1.25rem; }
  .dcf-note { padding: 1.5rem; }
}
