:root {
  --bg: #0a0911;
  --bg-elev: rgba(18, 17, 29, 0.84);
  --bg-soft: #171625;
  --line: #2a2840;
  --text: #ece9f6;
  --muted: #b7b2c9;
  --teal: #7ee7df;
  --indigo: #7f7cff;
  --glow: rgba(126, 231, 223, 0.16);
  --glow-strong: rgba(127, 124, 255, 0.18);
  --max: 1120px;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(127, 124, 255, 0.08), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(126, 231, 223, 0.06), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: #b7fffa; }
img { max-width: 100%; display: block; }
code {
  font-family: Consolas, monospace;
  background: rgba(255,255,255,0.06);
  padding: .12rem .35rem;
  border-radius: 6px;
}
.container { width: min(var(--max), 92%); margin: 0 auto; }
.mist-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.site-shell { position: relative; z-index: 1; }
.mist {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .18; will-change: transform, opacity;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 30% 30%, rgba(170,255,245,.20) 0%, rgba(126,231,223,.14) 18%, rgba(127,124,255,.12) 42%, rgba(127,124,255,0) 72%);
}
.mist-1 { width: 52vw; height: 52vw; top: -12vh; left: -10vw; animation: mistDriftOne 26s ease-in-out infinite alternate; }
.mist-2 { width: 46vw; height: 46vw; top: 8vh; right: -12vw; animation: mistDriftTwo 34s ease-in-out infinite alternate; }
.mist-3 { width: 58vw; height: 58vw; bottom: -20vh; left: 18vw; animation: mistDriftThree 38s ease-in-out infinite alternate; }
.mist-4 { width: 40vw; height: 40vw; bottom: 10vh; right: 10vw; opacity: .12; animation: mistDriftFour 30s ease-in-out infinite alternate; }
.mist-grain {
  position: absolute; inset: -20%; opacity: .05;
  background-image: radial-gradient(rgba(255,255,255,.22) .7px, transparent .7px);
  background-size: 22px 22px; filter: blur(1px); animation: grainFloat 16s linear infinite;
}
.site-header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
  background: rgba(10,9,17,.72); border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; padding: 1rem 0; }
.site-title { display: inline-block; font-size: 1.4rem; font-weight: 800; letter-spacing: .04em; color: #fff; }
.site-tagline { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-nav a { color: var(--text); font-weight: 600; }
.site-nav a:hover { color: var(--teal); }
.site-main { padding: 3rem 0 4rem; }
.hero { padding: 3.5rem 0 2rem; }
.hero-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)), rgba(18,17,29,.78);
  border: 1px solid var(--line); border-radius: 24px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); backdrop-filter: blur(10px);
}
.eyebrow {
  display: inline-block; margin-bottom: .8rem; padding: .35rem .7rem; border: 1px solid rgba(126,231,223,.25); border-radius: 999px;
  color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--glow);
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; margin: 0 0 1rem; }
.hero p, .page-header p, .section-intro, .card p, .feature-item, .footer-note { color: var(--muted); }
.hero p { font-size: 1.05rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.button, .button-secondary { display: inline-block; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 700; transition: .18s ease; }
.button { background: linear-gradient(135deg, var(--teal), #9fdcff); color: #091018; }
.button:hover { transform: translateY(-1px); color: #091018; }
.button-secondary { border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); }
.button-secondary:hover { border-color: var(--indigo); box-shadow: 0 0 0 4px var(--glow-strong); }
.hero-panel {
  min-height: 320px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, rgba(170,255,245,.12), transparent 18%), radial-gradient(circle at 50% 50%, rgba(127,124,255,.14), transparent 38%), linear-gradient(180deg, rgba(21,20,36,.92), rgba(15,14,25,.88));
  position: relative; overflow: hidden;
}
.hero-panel::before {
  content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, rgba(126,231,223,0), rgba(126,231,223,.10), rgba(127,124,255,0), rgba(127,124,255,.14), rgba(126,231,223,0));
  filter: blur(28px); animation: vortexSpin 18s linear infinite;
}
.hero-panel::after {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(170,255,245,.18) 0%, rgba(127,124,255,.12) 30%, rgba(127,124,255,0) 70%);
  filter: blur(18px);
}
.section { margin-top: 3rem; }
.section h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.section-intro, .page-header p { max-width: 65ch; }
.card-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .feature-item, .project-card, .callout, .single-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px);
}
.card { padding: 1.2rem; }
.card h3, .project-body h3 { margin-top: 0; margin-bottom: .6rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.feature-item { padding: 1.1rem 1.2rem; }
.feature-item strong { display: block; margin-bottom: .35rem; color: var(--text); }
.callout, .single-card { margin-top: 2rem; padding: 1.25rem; }
.callout { background: linear-gradient(180deg, rgba(127,124,255,.08), rgba(126,231,223,.05)), var(--bg-elev); }
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 1.2rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: .4rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.project-card { overflow: hidden; }
.project-thumb-image {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); background: #151424;
}
.project-body { padding: 1rem 1.1rem 1.2rem; }
@keyframes mistDriftOne {
  0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: .15; }
  50% { transform: translate(6vw,3vh) scale(1.08) rotate(7deg); opacity: .24; }
  100% { transform: translate(12vw,-2vh) scale(.95) rotate(14deg); opacity: .16; }
}
@keyframes mistDriftTwo {
  0% { transform: translate(0,0) scale(1.04) rotate(0deg); opacity: .12; }
  50% { transform: translate(-8vw,5vh) scale(.96) rotate(-10deg); opacity: .20; }
  100% { transform: translate(-14vw,-3vh) scale(1.08) rotate(-16deg); opacity: .14; }
}
@keyframes mistDriftThree {
  0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: .10; }
  50% { transform: translate(-5vw,-4vh) scale(1.10) rotate(6deg); opacity: .18; }
  100% { transform: translate(8vw,-10vh) scale(.92) rotate(13deg); opacity: .12; }
}
@keyframes mistDriftFour {
  0% { transform: translate(0,0) scale(1) rotate(0deg); opacity: .08; }
  50% { transform: translate(4vw,-2vh) scale(1.06) rotate(-6deg); opacity: .14; }
  100% { transform: translate(-6vw,5vh) scale(.94) rotate(-12deg); opacity: .10; }
}
@keyframes grainFloat { 0% { transform: translate(0,0); } 100% { transform: translate(-20px,14px); } }
@keyframes vortexSpin { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(360deg) scale(1.04); } }
@media (max-width: 900px) {
  .hero-card, .card-grid, .feature-list, .project-grid { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .mist, .mist-grain, .hero-panel::before { animation: none !important; }
}
