:root {
  --accent: #6d5efc;
  --accent-2: #9d6bff;
  --ink: #14161c;
  --muted: #5b6172;
  --bg: #f7f8fc;
  --card: #ffffff;
  --border: #e6e8f0;
  --radius: 16px;
  --max: 1080px;
  --shadow: 0 10px 30px rgba(20,22,28,.06);
  --shadow-hover: 0 18px 44px rgba(109,94,252,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,248,252,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* HERO */
.hero { color: #fff; background:
  radial-gradient(900px 420px at 72% -10%, rgba(157,107,255,.45), transparent 60%),
  linear-gradient(135deg, #15162b 0%, #241a4a 58%, #33205f 100%); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 110px 24px 120px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: #b9b2ff; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(120deg,#fff,#c9bfff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 620px; margin: 22px auto 36px; font-size: clamp(16px,2.4vw,19px); color: #c7c9da; }
.btn-primary { display: inline-block; background: linear-gradient(120deg,var(--accent),var(--accent-2)); color:#fff;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(109,94,252,.4);
  transition: transform .2s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(109,94,252,.55); }

/* PROJECTS */
.projects { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px,5vw,40px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column; min-height: 190px; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #cfc6ff; }
.card-top { margin-bottom: 14px; }
.card-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(109,94,252,.1); padding: 4px 12px; border-radius: 999px; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); margin-top: 8px; flex: 1; }
.card-link { margin-top: 18px; font-weight: 600; color: var(--accent); transition: transform .2s; }
.card:hover .card-link { transform: translateX(4px); }

/* ABOUT */
.about { border-top: 1px solid var(--border); }
.about-inner { max-width: 760px; margin: 0 auto; padding: 70px 24px; text-align: center; }
.about h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.about p { color: var(--muted); font-size: 17px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer p { max-width: var(--max); margin: 0 auto; padding: 28px 24px; color: var(--muted); font-size: 14px; text-align: center; }

/* RESPONSIVE */
@media (max-width: 540px) {
  .nav-links { gap: 18px; }
  .hero-inner { padding: 80px 20px 90px; }
  .projects { padding: 60px 20px; }
}
