:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #5b6cff; /* indigo */
  --brand-ink: #1f2a44;
  --card: #f8fafc;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{position:sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid var(--border)}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:64px}
.brand{font-weight:800; font-size:1.25rem; text-decoration:none; color:var(--brand-ink)}
.nav{display:flex; gap:.5rem; align-items:center}
.nav a{padding:.5rem .75rem; border-radius:10px; color:#374151; text-decoration:none}
.nav a:hover, .nav a.active{background:var(--card)}

/* Hamburger button */
.menu-toggle{
  display:none; width:42px; height:42px; border:1px solid var(--border); background:#fff;
  border-radius:10px; box-shadow:var(--shadow);
  align-items:center; justify-content:center; gap:4px; cursor:pointer;
}
.menu-toggle .menu-bar{display:block; width:20px; height:2px; background:#111827; border-radius:2px}

/* Hero */
.hero{background:linear-gradient(180deg,#eef2ff, #fff);padding:56px 0 24px}
.hero-inner{text-align:center}
.hero h1{font-size:clamp(1.9rem, 1.2rem + 2vw, 2.6rem);margin:.25rem 0}
.hero p{color:var(--muted);max-width:700px;margin:0 auto 1rem}
.hero-cta{display:flex;gap:12px;justify-content:center;margin-top:10px}

/* Buttons */
.btn{display:inline-block;padding:.75rem 1.1rem;border:1px solid var(--border);border-radius:12px;text-decoration:none;color:#111;background:#fff;box-shadow:var(--shadow);transition:transform .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}

/* Sections */
.features{padding:32px 0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature-card{background:var(--card);padding:18px;border-radius:var(--radius);border:1px solid var(--border)}
.teaser{padding:24px 0 52px}
.teaser-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.teaser-image-wrap img{border-radius:var(--radius);box-shadow:var(--shadow)}

/* Page headers */
.page-header{padding:28px 0 8px}
.page-header h1{margin:0}

/* Listings */
.listings-grid{padding:8px 0 36px;display:grid;gap:18px}
.two-col{grid-template-columns:repeat(2,1fr)}
.card{background:var(--bg);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.card-media img{width:100%;height:240px;object-fit:cover}
.card-body{padding:16px}
.card-body h3{margin:0 0 6px 0}
.muted{color:var(--muted)}
.small{font-size:.9rem}

/* Split */
.split{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;padding-bottom:20px}
.rounded{border-radius:18px;box-shadow:var(--shadow)}

/* Founders */
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.founders .founder-card{display:flex;gap:16px;align-items:center;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:12px}
.founders img{width:110px;height:110px;object-fit:cover;border-radius:12px}

/* Contact form */
.contact{padding:8px 0 36px}
.form{background:var(--card);padding:18px;border:1px solid var(--border);border-radius:16px}
.form label{display:block;font-weight:600;margin:6px 0 4px}
.form input,.form textarea{width:100%;padding:.7rem;border:1px solid var(--border);border-radius:10px;font:inherit;background:#fff}
.form .grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}

/* Footer */
.site-footer{border-top:1px solid var(--border);margin-top:28px}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:12px 0}
.footer-nav a{margin-left:14px;text-decoration:none;color:#374151}

/* ======= Mobile Nav (Dropdown) ======= */
@media (max-width: 720px){
  .menu-toggle{display:inline-flex; position:relative; z-index:101}

  /* Ensure header is above page content */
  .site-header{position:sticky; top:0; z-index:100; background:#fff}

  /* Collapsed nav lives under the header and doesn't block taps when closed */
  .nav{
    position:absolute; left:0; right:0; top:64px;
    background:#fff; border-top:1px solid var(--border);
    display:grid; gap:0; padding:.25rem 1rem;
    max-height:0; overflow:hidden;
    transition:max-height .25s ease;
    z-index:100;                 /* below the button, above content */
    pointer-events:none;         /* IMPORTANT: closed menu cannot intercept taps */
  }
  .nav a{padding:.875rem .5rem; border-radius:8px}
  .nav.open{
    max-height:260px;
    pointer-events:auto;         /* enable taps only when open */
  }
  body.nav-open{overflow:hidden}

  /* Usual layout collapses */
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .card-media img{height:200px}
}

/* Tablets */
@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr 1fr}
  .teaser-inner{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
}
