:root {
  --bg: #08080d;
  --bg-alt: #0f0f18;
  --surface: #14141f;
  --surface-border: #24242f;
  --text: #f2f2f6;
  --text-dim: #a4a4b3;
  --text-faint: #6c6c7c;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius: 14px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: var(--text-dim); margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 96px;
  height: 64px;
  border-radius: 8px;
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139,92,246,0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  max-width: 780px;
}

.hero-sub {
  font-size: 18px;
  max-width: 600px;
  color: var(--text-dim);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient);
  color: #08080d;
}

.btn-ghost {
  border: 1px solid var(--surface-border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent-1); }

/* Approach */
.approach { padding: 80px 0; border-top: 1px solid var(--surface-border); }

.approach h2 { font-size: 28px; margin-bottom: 40px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
}

.pillar-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; margin: 0; }

/* Projects */
.projects { padding: 80px 0 100px; border-top: 1px solid var(--surface-border); }

.projects h2 { font-size: 28px; margin-bottom: 8px; }

.section-sub { margin-bottom: 40px; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.project-card.featured {
  border-image: var(--gradient) 1;
  position: relative;
}

.project-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.project-card-head h3 { margin: 0; font-size: 22px; }

.badge {
  background: rgba(34,211,238,0.12);
  color: var(--accent-2);
  border: 1px solid rgba(34,211,238,0.3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.project-tagline {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
}

.project-desc { font-size: 14.5px; }

.project-sub-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.project-sub-list li { margin-bottom: 6px; }
.project-sub-list strong { color: var(--text); }

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.project-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.project-links a:hover { text-decoration: underline; }

.project-card.next-up {
  border-style: dashed;
  color: var(--text-faint);
}

.project-card.next-up h3 {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.project-card.next-up p {
  font-size: 14px;
  margin: 0;
  color: var(--text-faint);
}

/* Contact */
.contact {
  padding: 80px 0 100px;
  border-top: 1px solid var(--surface-border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-intro h2 { font-size: 28px; margin-bottom: 12px; }
.contact-intro p { font-size: 15px; }

.contact-direct {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 20px;
}

.contact-direct a {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.form-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 16px 0 0;
  font-size: 14px;
  min-height: 20px;
  color: var(--text-dim);
}

.form-status.success { color: #34d399; }
.form-status.error { color: #f87171; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  margin-bottom: 8px;
}

.footer-name { font-weight: 700; margin: 0; font-size: 14px; }

.footer-contact a {
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-contact a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav { gap: 18px; }
  .pillars { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 60px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
}
