/* =========================================================
   Imports
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   Base theme tokens
========================================================= */
:root{
  --text:#0f1223;
  --muted:#6b7280;
  --primary:#3756e2;
  --accent:#37b6f6;
  --bg:#ffffff;
  --alt:#f8faff;
  --border:#e7eaff;
  --gradient-primary: linear-gradient(135deg, #3756e2 0%, #37b6f6 100%);
  --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #f0f4ff 100%);
  --shadow-sm: 0 2px 10px rgba(55, 86, 226, 0.08);
  --shadow-md: 0 8px 25px rgba(55, 86, 226, 0.12);
  --shadow-lg: 0 20px 40px rgba(55, 86, 226, 0.15);
}

*{ box-sizing:border-box; }

html,body{
  margin:0; padding:0;
  font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color:var(--text); line-height:1.6; background: #ffffff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll offset compensation for navbar anchors */
html {
  scroll-padding-top: 100px; /* Account for navbar height (88px) + border (1px) + extra buffer (11px) */
}

/* Alternative approach for better browser support */
#problem, #solution, #market, #team, #contact, #hero {
  scroll-margin-top: 100px;
}

/* =========================================================
   Layout
========================================================= */
.container{ max-width:1000px; margin:0 auto; padding:0 20px; }
.section{ padding:80px 0; }

/* Consistent section backgrounds - alternating pattern */
.hero-section,
.solution-section,
#team,
footer { 
  background: #ffffff; 
}

.problem-section,
#market,
#contact { 
  background: linear-gradient(135deg, #f8faff 0%, #f6f9ff 100%); 
}

/* Hero section styling */
.hero-section{ 
  background: #ffffff;
  position: relative;
  padding: 100px 0 60px 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-separator {
  display: none;
}

/* Problem section styling */
.problem-section {
  background: linear-gradient(135deg, #f8faff 0%, #f6f9ff 100%);
  padding: 60px 0;
  position: relative;
}

.section-intro {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.section-intro h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  position: relative;
}

.section-intro h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header,footer{ 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); 
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

footer{ 
  border-top:1px solid var(--border); 
  text-align:center; 
  padding:40px 0; 
  margin-top:0; 
  background: #ffffff;
}

.site-nav{ 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:20px; 
  min-height:88px; 
  padding: 0 24px;
}

.brand{ 
  display:flex; 
  align-items:center; 
  gap:14px; 
  text-decoration:none; 
  color:var(--text); 
  font-weight:800; 
  font-size: 22px;
  transition: all 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand img{ 
  border-radius:12px; 
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(55, 86, 226, 0.2));
}

.navlinks a{ 
  margin-left:28px; 
  text-decoration:none; 
  color:var(--text); 
  font-weight:600; 
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navlinks a.btn {
  padding: 10px 20px;
  margin-left: 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
}

.navlinks a.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.navlinks a:not(.btn):hover {
  color: var(--primary);
}

.navlinks a:not(.btn):hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { width: 0; left: 50%; }
  to { width: 100%; left: 0; }
}

/* Simple grid helpers */
.grid-3{ 
  display:grid; 
  grid-template-columns:repeat(3,minmax(0,1fr)); 
  gap:24px; 
}

.grid-3 .card {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.grid-3 .card:nth-child(1) { animation-delay: 0.1s; }
.grid-3 .card:nth-child(2) { animation-delay: 0.2s; }
.grid-3 .card:nth-child(3) { animation-delay: 0.3s; }

@media (max-width:900px){ .grid-3{ grid-template-columns:1fr; } }

/* =========================================================
   Typography & buttons
========================================================= */
h1{ 
  font-size: 48px; 
  font-weight: 800; 
  line-height: 1.1; 
  margin: 0 0 20px; 
  background: linear-gradient(135deg, var(--text) 0%, #4a5568 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

h2{ 
  font-size: 32px; 
  font-weight: 700; 
  margin: 0 0 16px; 
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

p.lead{ 
  font-size: 20px; 
  color: #404458; 
  margin: 0 0 32px; 
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.muted{ color:var(--muted); }

.btn{
  display: inline-flex;
  align-items: center;
  padding: 14px 28px; 
  border-radius: 16px;
  border: 1px solid var(--border); 
  text-decoration: none; 
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary{
  background: var(--gradient-primary);
  color: #fff; 
  border: none;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Cards */
.card{
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: 20px;
  padding: 28px; 
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(55, 86, 226, 0.2);
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
  position: relative;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Timeline (kept minimal) */
#market {
  background: linear-gradient(135deg, #f8faff 0%, #f6f9ff 100%);
  padding: 60px 0;
}

.timeline{ 
  display:grid; 
  grid-template-columns:repeat(3,minmax(0,1fr)); 
  gap:24px; 
  margin-top:10px; 
}

.step{ 
  background:#ffffff; 
  border:1px solid var(--border); 
  border-radius:20px; 
  padding:24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step h4{ 
  margin:.2rem 0; 
  font-size: 20px;
  font-weight: 600;
}

.number{
  font-weight:800; 
  font-size:24px;
  background:var(--gradient-primary);
  -webkit-background-clip:text; 
  background-clip:text; 
  color:transparent;
}

@media (max-width:900px){ .timeline{ grid-template-columns:1fr; } }

/* =========================================================
   Contact
========================================================= */
#contact {
  background: linear-gradient(135deg, #f8faff 0%, #f6f9ff 100%);
  padding: 60px 0;
}

/* =========================================================
   Team
========================================================= */
#team { 
  background: #ffffff; 
  padding: 60px 0;
}

.team-grid{
  /* mobile-first: 2 columns */
  display:grid; grid-template-columns:1fr 1fr;
  column-gap:16px; row-gap:20px;
  list-style:none; padding:0; margin:0;
}

/* desktop: 4 columns */
@media (min-width:900px){
  .team-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  /* row 1 — cofounders centered (items 1–2) */
  .team-grid > li:nth-child(1){ grid-column:2; }
  .team-grid > li:nth-child(2){ grid-column:3; }
  /* row 3 — advisor centered & wider */
  .team-grid > li.advisor{ grid-column:2 / span 2; }
}

.person-card{
  text-align:center; 
  padding:20px; 
  background:#ffffff;
  border:1px solid var(--border); 
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  transition: all 0.3s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.person-card .avatar{
  width:140px; height:140px; object-fit:cover;
  border-radius:50%; border:4px solid var(--border);
  display:block; margin:0 auto 10px;
}
.person-card.highlight .avatar{ border-color:var(--primary); } /* co-founders */
.person-card h3{ margin:0 0 4px; font-size:20px; }
.person-card .role{ margin:0; color:var(--muted); line-height:1.35; }
.person-card .badge{
  display:inline-block; margin-top:6px; padding:2px 8px;
  border-radius:999px; background:var(--alt); border:1px solid var(--border);
  font-size:12px; font-weight:700; color:var(--text);
}

/* Slightly smaller avatars on small screens */
@media (max-width:900px){
  .person-card .avatar{ width:110px; height:110px; }
  .team-grid > li.advisor{ grid-column:1 / -1; } /* full-width advisor on mobile */
}

/* =========================================================
   Solution (two-column content + small UI blocks)
========================================================= */
.solution-section {
  background: #ffffff;
  padding: 60px 0;
  position: relative;
}

.two-col{
  display:grid; 
  grid-template-columns:1.2fr 1fr; 
  gap:60px; 
  align-items:center;
}

.solution-content {
  animation: slideInLeft 1s ease-out;
}

.solution-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

@media (max-width:900px){ 
  .two-col{ 
    grid-template-columns:1fr; 
    gap:40px;
  } 
}

/* bullets + badges */
#solution ul.check{ 
  margin: 20px 0 24px; 
  padding-left: 0;
  list-style: none;
}

#solution ul.check li{ 
  margin: 12px 0; 
  padding-left: 32px;
  position: relative;
  line-height: 1.6;
}

#solution ul.check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

#solution .badges{ 
  display:flex; 
  flex-wrap:wrap; 
  gap:12px; 
  margin-top:24px; 
}

#solution .badge{
  display: inline-block; 
  padding: 8px 16px; 
  border: 1px solid var(--border);
  border-radius: 25px; 
  background: #ffffff;
  font-weight: 600; 
  font-size: 13px;
  color: var(--text);
  transition: all 0.3s ease;
}

#solution .badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

/* illustration column */
#solution .illus{ 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  gap: 24px; 
  animation: slideInRight 1s ease-out;
}

#solution .stack{ 
  display: flex; 
  flex-direction: row; 
  flex-wrap: wrap;
  gap: 12px; 
  max-width: 300px; 
}

#solution .chip{
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: 25px;
  padding: 12px 18px; 
  font-weight: 600; 
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
  color: var(--text);
}

#solution .chip:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

#solution .arrow{ 
  font-size: 32px; 
  line-height: 1; 
  color: var(--primary); 
  font-weight: bold;
  animation: pulse 2s ease-in-out infinite;
}

/* console */
#solution .console{
  background: #ffffff; 
  border: 1px solid var(--border); 
  border-radius: 16px;
  width: 100%; 
  max-width: 340px; 
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

#solution .console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8faff;
  border-bottom: 1px solid var(--border);
}

#solution .console > .dot,
#solution .console-header .dot{
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  display: inline-block;
}

#solution .console-header .dot.red { background: #ff5f56; }
#solution .console-header .dot.yellow { background: #ffbd2e; }
#solution .console-header .dot.green { background: #27ca3f; }

#solution .console-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-left: auto;
}

#solution .console-body{ padding: 16px; }

#solution .console-body .row{
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 10px 0;
  border-bottom: 1px dashed rgba(55, 86, 226, 0.1);
  font-size: 14px;
  font-weight: 500;
}

#solution .console-body .row:last-child{ border-bottom: none; }

#solution .pill{ 
  width: 20px; 
  height: 10px; 
  border-radius: 25px; 
  flex-shrink: 0;
}

#solution .pill.severity { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); }
#solution .pill.biomarker { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
#solution .pill.efficacy { background: linear-gradient(135deg, #a8edea, #fed6e3); }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* --- Team: 2 founders (row 1), 4 members (row 2), advisor centered (row 3) --- */
@media (min-width: 900px) {
  #team .team-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    column-gap: 16px;
    row-gap: 20px;
  }

  /* Explicit row/column placement */
  #team .team-grid > li:nth-child(1){ grid-column: 2; grid-row: 1; } /* founder 1 */
  #team .team-grid > li:nth-child(2){ grid-column: 3; grid-row: 1; } /* founder 2 */

  #team .team-grid > li:nth-child(3){ grid-column: 1; grid-row: 2; } /* member 1 */
  #team .team-grid > li:nth-child(4){ grid-column: 2; grid-row: 2; } /* member 2 */
  #team .team-grid > li:nth-child(5){ grid-column: 3; grid-row: 2; } /* member 3 */
  #team .team-grid > li:nth-child(6){ grid-column: 4; grid-row: 2; } /* member 4 */

  #team .team-grid > li.advisor{ grid-column: 2 / span 2; grid-row: 3; } /* advisor centered */
}

/* Mobile/tablet stays simple */
@media (max-width: 900px) {
  #team .team-grid{ grid-template-columns: 1fr 1fr; }
  #team .team-grid > li.advisor{ grid-column: 1 / -1; }
}

