/* ============================================
   InspireMe.vc - Premium Dark Landing
   ============================================ */

:root {
  /* Palette - dark, refined */
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #141416;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  
  --accent: #e4e4e7;
  --accent-soft: rgba(228, 228, 231, 0.8);
  --glow: rgba(251, 146, 60, 0.15);
  --glow-strong: rgba(251, 146, 60, 0.25);
  --gradient-start: #fb923c;
  --gradient-mid: #fdba74;
  --gradient-end: #fed7aa;
  
  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  --container: min(1200px, 100% - 3rem);
  --section-padding: clamp(4rem, 10vw, 7rem);
  
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Skip link - visible on focus for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1001;
  padding: var(--space-sm) var(--space-md);
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: var(--space-md);
  outline: 2px solid var(--gradient-mid);
  outline-offset: 2px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient gradient orbs */
.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: orb-float 20s var(--ease-in-out) infinite;
}
.gradient-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-strong) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}
.gradient-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.2) 0%, transparent 70%);
  bottom: 20%;
  left: -100px;
  animation-delay: -7s;
}
.gradient-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Focus visible for keyboard accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gradient-mid);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition: background 0.3s ease;
}
.header.scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--text);
}

/* Mobile menu button - visible only on small screens */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-toggle:hover {
  border-color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.03);
}
.menu-toggle::before {
  content: '';
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.menu-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  margin-top: -1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 99;
}
.mobile-nav.mobile-nav--open {
  display: flex;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  font-weight: 500;
  color: var(--text-muted);
}
.mobile-nav a:hover {
  color: var(--text);
}

/* Buttons - min touch target 44px (WCAG 2.5.5) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn--ghost {
  color: var(--text-muted);
  border-color: var(--border-strong);
  background: transparent;
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}
.btn--primary {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--glow);
}
.btn--secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  border-color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.03);
}
.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  z-index: 1;
}

.hero-particles,
#particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#particles {
  width: 100%;
  height: 100%;
}
.cta-particles,
#particles-cta {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
#particles-cta {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== Section shared ========== */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 1;
  scroll-margin-top: 80px;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gradient-mid);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

/* ========== Philosophy ========== */
.philosophy {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 19, 0.5) 50%, transparent 100%);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.philosophy-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.philosophy-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 40px var(--glow);
  transform: translateY(-2px);
}

.philosophy-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--gradient-mid);
}
.philosophy-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
}
.philosophy-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== What We Support ========== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.support-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.support-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 50px var(--glow);
  transform: translateY(-2px);
}
.support-card:hover::before {
  opacity: 1;
}

.support-card-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: var(--space-sm);
}
.support-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: var(--text);
}
.support-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== For Founders ========== */
.founders {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 19, 0.4) 100%);
}

.founders-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.founders-list {
  margin-bottom: var(--space-xl);
}
.founders-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.list-icon {
  color: var(--gradient-mid);
  flex-shrink: 0;
}

.founders-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founders-visual-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0.6;
}
.founders-visual-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 0 60px var(--glow);
}
.founders-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
  line-height: 1.5;
}

/* ========== For Investors ========== */
.investors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.investors-layout .investors-visual {
  order: -1;
}

.investors-list {
  margin-bottom: var(--space-xl);
}
.investors-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.investors-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.investors-visual-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(50px);
  opacity: 0.5;
}
.investors-visual-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 50px var(--glow);
}
.investors-stat {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gradient-mid);
  letter-spacing: -0.02em;
}
.investors-stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ========== Social Proof ========== */
.proof {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 19, 0.5) 100%);
}

/* Partner logos - hidden until real logos are added; remove display:none to show */
.proof-logos {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}
.proof-logo {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 120px;
  text-align: center;
}

.proof-testimonial {
  max-width: 640px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-xl);
  border-left: 2px solid var(--gradient-mid);
  background: var(--bg-card);
  border-radius: 0 12px 12px 0;
}
.proof-testimonial blockquote p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}
.proof-testimonial cite {
  font-size: 0.875rem;
  color: var(--text-subtle);
  font-style: normal;
}

/* ========== CTA ========== */
.cta {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
}
.cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.cta-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}
.cta .btn {
  position: relative;
  z-index: 1;
}

/* ========== Footer ========== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}
.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-subtle);
}
.footer-links a:hover {
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: var(--space-sm);
}

/* ========== Reveal animations (triggered by JS) ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.revealed-delay-1 { transition-delay: 0.1s; }
.reveal.revealed-delay-2 { transition-delay: 0.2s; }
.reveal.revealed-delay-3 { transition-delay: 0.3s; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .header .nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .founders-layout,
  .investors-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .investors-layout .investors-visual {
    order: 0;
  }
  .founders-visual,
  .investors-visual {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: var(--space-sm) var(--space-md);
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure main is focusable for skip link target */
#main-content:focus {
  outline: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gradient-orb,
  .hero-scroll-line {
    animation: none;
  }
  .reveal {
    transition-duration: 0.01ms;
  }
}
