/* =============================================================
   FINANCIAL UNDERDOG — styles.css
   ============================================================= */

/* --- Reset & base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Backgrounds */
  --bg-base:        #05080F;
  --bg-surface:     #080E1A;
  --bg-card:        #0D1A2D;
  --bg-card-hover:  #112038;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.17);

  /* Amber accent */
  --amber:          #F0A500;
  --amber-light:    #FFD166;
  --amber-muted:    rgba(240, 165, 0, 0.12);
  --amber-border:   rgba(240, 165, 0, 0.25);

  /* Category colours */
  --teal:           #2DD4BF;
  --teal-muted:     rgba(45, 212, 191, 0.10);
  --teal-border:    rgba(45, 212, 191, 0.20);

  --violet:         #A78BFA;
  --violet-muted:   rgba(167, 139, 250, 0.10);
  --violet-border:  rgba(167, 139, 250, 0.20);

  --coral:          #FB923C;
  --coral-muted:    rgba(251, 146, 60, 0.10);
  --coral-border:   rgba(251, 146, 60, 0.20);

  /* Text */
  --text-0:   #EEF2FF;
  --text-1:   #94A3B8;
  --text-2:   #4B6280;

  /* Layout */
  --container-max: 1100px;
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-base);
  color: var(--text-0);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
}

/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background  0.35s ease,
    border-color 0.35s ease,
    box-shadow  0.35s ease;
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-0);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--amber);
  color: #000;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.logo-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.nav-logo:hover .logo-mark {
  opacity: 0.88;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-0);
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  padding: 120px 0 108px;
  overflow: hidden;
}

/* Subtle grid lines */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 90%);
  pointer-events: none;
}

/* Amber radial glow */
.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(240, 165, 0, 0.07) 0%, transparent 62%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--amber-muted);
  border: 1px solid var(--amber-border);
  border-radius: 100px;
  margin-bottom: 28px;
}

/* Headline */
.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.033em;
  color: var(--text-0);
  margin-bottom: 24px;
}

/* Body copy */
.hero-body {
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-1);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Pillar pills */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pillar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-1);
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.pillar:hover {
  border-color: var(--border-strong);
  color: var(--text-0);
}

.pillar-icon {
  display: flex;
  align-items: center;
  opacity: 0.65;
}

/* =============================================================
   ABOUT
   ============================================================= */

.about {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-inner {
  max-width: 700px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 24px;
}

.about-quote {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.018em;
  color: var(--text-0);
  border-left: 3px solid var(--amber);
  padding-left: 24px;
  margin-bottom: 24px;
  font-style: normal;
}

.about-text {
  font-size: 0.98rem;
  line-height: 1.78;
  color: var(--text-1);
  padding-left: 27px; /* aligns with quote text (24px + 3px border) */
}

/* =============================================================
   VENTURES
   ============================================================= */

.ventures {
  background: var(--bg-base);
}

.ventures-header {
  margin-bottom: 52px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-1);
}

/* --- Grid --- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Card --- */
.venture-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    background     0.3s ease,
    border-color   0.3s ease,
    transform      0.3s ease,
    box-shadow     0.3s ease;
}

/* Coloured glow on hover (top-right radial per category) */
.venture-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.venture-card[data-category="tools"]::before {
  background: radial-gradient(ellipse at 110% -10%, rgba(45, 212, 191, 0.12) 0%, transparent 55%);
}
.venture-card[data-category="education"]::before {
  background: radial-gradient(ellipse at 110% -10%, rgba(167, 139, 250, 0.12) 0%, transparent 55%);
}
.venture-card[data-category="partnerships"]::before {
  background: radial-gradient(ellipse at 110% -10%, rgba(251, 146, 60, 0.12) 0%, transparent 55%);
}

.venture-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.venture-card:hover::before {
  opacity: 1;
}

/* Category label row */
.card-category {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-dot.tools        { background: var(--teal); }
.cat-dot.education    { background: var(--violet); }
.cat-dot.partnerships { background: var(--coral); }

/* Card identity (logo + name/url) */
.card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lw-logo {
  background: var(--teal-muted);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}
.sz-logo {
  background: var(--violet-muted);
  color: var(--violet);
  border: 1px solid var(--violet-border);
}
.ht-logo {
  background: var(--coral-muted);
  color: var(--coral);
  border: 1px solid var(--coral-border);
}

.card-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin-bottom: 3px;
}

.card-url {
  font-size: 0.77rem;
  color: var(--text-2);
  font-family: var(--mono);
}

/* Description */
.card-desc {
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--text-1);
  flex: 1;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

/* Venture link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  margin-top: auto;
  position: relative;
  z-index: 1;
  transition: gap 0.2s ease, opacity 0.2s;
}

.card-link:hover {
  gap: 10px;
  opacity: 0.82;
}

.link-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.card-link:hover .link-icon {
  transform: translate(2px, -2px);
}

/* Launching soon footer */
.card-footer-launching {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  background: var(--coral-muted);
  border: 1px solid var(--coral-border);
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-brand-name {
  color: var(--text-1);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet — 2 col → 1 col transition zone */
@media (max-width: 920px) {
  .ventures-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
  }

  .hero {
    padding: 96px 0 88px;
  }

  .about-quote {
    font-size: 1.25rem;
  }

  .section {
    padding: 72px 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .logo-name {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 72px 0 72px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-body {
    font-size: 1rem;
  }

  .hero-pillars {
    gap: 8px;
  }

  .pillar {
    font-size: 0.8rem;
    padding: 7px 13px;
  }

  .venture-card {
    padding: 24px;
  }

  .about-quote {
    font-size: 1.1rem;
  }

  .about-text {
    padding-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section {
    padding: 56px 0;
  }

  .ventures-header {
    margin-bottom: 36px;
  }
}
