:root{
  --brand: {{ with .Site.Params.primary_color }}{{ . }}{{ else }}#0dd4ff{{ end }};
  --ink: {{ with .Site.Params.dark_ink }}{{ . }}{{ else }}#0b1220{{ end }};
  --bg: #ffffff;
  --muted: #64748b;
  --card: #0b1220;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial; color:var(--ink); background:var(--bg); line-height:1.6}

.container{max-width:1100px;margin:0 auto;padding:0 20px}
a{color:var(--brand);text-decoration:none}
h1,h2,h3{line-height:1.2;margin:0 0 .6rem}
h1{font-size:clamp(2rem,4vw,3rem)}
h2{font-size:clamp(1.6rem,3vw,2rem); margin:2.2rem 0 1rem}
h3{font-size:1.25rem}

.site-header{position:sticky;top:0;background:rgba(255,255,255,.8);backdrop-filter:saturate(180%) blur(8px);z-index:10;border-bottom:1px solid rgba(12,22,38,.08);transition:box-shadow .2s ease}
.site-header.scrolled{box-shadow:0 10px 30px rgba(13,212,255,.15)}
.site-header .nav{display:flex;align-items:center;justify-content:space-between;padding:.8rem 0}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);font-weight:700}
.brand img{height:32px;width:auto}
nav a{margin-left:1rem;color:var(--ink);opacity:.8}
nav a.active, nav a:hover{opacity:1;color:var(--brand)}

.hero{background:radial-gradient(1200px 600px at 80% -10%, rgba(13,212,255,.18), transparent), linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); padding:3rem 0 2rem;border-bottom:1px solid rgba(12,22,38,.06)}
.hero-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;align-items:center}
.hero-text p{color:var(--muted);max-width:50ch}
.btn{display:inline-block;padding:.8rem 1.1rem;border-radius:999px;border:1px solid transparent;transition:transform .15s ease, box-shadow .15s ease}
.btn-primary{background:var(--brand); color:#0b1220; box-shadow:0 10px 25px rgba(13,212,255,.35)}
.btn-primary:hover{transform:translateY(-1px); color: #0b1220;background: #76efff;box-shadow:0 16px 40px rgba(13,212,255,.45)}
.btn-ghost{border-color:rgba(12,22,38,.15); color:var(--ink)}
.hero-art{position:relative;height:260px}
.orb{position:absolute;border-radius:50%;filter:blur(8px);opacity:.9}
.orb1{width:180px;height:180px;background:radial-gradient(circle at 30% 30%, #fff, var(--brand));top:10%;left:10%}
.orb2{width:110px;height:110px;background:radial-gradient(circle at 50% 50%, #fff, #76efff);top:40%;left:45%}
.orb3{width:90px;height:90px;background:radial-gradient(circle at 50% 50%, #fff, #86f2ff);top:5%;left:70%}

.cards{padding:2rem 0}
.cards.alt{background:#f7fbff;border-top:1px solid rgba(12,22,38,.06);border-bottom:1px solid rgba(12,22,38,.06)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.card{display:block;padding:1.2rem;border-radius:16px;background:#0f172a;color:#e5faff;box-shadow:0 10px 25px rgba(13,212,255,.15);transition:transform .15s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(13,212,255,.25)}
.card h3{margin:0 0 .4rem}
.card p{margin:0 0 .6rem;color:#cff6ff}
.card .arrow{font-weight:700}

.page-header{margin:2rem 0 1rem}
.lead{color:var(--muted);max-width:65ch}

.cases{padding:2rem 0}
.case-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.case{display:block;border-radius:16px;overflow:hidden;background:#0f172a;color:#e5faff;box-shadow:0 10px 25px rgba(13,212,255,.15);transition:transform .15s ease, box-shadow .15s ease}
.case:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(13,212,255,.25)}
.case img{display:block;width:100%;height:160px;object-fit:cover}
.case-body{padding:1rem}
.case-body p{color:#cff6ff}

.prose h1{margin:1.2rem 0}
.prose p, .prose li{max-width:72ch}
.prose ul{padding-left:1.2rem}
.prose code{background:#f1f5f9;padding:.1rem .3rem;border-radius:4px}

.site-footer{background:linear-gradient(0deg,#f8fbff, #fff);border-top:1px solid rgba(12,22,38,.08);margin-top:3rem}
.site-footer .grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem;align-items:center}
.site-footer .copy{margin:1.2rem 0 0;color:var(--muted);font-size:.9rem}

form label{display:block;margin:.6rem 0 .2rem}
input, textarea{width:100%;padding:.7rem;border:1px solid rgba(12,22,38,.15);border-radius:10px;font:inherit}
button{font:inherit}
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
  .site-footer .grid{grid-template-columns:1fr}
}
