/* Base Theme */
:root {
  --bg: #0b0f17;
  --bg-elev: rgba(255, 255, 255, 0.06);
  --text: #e6e9ee;
  --muted: #a6adbb;
  --brand: #6aa3ff;
  --brand-2: #9b7dff;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.light {
  --bg: #f7f9fc;
  --bg-elev: rgba(0, 0, 0, 0.05);
  --text: #111827;
  --muted: #4b5563;
  --brand: #325cff;
  --brand-2: #8a5cff;
  --border: rgba(0,0,0,0.12);
  --shadow: 0 10px 25px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 80px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.03) 40%, transparent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(12px); background: rgba(10, 14, 22, 0.65); border-bottom: 1px solid var(--border); }
.light .site-header { background: rgba(255, 255, 255, 0.6); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.5px; font-size: 1.1rem; }
.nav { position: relative; }
.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; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; opacity: 0.9; }
.nav-list a:hover { opacity: 1; color: var(--brand); }

.theme-toggle { border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); padding: 8px 10px; border-radius: 10px; cursor: pointer; box-shadow: var(--shadow); }
.theme-toggle:hover { transform: translateY(-1px); }

/* Hero */
.hero { min-height: 88vh; display: grid; align-items: center; overflow: hidden; }
.hero-inner { position: relative; }
.hero-copy { padding: 34px; border-radius: 18px; }
.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-size: 0.8rem; margin: 0 0 6px; }
.hero-title { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.1; margin: 0 0 8px; }
.hero-subtitle { font-size: clamp(1.1rem, 3.2vw, 1.4rem); color: var(--muted); margin: 0 0 14px; }
.hero-intro { max-width: 64ch; margin: 0 0 18px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.bg-gradient { position: absolute; inset: -10%; background: radial-gradient(60% 60% at 20% 20%, rgba(106,163,255,0.35), transparent 60%), radial-gradient(60% 60% at 80% 30%, rgba(155,125,255,0.35), transparent 60%); filter: blur(40px); z-index: -1; }

/* Utilities */
.glass { background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.bullets { padding-left: 18px; }
.bullets li { margin: 6px 0; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--bg-elev); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border: none; }
.btn.outline { background: transparent; }
.btn.ghost { background: transparent; opacity: 0.9; }
.btn.small { padding: 8px 12px; font-size: 0.9rem; }

/* Chips */
.chips-group { margin: 18px 0 28px; }
.chips-title { margin: 0 0 10px; font-size: 1.05rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--bg-elev); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 18px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,0.35); }
.card .tech { color: var(--muted); font-size: 0.95rem; }

/* Timeline */
.timeline { position: relative; margin: 24px 0; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 36px; margin-bottom: 18px; }
.timeline-item .dot { position: absolute; left: 2px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 4px rgba(106,163,255,0.15); }
.timeline-item .content { padding: 14px; border-radius: 12px; }
.timeline .time { display: inline-block; margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

/* Forms */
.form { padding: 18px; border-radius: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.error { color: #ff6b6b; min-height: 18px; }
.form-status { margin-left: 10px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 8px; }

/* Footer */
.site-footer { padding: 26px 0 40px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list { position: absolute; right: 0; top: 48px; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); padding: 12px; border-radius: 12px; display: none; min-width: 180px; }
  .nav-list.open { display: flex; }
  .cards { grid-template-columns: 1fr; }
}

