/* =========================
   PDX Quant - Global Theme
   ========================= */

:root {
  --bg-main: #07170f;
  --bg-deep: #0b2415;
  --bg-surface: #101610;
  --bg-surface-2: #1a2613;
  --bg-card: rgba(10, 25, 17, 0.9);
  --bg-card-strong: rgba(8, 19, 13, 0.96);

  --text-main: #f5eddc;
  --text-soft: #d6d0c0;
  --text-muted: #a8ad9f;

  --gold: #d6a243;
  --gold-light: #ebc977;
  --gold-dark: #b7842e;

  --border-gold: rgba(214, 162, 67, 0.22);
  --border-gold-strong: rgba(214, 162, 67, 0.38);
  --border-soft: rgba(255, 255, 255, 0.06);

  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.18);
  --shadow-gold: 0 0 30px rgba(214, 162, 67, 0.14);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1240px;

  --section-padding: 90px;
  --hero-padding: 120px;
}

/* =========================
   Reset
   ========================= */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top center, rgba(35, 82, 52, 0.28), transparent 28%),
    linear-gradient(180deg, #0a2014 0%, #06140d 100%);
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================
   Layout
   ========================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding) 0;
}

.section-tight {
  padding: 60px 0;
}

.section-hero {
  padding: var(--hero-padding) 0;
}

.section-dark {
  background: transparent;
}

.section-deep {
  background: rgba(255, 255, 255, 0.01);
}

/* =========================
   Typography
   ========================= */

h1,
h2,
h3,
h4,
.section-title,
.page-title,
.logo,
.footer-logo {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

h1,
.page-title {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  font-weight: 600;
}

h2,
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.12;
  font-weight: 600;
}

p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.section-eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.hero-sub,
.hero-subtitle,
.page-subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

/* =========================
   Navbar
   ========================= */

.navbar,
.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(7, 23, 15, 0.72);
  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  justify-content: flex-start;
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.logo,
.navbar-brand {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-link {
  color: var(--text-main);
  opacity: 0.92;
}

.menu-btn,
.hamburger-icon {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.task-hamburger {
  position: relative;
  display: inline-block;
}

.task-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  min-width: 180px;
  flex-direction: column;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  z-index: 1050;
}

.task-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.task-menu a:hover {
  background: rgba(214, 162, 67, 0.1);
}

.task-hamburger:hover .task-menu {
  display: flex;
}

/* =========================
   Buttons
   ========================= */

.apply-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #d9ab4d 0%, #c78e33 100%);
  color: #fff8ea;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.apply-btn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(214, 162, 67, 0.28);
  filter: brightness(1.03);
}

.btn-secondary,
.gold-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border-gold-strong);
  color: var(--gold-light);
  background: rgba(214, 162, 67, 0.05);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover,
.gold-outline-btn:hover {
  background: rgba(214, 162, 67, 0.1);
  transform: translateY(-1px);
}

/* =========================
   Shared Cards / Panels
   ========================= */

.site-card,
.panel,
.chart-card,
.metric-card,
.info-card,
.service-card,
.fee-card,
.fee-example-card,
.eligibility-card,
.security-card,
.architecture-card,
.trust-panel,
.signup-card,
.callout-card,
.homepage-card {
  background:
    radial-gradient(circle at top center, rgba(214, 162, 67, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(10, 27, 18, 0.92) 0%, rgba(7, 19, 13, 0.97) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
}

.site-card,
.panel,
.chart-card,
.callout-card {
  border-radius: var(--radius-xl);
}

.metric-card,
.info-card,
.service-card,
.fee-card,
.fee-example-card,
.eligibility-card,
.security-card,
.signup-card,
.homepage-card {
  border-radius: var(--radius-lg);
}

/* =========================
   Shared Grids
   ========================= */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* =========================
   Shared Icon Tile
   ========================= */

.icon-tile,
.feature-icon,
.homepage-icon,
.card-icon,
.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(214, 162, 67, 0.1);
  border: 1px solid rgba(214, 162, 67, 0.18);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(214, 162, 67, 0.08);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 34px 0 42px;
  margin-top: 30px;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-copy,
.site-footer p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* =========================
   Shared Utility
   ========================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(214, 162, 67, 0.5);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-2,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .navbar,
  .custom-navbar {
    grid-template-columns: auto 1fr auto;
    height: 78px;
    padding: 0 16px;
    gap: 10px;
  }

  .logo,
  .navbar-brand {
    font-size: 2.2rem;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-link {
    display: none;
  }

  .apply-btn,
  .btn-primary {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .section {
    padding: 64px 0;
  }

  h1,
  .page-title {
    font-size: 3.2rem;
  }

  h2,
  .section-title {
    font-size: 2.2rem;
  }

  .hero-sub,
  .hero-subtitle,
  .page-subtitle {
    font-size: 1rem;
  }

  .footer-logo {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  h1,
  .page-title {
    font-size: 2.8rem;
  }

  h2,
  .section-title {
    font-size: 2rem;
  }
}