:root {
  --bg: #0b1020;
  --bg-alt: #10162c;
  --card: #151d38;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --brand: #6c8cff;
  --brand2: #59d3c4;
  --border: #24304f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #0f1730;
  --muted: #5a6683;
  --brand: #3b5bff;
  --brand2: #0fb5a3;
  --border: #e4e9f2;
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { font-weight: 800; font-size: 20px; color: var(--text); }
.brand span { color: var(--brand); }
.nav nav { margin-left: auto; display: flex; gap: 20px; }
.nav nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav a.active { color: var(--text); border-bottom-color: var(--brand); }
.theme-toggle {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  border-radius: 10px; width: 40px; height: 38px; cursor: pointer; font-size: 16px;
}

/* HERO */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--brand2); font-weight: 700; margin: 0 0 10px;
}
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; }
.grad {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--muted); max-width: 620px; }
.lede.center { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.primary { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { border: 1px solid var(--border); color: var(--text); background: var(--card); }
.hero-glow {
  position: absolute; top: -120px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(108,140,255,0.35), transparent 60%);
  filter: blur(30px); z-index: 1;
}

/* SECTIONS */
.section { padding: 66px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 28px; margin: 0 0 26px; position: relative; padding-bottom: 10px; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 3px;
}

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.facts li {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-weight: 600;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.project-top {
  font-size: 30px; width: 60px; height: 60px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(108,140,255,.2), rgba(89,211,196,.2));
  border-radius: 14px; margin-bottom: 12px;
}
.project h3 { margin: 0 0 8px; font-size: 18px; }
.project p { color: var(--muted); margin: 0 0 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 12px; font-weight: 700; color: var(--brand2);
  background: color-mix(in srgb, var(--brand2) 14%, transparent);
  padding: 4px 10px; border-radius: 999px;
}

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips span {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 15px;
}

.contact-inner { text-align: center; }

/* Page header for sub-pages */
.page-head { padding: 60px 0 10px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 0; }

/* Clickable cards on the home page */
.link-card { display: block; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.link-card:hover { transform: translateY(-4px); border-color: var(--brand); text-decoration: none; }
.link-card h3 { margin: 0 0 8px; font-size: 18px; }
.link-card p { color: var(--muted); margin: 0 0 12px; }
.link-card .more { color: var(--brand); font-weight: 700; font-size: 14px; }

.footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 14px; }
}
