:root {
  --bg: #071018;
  --bg-soft: #0d1823;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #a5b0bf;
  --accent: #7dd3fc;
  --accent-2: #9ef4d7;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(158, 244, 215, 0.08), transparent 22%),
    linear-gradient(180deg, #071018 0%, #0a1320 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 92px 0; }
.section.alt { background: rgba(255, 255, 255, 0.02); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glossy {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

/* ─── HEADER / NAV ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.23), rgba(158, 244, 215, 0.2));
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 0.98rem; }
.brand-text small { color: var(--muted); font-size: 0.73rem; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 500;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-button {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav-button.secondary { color: var(--text); }
.menu-toggle {
  display: none;
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.8rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow, .section-kicker {
  display: inline-block;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  margin: 0 0 1.1rem;
  max-width: 12ch;
}
.hero-text,
.section-heading p,
.contact-copy,
.service-card p,
.process-card p,
.founder-bio,
.stack-item p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: opacity 0.15s ease;
}
.button:hover { opacity: 0.88; }
.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018;
  border: none;
}
.button.ghost { background: rgba(255,255,255,0.04); }
.button.full { width: 100%; }
.button:disabled { opacity: 0.5; cursor: wait; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.metric-label { color: var(--muted); font-size: 0.88rem; }

.hero-panel { padding: 1.5rem; }
.panel-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.panel-stack { display: grid; gap: 1rem; }
.stack-item {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.stack-item h3,
.service-card h3,
.process-card h3 { margin: 0 0 0.4rem; }

/* ─── SECTION HEADINGS ───────────────────────────────────── */
.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
}

.service-hub-link {
  margin-top: 0.9rem;
}

.service-hub-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.service-hub-link a:hover {
  color: var(--accent-2);
}

/* ─── SERVICES ───────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.service-card,
.process-card { padding: 1.5rem; }
.service-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-2);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.service-card ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.service-link:hover {
  border-color: rgba(125, 211, 252, 0.55);
  color: var(--accent-2);
  transform: translateY(-1px);
}

/* ─── PROCESS ────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.process-card span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ─── FOUNDERS ───────────────────────────────────────────── */
.founders-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.founder-card {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 1.35rem;
  min-height: 260px;
  overflow: hidden;
}

.founder-avatar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 128px;
  height: 162px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-photo-abhi {
  object-position: center 34%;
}

.founder-photo-athan {
  object-position: center 26%;
}

.founder-photo-chris {
  object-position: center 30%;
}

.founder-photo-jacob {
  object-position: center 40%;
}

.founder-body {
  display: block;
  min-width: 0;
}

.founder-meta {
  padding-right: 144px;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.founder-heading {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
}

.founder-role {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.28;
  color: var(--accent-2);
  font-weight: 600;
}

.founder-bio {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.62;
}

.founder-socials {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.founder-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  background: rgba(255,255,255,0.02);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.founder-social-link:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 252, 0.5);
  transform: translateY(-1px);
}

.founder-social-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.founder-social-icon svg {
  width: 16px;
  height: 16px;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}
.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-list strong { font-size: 0.95rem; }
.contact-list span { color: var(--muted); }

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: rgba(125, 211, 252, 0.4); }

.form-status {
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--accent-2);
  margin: 0;
}
.form-status.error { color: #fc8181; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2.25rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}
.footer-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Assistant chat */
.ai-chat-shell {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.ai-chat-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #071018;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.ai-chat-panel {
  width: min(360px, calc(100vw - 1.5rem));
  max-height: min(68vh, 540px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 16, 24, 0.98);
  box-shadow: var(--shadow);
  display: none;
}
.ai-chat-panel.open {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.ai-chat-header {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ai-chat-header strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-chat-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.ai-chat-messages {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  overflow-y: auto;
  min-height: 160px;
}

.ai-msg {
  display: flex;
}
.ai-msg-user {
  justify-content: flex-end;
}

.ai-msg-bubble {
  max-width: 88%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.58rem 0.68rem;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ai-msg-bot .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.ai-msg-user .ai-msg-bubble {
  background: rgba(125, 211, 252, 0.19);
  color: #e7f9ff;
}

.ai-msg-typing .ai-msg-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ai-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: ai-dot 1s infinite ease-in-out;
}
.ai-msg-typing span:nth-child(2) { animation-delay: 0.12s; }
.ai-msg-typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes ai-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.ai-chat-status {
  margin: 0;
  min-height: 1.1rem;
  padding: 0 0.8rem 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.ai-chat-status.error {
  color: #fc8181;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}
.ai-chat-form input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  padding: 0.62rem 0.72rem;
  outline: none;
}
.ai-chat-form input:focus {
  border-color: rgba(125, 211, 252, 0.6);
}
.ai-chat-form button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 0.62rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.ai-chat-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .founders-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .process-grid { grid-template-columns: 1fr; }
  .service-grid  { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 920px) {
  .founders-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .founder-card {
    min-height: 0;
    overflow: visible;
    padding: 1rem;
  }

  .founder-avatar {
    position: relative;
    top: auto;
    right: auto;
    width: min(58vw, 240px);
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 14px;
    margin: 0 auto 0.86rem;
  }

  .founder-meta {
    padding-right: 0;
    min-height: 0;
    margin-bottom: 0.56rem;
    gap: 0.25rem;
  }

  .founder-heading { font-size: 1.06rem; }
  .founder-role { font-size: 0.8rem; line-height: 1.34; }
  .founder-bio { font-size: 0.96rem; line-height: 1.64; }
}

@media (max-width: 680px) {
  .founder-avatar {
    width: min(62vw, 220px);
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .founder-heading {
    font-size: 1.01rem;
  }

  .founder-role {
    font-size: 0.78rem;
  }

  .founder-bio {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .founder-social-link {
    font-size: 0.72rem;
    padding: 0.34rem 0.54rem;
  }

  .founder-social-icon,
  .founder-social-icon svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-metrics { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .ai-chat-shell { right: 10px; bottom: 10px; left: 10px; align-items: stretch; }
  .ai-chat-toggle { align-self: flex-end; }
  .ai-chat-panel { width: 100%; max-height: min(62vh, 460px); }
}

/* Label row: sits above the input, keeps label text + optional badge inline */
.label-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 600;
}

/* "(optional)" badge — deliberately muted and lighter than label text */
.field-optional {
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  opacity: 0.7;
  letter-spacing: 0.01em;
}
