/* ============================================
   FutureProof Grad — Shared Stylesheet
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263348;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #a5b4fc;
  --border: #334155;
  --risk-red: #dc2626;
  --risk-orange: #d97706;
  --risk-yellow: #ca8a04;
  --risk-green: #16a34a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

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

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: #fff !important;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(165, 180, 252, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  align-self: flex-start;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}

.article-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}

.article-link:hover {
  color: var(--primary);
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(15,23,42,0) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.subscribe-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--primary);
}

.subscribe-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CONSULTING / SERVICE CARDS
   ============================================ */
.consulting-section {
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.service-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-copy, .footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   RISK TABLE (majors.html)
   ============================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.risk-table thead {
  background: rgba(99, 102, 241, 0.15);
}

.risk-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.risk-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: var(--text);
  vertical-align: middle;
}

.risk-table tr:last-child td {
  border-bottom: none;
}

.risk-table tbody tr {
  background: var(--bg-card);
  transition: background 0.15s;
}

.risk-table tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.6);
}

.risk-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.rank-num {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.major-name {
  font-weight: 600;
  color: #fff;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.risk-very-high {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.risk-high {
  background: rgba(217, 119, 6, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.risk-med-high {
  background: rgba(202, 138, 4, 0.12);
  color: #fde68a;
  border: 1px solid rgba(202, 138, 4, 0.25);
}

.automatable-pct {
  font-weight: 700;
  color: var(--text-muted);
}

.growth-negative {
  color: #fca5a5;
  font-weight: 700;
}

.growth-positive {
  color: #86efac;
  font-weight: 700;
}

.threat-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 260px;
}

/* ============================================
   ALTERNATIVES GRID (majors.html)
   ============================================ */
.alts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.alt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.alt-card:hover {
  border-color: var(--risk-green);
  transform: translateY(-2px);
}

.alt-interest {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.5rem;
}

.alt-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.alt-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   NEWSLETTER PAGE
   ============================================ */
.issue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.issue-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.issue-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.issue-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.benefits-list li::before {
  content: "✓";
  color: #86efac;
  font-weight: 700;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
}

.method-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.method-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.source-card .source-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.source-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mission-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(30,41,59,0.5));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
}

.mission-block blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-style: italic;
}

.mission-block p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99,102,241,0.1);
  border: 1px dashed rgba(99,102,241,0.4);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    z-index: 99;
  }

  .hero { padding: 4rem 1.25rem 3.5rem; }
  section { padding: 3.5rem 1.25rem; }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input[type="email"],
  .subscribe-form .btn-primary {
    width: 100%;
  }

  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.35rem; }

  .mission-block { padding: 2rem; }

  .risk-table th, .risk-table td {
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .stat-number { font-size: 2.25rem; }
}
