/* TechNexus Founders Portal — mirrors main-site shared design system.
   Source: /linked/TechNexus_Website_Redesign/web/css/main.css
   Portal-specific additions are marked below. */

.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 999;
  font-size: 14px; font-weight: 600;
  background: var(--orange); color: var(--dark);
  padding: 12px 24px; border-radius: 0 0 4px 4px;
}
.skip-link:focus {
  position: fixed; left: 50%; top: 0;
  transform: translateX(-50%);
  width: auto; height: auto;
}

/* Visually hidden but read by screen readers.
   Used for labels where the visual cue already conveys the field. */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

:root {
  --dark: #001932;
  --dark-mid: #0a2540;
  --orange: #F99601;
  --orange-soft: #f9a82e;
  --white: #ffffff;
  --off-white: #fafaf8;
  --text-primary: #001932;
  --text-body: #3d3d3d;
  --text-secondary: #6b6b6b;
  --text-muted: #9a9a9a;
  --rule: #d4d3cf;
  --rule-light: #e8e7e3;
}
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--off-white);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

header {
  background: var(--dark);
  height: 80px;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.logo img { display: block; }
.logo-suffix {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--orange);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
nav { display: flex; gap: 20px; align-items: center; }
nav a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75);
  letter-spacing: 0.2px; transition: 0.2s ease;
}
nav a:hover { color: rgba(255,255,255,0.9); }
nav a.active { color: var(--orange); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
nav a.orange { color: var(--orange); opacity: 0.85; }
nav a.orange:hover { opacity: 1; }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  z-index: 101;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.7); transition: 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-ghost {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--orange); border: 1px solid var(--orange);
  padding: 9px 22px; border-radius: 4px;
  letter-spacing: 0.3px; transition: 0.2s ease;
  text-transform: none;
}
.btn-ghost:hover { background: #fff; color: var(--orange); border-color: var(--orange); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
nav a:focus-visible { outline-offset: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--orange); margin-bottom: 12px;
}
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }

.btn-orange {
  display: inline-block; background: var(--orange); color: var(--dark);
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 16px 36px;
  border-radius: 3px; white-space: nowrap;
  transition: 0.2s ease; border: none; cursor: pointer; font-family: inherit;
}
.btn-orange:hover { background: var(--orange-soft); transform: translateY(-1px); }

.btn-outline-light {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  font-size: 14px; font-weight: 600;
  padding: 15px 30px; border-radius: 3px;
  letter-spacing: 0.3px; transition: 0.2s ease;
}
.btn-outline-light:hover { border-color: var(--orange); color: var(--orange); }

.cta-band {
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 64px 40px;
  border-radius: 6px;
}
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-inner h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px; color: var(--white); margin-bottom: 8px;
}
.cta-inner p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.6; max-width: 600px; }

footer {
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 36px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.footer-copy { color: rgba(255,255,255,0.55); font-size: 12px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 500;
  transition: 0.2s ease;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

.footer-eco-band {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px 28px;
  text-align: center;
  width: 100%;
}
.footer-eco-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.3); margin-bottom: 14px;
}
.footer-eco-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-eco-link {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px; transition: 0.2s;
}
.footer-eco-link:hover {
  color: var(--white);
  border-color: var(--orange);
  background: rgba(249, 150, 1, 0.08);
}
.footer-eco-link svg {
  width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.5;
}

.footer-legal-band {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 28px;
}
.footer-legal-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.65); font-weight: 700;
  margin-bottom: 12px; text-align: center;
}
.footer-legal-body {
  font-size: 12.5px; line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 880px; margin: 0 auto; text-align: center;
}
.footer-legal-body strong { color: #fff; font-weight: 600; }
.footer-legal-body a { color: rgba(255,210,140,0.95); text-decoration: underline; }
.footer-legal-body a:hover { color: var(--orange); }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-bottom .footer-links { flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
.footer-bottom .footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-bottom .footer-links a:hover { color: #fff; }

.fade-in {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================================================
   Portal-specific additions (below this line not in main-site main.css)
   ======================================================================== */

/* Hero — mirrors main-site hero-section with neural-network canvas */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #001932 0%, #0a2540 100%);
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 80px 40px;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: auto;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 20px;
}
.hero { max-width: 720px; }
.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 56px; line-height: 1.05; color: #fff;
  letter-spacing: -0.02em; font-weight: 400;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--orange); font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.78);
  line-height: 1.6; margin-bottom: 32px; max-width: 560px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Landing cards */
.landing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 72px 0;
}
.landing-card {
  background: #fff;
  border: 1px solid var(--rule-light);
  border-radius: 6px;
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.landing-card:hover {
  box-shadow: 0 10px 30px rgba(0,25,50,0.08);
  transform: translateY(-2px);
  border-color: rgba(249,150,1,0.25);
}
.landing-card-kicker {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.8px; color: var(--orange);
  margin-bottom: 14px;
}
.landing-card h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 12px;
  font-weight: 400;
}
.landing-card p { font-size: 14px; line-height: 1.65; color: var(--text-body); }

/* Authed hero (smaller, no canvas) */
.authed-hero {
  background: var(--dark);
  padding: 56px 40px 48px;
  border-bottom: 3px solid var(--orange);
}
.authed-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 40px; color: #fff; font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.1;
}
.authed-sub { color: rgba(255,255,255,0.7); font-size: 15px; margin-top: 8px; }

/* Home grid */
.home-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding: 48px 0 72px;
}
.home-card {
  background: #fff;
  border: 1px solid var(--rule-light);
  border-radius: 6px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.home-card.company-card {
  border-top: 3px solid var(--orange);
}
.home-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px; line-height: 1.2; margin: 4px 0 12px;
  color: var(--text-primary); font-weight: 400;
}
.home-card-body {
  font-size: 14px; line-height: 1.65; color: var(--text-body);
  margin-bottom: 16px;
}
.home-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; padding: 4px 10px;
  background: #fff5e6; color: #8b5a00;
  border-radius: 3px;
}

.body-link { color: var(--orange); font-weight: 600; }
.body-link:hover { color: var(--orange-soft); text-decoration: underline; }

/* Auth pages */
.auth-wrap { min-height: 60vh; padding: 72px 20px; display: flex; justify-content: center; }
.auth-card {
  background: #fff;
  border: 1px solid var(--rule-light);
  border-radius: 8px;
  padding: 48px 44px;
  max-width: 460px; width: 100%;
}
.auth-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px; line-height: 1.15; font-weight: 400;
  color: var(--text-primary); margin-bottom: 12px; letter-spacing: -0.01em;
}
.auth-sub { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }
.auth-form { margin-top: 28px; }
.auth-form label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-secondary); margin-bottom: 8px;
}
.auth-form input[type=email] {
  width: 100%;
  font-family: inherit; font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--off-white);
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-form input[type=email]:focus {
  outline: 2px solid var(--orange); outline-offset: 0;
  border-color: var(--orange); background: #fff;
}
.auth-error {
  background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca; border-radius: 4px;
  padding: 12px 14px; font-size: 13.5px; margin: 20px 0 0;
}
.auth-divider {
  text-align: center; margin: 28px 0; position: relative;
  color: var(--text-muted); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%;
  width: calc(50% - 30px); height: 1px; background: var(--rule-light);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-google {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  padding: 13px; border: 1px solid var(--rule);
  border-radius: 4px; font-size: 14px; font-weight: 600;
  color: var(--text-primary); background: #fff; transition: 0.2s;
}
.auth-google:hover { border-color: var(--text-primary); }
.auth-footnote {
  font-size: 12.5px; color: var(--text-muted); text-align: center;
  margin-top: 32px; line-height: 1.6;
}

/* Tablet & Mobile */
@media (max-width: 480px) {
  .logo-suffix { display: none; }
}

/* TN-staff impersonation banner — only shown when staff is viewing-as a founder */
.staff-impersonation-bar {
  background: #4a2d00;
  border-bottom: 2px solid var(--orange);
  color: #fff;
  position: sticky; top: 0; z-index: 200;
}
.staff-impersonation-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 40px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.staff-impersonation-label {
  background: var(--orange); color: var(--dark);
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 10px; border-radius: 3px;
}
.staff-impersonation-text { color: rgba(255,255,255,0.92); flex: 1 1 auto; }
.staff-impersonation-text strong { color: #fff; font-weight: 600; }
.staff-impersonation-actions { display: flex; gap: 10px; align-items: center; }
.staff-impersonation-actions a,
.staff-impersonation-actions button {
  font-size: 12px; font-weight: 600;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px; border-radius: 3px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.staff-impersonation-actions a:hover,
.staff-impersonation-actions button:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 600px) {
  .staff-impersonation-inner { padding: 8px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .staff-impersonation-text { font-size: 12px; }
}

@media (max-width: 900px) {
  .header-inner, .wrap, .cta-inner { padding: 0 24px; }
  .landing-grid, .home-grid { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
  .hero h1 { font-size: 36px; }
  .hero-section { min-height: 440px; padding: 48px 20px; }
  .authed-title { font-size: 30px; }

  .menu-toggle { display: flex; }
  nav {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    background: var(--dark); flex-direction: column;
    padding: 8px 24px 20px; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }
  nav.open { display: flex; }
  nav a {
    font-size: 15px; padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
  }
  nav a:last-child { border-bottom: none; }
  .btn-ghost { text-align: center; margin-top: 8px; padding: 12px 18px; font-size: 14px; }
  .cta-inner { flex-direction: column; text-align: center; gap: 24px; padding: 12px; }
  .cta-inner h2 { font-size: 26px; }
  .btn-orange { width: 100%; text-align: center; padding: 16px 28px; }
  footer { padding: 36px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .auth-card { padding: 32px 24px; }
}
