:root {
  --bg: #050505; --card: #111; --text: #fff; --muted: #b8b8b8; --border: rgba(255,255,255,.08); --accent: #4f8dff;
}
body.light {
  --bg: #f7f7f8; --card: #fff; --text: #111; --muted: #666; --border: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Inter, sans-serif; background: var(--bg); color: var(--text); transition: .35s; }
body:before {
  content: ""; position: fixed; inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(79,141,255,.18), transparent 35%),
              radial-gradient(circle at 80% 30%, rgba(140,82,255,.16), transparent 35%);
  filter: blur(50px); z-index: -1;
}
nav {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 8%; backdrop-filter: blur(18px); background: rgba(20,20,20,.35); border-bottom: 1px solid var(--border);
  z-index: 100;
}
body.light nav { background: rgba(255,255,255,.6); }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { text-decoration: none; color: var(--text); }
button { border: none; background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border); }
.hero { min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.hero h1 { font-size: clamp(48px, 8vw, 88px); line-height: 1.05; font-weight: 800; }
.hero p { max-width: 700px; margin: 24px auto; color: var(--muted); font-size: 20px; }
.cta { display: inline-block; margin-top: 18px; padding: 16px 30px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
section { max-width: 1250px; margin: auto; padding: 90px 8%; }
h2 { font-size: 42px; text-align: center; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 28px; overflow: hidden;
  transition: .45s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.thumb { overflow: hidden; height: 260px; background: #222; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.card:hover img { transform: scale(1.1); }
.content { padding: 26px; }
.content h3 { font-size: 28px; margin-bottom: 10px; }
.content p { color: var(--muted); margin-bottom: 20px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
footer { text-align: center; padding: 50px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 50px; }
@media(max-width: 900px) { .grid { grid-template-columns: 1fr; } }