:root{
  --bg: #070A12;
  --bg2:#0B1020;
  --text:#E9EEFF;
  --muted:#A7B0D6;
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --accent: #7C5CFF;
  --accent2:#24D3EE;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,0.25), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(36,211,238,0.18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.container{
  width:min(1040px, calc(100% - 40px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(12px);
  background: rgba(7,10,18,0.55);
  border-bottom: 1px solid var(--border);
  z-index:10;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.brand-dot{
  width:12px;height:12px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.nav{
  display:flex;
  gap:18px;
  color:var(--muted);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:22px;
  padding:34px 0 10px;
}
.kicker{
  color: var(--muted);
  font-size:12px;
  letter-spacing:0.14em;
}
h1{
  font-size: clamp(32px, 4vw, 46px);
  margin:0 0 12px;
}
.lead{
  color:var(--muted);
  font-size:18px;
}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight:700;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#070A12;
  border:none;
}
/* Fix hero button + pill alignment */
.cta-row{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin: 14px 0 0;
}

.meta-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px; /* <-- key: space under buttons */
}

.pill{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding:7px 10px;
  border-radius:999px;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
  line-height: 1; /* <-- keeps pill height consistent */
}


/* Posts */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius:18px;
  padding:16px;
}

/* Note */
.note{
  margin-top:14px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  border-radius:16px;
  padding:12px 14px;
  color:var(--muted);
}

/* About */
.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.about-card{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius:18px;
  padding:16px;
}

/* Footer */
.footer{
  padding:26px 0 40px;
  border-top:1px solid rgba(255,255,255,0.10);
  margin-top:26px;
}

/* Responsive */
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:1fr; }
  .about{ grid-template-columns:1fr; }
}
/* --- Polish pack --- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.hero-left { max-width: 620px; }
h1 { letter-spacing: -0.02em; }
.lead { max-width: 58ch; }

.cta-row { gap: 10px; align-items: center; }
.btn { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); }
.btn:focus-visible{
  outline: 2px solid rgba(124,92,255,0.55);
  outline-offset: 3px;
}

/* Make links feel premium */
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Cards: consistent height + better click feel */
.card{
  display:flex;
  flex-direction:column;
  min-height: 210px;
}
.card-desc{ flex:1; }
.card:hover{
  border-color: rgba(255,255,255,0.22);
}

/* Subtle section separators */
.section{
  padding: 42px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.section:first-of-type{ border-top:none; }

/* Nav polish */
.nav a{
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{
  color: var(--text);
}

/* Slightly reduce glow intensity for cleaner look */
.bg-glow{ opacity: 0.8; }

/* Better spacing for pills */
.meta-row{ gap: 8px; }
.pill{ padding: 6px 10px; }

/* Improve the right panel readability */
.panel-list li{ line-height: 1.4; }

/* Mobile: keep CTA from wrapping weird */
@media (max-width: 520px){
  .cta-row{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; }
}
