:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0b1b33;
  --muted: #5f6f8a;
  --brand: #1f5fd6;
  --brand2: #3b82f6;
  --border: #e6ebf2;
  --shadow: 0 12px 30px rgba(15, 30, 60, 0.08);
  --radius: 14px;
  --max: 1100px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: #ffffff;
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a.active {
  color: var(--brand);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.btn.secondary {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, #f5f8ff, #ffffff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.h-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 28px;
}
.kicker {
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1 {
  margin: 12px 0;
  font-size: 42px;
  line-height: 1.1;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.section {
  padding: 48px 0;
}
.section h2 {
  margin: 0 0 10px;
  font-size: 26px;
}
.section p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.logo-box {
  height: 56px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #fafcff;
}
.logo-box img {
  max-height: 32px;
  max-width: 160px;
  object-fit: contain;
}

.small {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: #f8faff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-top: 20px;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
textarea {
  min-height: 120px;
}

.page-hero {
  padding: 56px 0 24px;
  background: #f5f8ff;
}
.page-hero h1 {
  font-size: 36px;
}

blockquote {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: #f2f6ff;
  border-radius: 12px;
}
blockquote .by {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
/* Force Investor Login text to white */
.btn-login {
  color: #ffffff !important;
}

.btn-login:hover {
  color: #ffffff !important;
}

/* ===== Investor Login button cleanup ===== */

/* Desktop */
.btn-login {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  min-height: unset;
}

/* Desktop nav spacing */
.nav-desktop .btn-login {
  margin-left: 6px;
}

/* Mobile menu version */
.nav-mobile .btn-login {
  width: 100%;
  text-align: center;
  border-radius: 14px;
  padding: 12px 14px;
}

/* Prevent oversized button on desktop */
@media (min-width: 861px) {
  .nav-mobile .btn-login {
    width: auto;
  }
}

/* ===== About banner + philosophy layout ===== */
.banner-hero {
  height: 260px;
  background: url("/assets/img/banners/about-hero.jpg") center/cover no-repeat;
  position: relative;
}
.banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
}
.banner-hero .banner-in {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 18px;
}
.banner-hero h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: 0.2px;
}
@media (max-width: 640px) {
  .banner-hero {
    height: 220px;
  }
  .banner-hero h1 {
    font-size: 34px;
  }
}

.philosophy-wrap {
  padding: 46px 0;
  background: #fff;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 980px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

.philosophy-grid h2 {
  margin: 0 0 10px;
  font-size: 30px;
}
.philosophy-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}
.philosophy-text p {
  margin: 0 0 14px;
}
.philosophy-media {
  display: flex;
  justify-content: flex-end;
}
.philosophy-media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== Team grid ===== */
.team-wrap {
  padding: 34px 0 54px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.team-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.team-head h2 {
  margin: 0;
  font-size: 28px;
}
.team-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 0.15s ease;
}
.team-card:hover {
  transform: translateY(-2px);
}
.team-role {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
}
.team-name {
  margin: 10px 0 6px;
  font-size: 18px;
}
.team-snippet {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.team-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.team-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}
.team-link:hover {
  border-color: var(--brand);
}

/* ===== Team detail page ===== */
.team-page {
  padding: 42px 0 56px;
  background: #fff;
}
.team-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.team-header h1 {
  margin: 8px 0 6px;
  font-size: 34px;
}
.team-header .lead {
  margin: 0;
  color: var(--muted);
}
.team-bio {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  background: #fff;
}
.team-bio p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== Mobile header ===== */
.site-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mobile breakpoint */
@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile.open {
    display: block;
  }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-desktop {
  display: flex;
}
.nav-mobile {
  display: none;
  padding: 10px 0 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 600;
}
.nav-mobile a:hover {
  color: var(--brand);
}
.nav-mobile .btn {
  width: 100%;
  margin-top: 10px;
}

/* Mobile breakpoint */
@media (max-width: 860px) {
  .nav-in {
    align-items: center;
  }
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile.open {
    display: block;
  }
}

/* ===== Team photos ===== */
.team-photo {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f7fb;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ===== Team detail page responsive layout ===== */
.team-detail-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 26px;
  align-items: start;
}

/* Mobile: stack and center photo */
@media (max-width: 860px) {
  .team-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-detail-grid .card:first-child {
    display: flex;
    justify-content: center;
    padding: 16px;
  }

  .team-detail-grid .card:first-child img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 18px !important;
    object-fit: cover;
  }

  .team-photo img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
  }
}

/* ===== Team profile layout: image left, text right (desktop + mobile) ===== */
.team-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  margin-top: 14px;
}

/* Photo */
.team-profile-photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f4f7fb;
  height: 300px;
}
.team-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.team-profile-body h1 {
  margin: 10px 0 8px;
  font-size: 36px;
  line-height: 1.1;
}
.team-profile-body p {
  line-height: 1.8;
}

/* Mobile: keep left-right, just shrink image */
@media (max-width: 860px) {
  .team-profile {
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 14px;
  }
  .team-profile-photo {
    height: 160px;
    border-radius: 16px;
  }
  .team-profile-body h1 {
    font-size: 26px;
  }
}

/* Very small phones: still readable (optional stack at <380px) */
@media (max-width: 580px) {
  .team-profile {
    grid-template-columns: 1fr;
  }
  .team-profile-photo {
    height: 480px;
  }
}

/* ===== Contact page layout ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

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

.contact-card {
  padding: 18px;
}

.contact-head {
  margin-bottom: 14px;
}

/* Fields */
.field {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}

.contact-card textarea {
  min-height: 120px;
  resize: vertical;
}

/* Focus state */
.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 108, 255, 0.12);
}

/* Right info column */
.contact-info .info-block {
  margin-top: 14px;
  margin-bottom: 14px;
}

.contact-info .info-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.contact-info a {
  color: var(--brand);
  font-weight: 700;
}

.login-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  padding: 22px;
}

.login-error {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fff4f4;
  color: #b42318;
  font-size: 14px;
  border: 1px solid #ffd6d6;
}

.login-error a {
  color: #b42318;
  font-weight: 700;
}

/* Contact form – spacing before submit button */
.contact-card button[type="submit"],
.contact-card .btn {
  margin-top: 18px;
}
/* Extra spacing after textarea */
.contact-card textarea {
  margin-bottom: 6px;
}
/* Form buttons – add breathing space above */
form .btn,
form button[type="submit"] {
  margin-top: 18px;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.modal.show {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

@media (max-width: 640px) {
  .modal-card {
    margin: 10vh 14px 0;
  }
}
