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

:root {
  --navy: #0f1b2d;
  --slate: #1a2940;
  --teal: #2dd4a8;
  --teal-dark: #22a884;
  --light: #e8f0f2;
  --white: #ffffff;
  --gray: #94a3b8;
  --text: #cbd5e1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 27, 45, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(45, 212, 168, 0.1);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--gray);
  font-size: 0.9rem;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--white);
  text-decoration: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 168, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--teal), #60e8c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--teal-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* About / What We Do */
.about p {
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.8;
}

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

.highlight-card {
  background: var(--slate);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(45, 212, 168, 0.1);
}

.highlight-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Four Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--slate);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(45, 212, 168, 0.08);
  transition: border-color 0.2s, transform 0.2s;
}

.pillar-card:hover {
  border-color: rgba(45, 212, 168, 0.3);
  transform: translateY(-2px);
}

.pillar-number {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background: rgba(45, 212, 168, 0.15);
  color: var(--teal);
  border-radius: 6px;
  text-align: center;
  line-height: 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.pillar-examples {
  font-size: 0.8rem !important;
  color: var(--teal) !important;
  opacity: 0.7;
  margin-top: 0.75rem;
  font-style: italic;
}

.deadline {
  display: inline-block;
  background: rgba(45, 212, 168, 0.1);
  border: 1px solid rgba(45, 212, 168, 0.3);
  color: var(--teal);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pillars-link {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Timeline */
.timeline {
  margin-top: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(45, 212, 168, 0.2);
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--slate);
  border: 2px solid rgba(45, 212, 168, 0.4);
}

.timeline-item.active::before {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(45, 212, 168, 0.4);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Team */
.team-grid {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #60e8c8);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.team-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

.team-bio {
  font-size: 0.8rem !important;
  margin-top: 0.25rem;
  color: var(--gray);
}

/* Apply Section */
.apply {
  text-align: center;
}

.apply p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--slate);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(45, 212, 168, 0.1);
  min-height: 500px;
}

.form-container iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  border-radius: 8px;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--navy);
  border: 1px solid rgba(45, 212, 168, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
  opacity: 0.6;
}

.interest-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* Funding table */
.funding-table {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.funding-row {
  background: var(--slate);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(45, 212, 168, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.funding-label {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.funding-amount {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 768px) {
  .funding-row {
    flex-direction: column;
    text-align: left;
  }
  .funding-amount {
    text-align: left;
  }
}

/* Footer */
footer {
  border-top: 1px solid rgba(45, 212, 168, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

footer a {
  color: var(--teal);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  section {
    padding: 3rem 1.25rem;
  }

  .hero {
    padding: 5rem 1.25rem 3rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .form-container {
    padding: 1rem;
  }
}
