/* Root variables for dark theme */
:root {
  --bg: #0e0f14;
  --surface: #151823;
  --text: #e8e9ee;
  --muted: #b7bbcc;
  --brand: #6d8bff;
  --brand-2: #7ee787;
  --card: #11131c;
  --border: #252a3a;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Light theme variables */
html[data-theme="light"] {
  --bg: #fcfcfe;
  --surface: #ffffff;
  --text: #0f1324;
  --muted: #5b6072;
  --brand: #3b63ff;
  --brand-2: #1db954;
  --card: #ffffff;
  --border: #e9ebf3;
  --shadow: 0 10px 30px rgba(18, 25, 58, .08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(109,139,255,.10), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(29,185,84,.10), transparent 50%),
              var(--bg);
  line-height: 1.6;
}

/* Utilities */
.container { width: min(1120px, 92%); margin: 0 auto; }
.accent { color: var(--brand); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; font-size: .8rem; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); text-decoration: none; }
.section { padding: 96px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(0,0,0,.02)); }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 2rem; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 auto; max-width: 720px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display:flex; align-items:center; gap:10px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display:grid; place-items:center; color:#fff; font-weight: 800;
  box-shadow: var(--shadow);
}
.brand-text { font-weight: 700; letter-spacing: .02em; }

/* Nav */
.nav-toggle { display:none; background:none; border:0; cursor:pointer; }
.nav-toggle .bar { display:block; width:22px; height:2px; background:var(--text); margin:4px 0; }
.nav-list { display:flex; gap: 20px; list-style:none; padding:0; margin:0; align-items:center; }
.nav-list a { color: var(--text); text-decoration:none; font-weight:600; }
.nav-list a:hover { color: var(--brand); }
.theme-toggle { border:1px solid var(--border); background:var(--surface); color:var(--text); border-radius: 12px; padding: 8px 10px; cursor:pointer; }

/* Hero */
.hero { padding: 72px 0 24px; position:relative; }
.hero-grid { display:grid; grid-template-columns: 1.2fr .8fr; align-items:center; gap: 44px; }
.hero-copy h1 { font-size: clamp(2rem, 1.3rem + 2.5vw, 3rem); line-height:1.15; margin: 10px 0 12px; }
.cta-row { display:flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.hero-highlights { display:flex; gap: 14px; padding:0; margin:16px 0 0; list-style:none; color:var(--muted); flex-wrap: wrap; }
.hero-highlights li { border:1px solid var(--border); border-radius: 999px; padding: 8px 12px; background: var(--surface); }

.hero-photo { position:relative; }
.hero-photo img {
  width:100%; height:auto; display:block; border-radius: 22px;
  border:1px solid var(--border); box-shadow: var(--shadow); object-fit: cover;
}
.photo-badge {
  position:absolute; bottom: -12px; left: 12px; font-weight: 800;
  background: var(--surface); border:1px solid var(--border); padding: 10px 14px; border-radius: 12px;
}

/* Buttons */
.btn {
  display:inline-block; text-decoration:none; font-weight:700; border-radius:14px; padding:12px 16px;
  border: 1px solid var(--border);
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border:0; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn:hover { transform: translateY(-1px); transition: transform .18s ease; }

/* Cards */
.cards { display:grid; gap:18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; }
.icon-card .icon { font-size: 28px; width: 40px; height: 40px; display:grid; place-items:center; border-radius: 12px;
  background: color-mix(in oklab, var(--brand) 20%, transparent);
  border: 1px solid var(--border); margin-bottom: 8px;
}

/* Philosophy */
.philosophy-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.pill-list { display:flex; flex-wrap:wrap; gap:10px; }
.pill { background: var(--surface); border:1px solid var(--border); border-radius:999px; padding:8px 12px; font-weight:600; }
.big-copy { font-size: 1.05rem; color: var(--muted); }

/* Values */
.values-list { display:grid; gap:16px; grid-template-columns: repeat(3, 1fr); padding:0; list-style:none; }
.value { background: var(--card); border:1px solid var(--border); border-radius: 16px; padding: 18px; }

/* Contact */
.contact-card {
  text-align:center; background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 16%, transparent), transparent);
  border:1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: var(--shadow);
}
.contact-card p { margin-top: 0; }

/* Footer */
.site-footer { border-top:1px solid var(--border); padding: 32px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; }
.footer-inner a { color: var(--muted); }

/* Decorative blob */
.shape-blob {
  position:absolute; inset: -120px auto auto -120px;
  width: 360px; height: 360px; filter: blur(60px);
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--brand) 65%, transparent), transparent 60%),
              radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--brand-2) 55%, transparent), transparent 60%);
  opacity: .35; pointer-events:none;
}

/* Error page */
.error-page { display:grid; min-height:100dvh; place-items:center; }
.error-wrap { text-align:center; }
.error-wrap h1 { font-size: 6rem; margin: 0 0 6px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 10px; }
}

@media (max-width: 760px) {
  .nav-toggle { display:block; }
  .nav-list {
    position: absolute; top: 60px; right: 4%; left: 4%;
    background: var(--surface); border:1px solid var(--border);
    border-radius: 14px; padding: 14px; flex-direction: column; gap: 12px;
    display: none;
  }
  .nav-list.open { display:flex; }
}