:root {
  --bg: #111117;
  --bg2: #18181f;
  --bg3: #1e1e27;
  --card: #15151c;
  --border: #26263a;
  --border2: #32324a;
  --p: #6d5efc;
  --p2: #8b7ffd;
  --p3: #b3acfe;
  --white: #f4f3ff;
  --gray: #8e8ea8;
  --gray2: #5a5a72;
  --success: #4ade80;
  --f: "Outfit", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(109, 94, 252, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; max-width: 100%; }

.site-main { position: relative; z-index: 1; min-height: 60vh; padding-top: 64px; }
.wrap { position: relative; z-index: 1; padding: 72px clamp(20px, 5vw, 80px); }
.wrap-inner { max-width: 1140px; margin: 0 auto; }
.wrap-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  background: rgba(17, 17, 23, .86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(38, 38, 58, .78);
}
.nav-logo img { height: 34px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block;
  padding: 7px 15px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: 8px;
  transition: color .2s, background .2s, transform .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); background: var(--bg3); }
.nav-cta {
  background: var(--p);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(109, 94, 252, .3);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--p) !important; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.burger span { width: 22px; height: 1.5px; background: var(--gray); border-radius: 2px; display: block; }

.hero { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 32px clamp(20px, 5vw, 80px) 72px; }
.hero-grid { max-width: 1140px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--p3); background: rgba(109, 94, 252, .08);
  border: 1px solid rgba(109, 94, 252, .22); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 22px;
}
.eyebrow-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s ease-in-out infinite; }
.hero-name { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 10px; }
.hero-title { font-family: var(--mono); font-size: .88rem; color: var(--p2); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero-title::before { content: "//"; color: var(--gray2); }
.hero-desc { font-size: .95rem; color: var(--gray); line-height: 1.8; max-width: 560px; margin-bottom: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.htag, .atag {
  font-family: var(--mono); font-size: .68rem; padding: 5px 12px;
  border-radius: 999px; background: var(--bg3); border: 1px solid var(--border); color: var(--gray);
}
.htag:hover { border-color: var(--p); color: var(--p2); background: rgba(109, 94, 252, .07); }
.hero-btns, .hero-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-socials { margin-top: 28px; gap: 10px; }
.btn-fill, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 10px; font-weight: 700; font-size: .88rem;
  transition: transform .2s, box-shadow .2s, border-color .2s, color .2s, background .2s;
}
.btn-fill { padding: 12px 28px; background: var(--p); color: #fff; box-shadow: 0 4px 24px rgba(109, 94, 252, .35); }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(109, 94, 252, .45); color: #fff; }
.btn-ghost { padding: 12px 24px; border: 1px solid var(--border2); color: var(--gray); }
.btn-ghost:hover { border-color: var(--p); color: var(--p2); }
.soc, .fsoc {
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .65rem; font-weight: 500; color: var(--gray);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.soc:hover, .fsoc:hover { border-color: var(--p); color: var(--p2); background: rgba(109, 94, 252, .07); transform: translateY(-2px); }

.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; position: relative; }
.profile-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--p), var(--p2), transparent); }
.profile-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.profile-info { padding: 20px; border-top: 1px solid var(--border); }
.profile-name { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.profile-role { font-family: var(--mono); font-size: .7rem; color: var(--p2); margin-bottom: 14px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ps { background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; padding: 10px 8px; text-align: center; }
.ps-n { font-family: var(--mono); font-size: 1.15rem; color: var(--p2); }
.ps-l { font-size: .62rem; color: var(--gray2); margin-top: 2px; }
.profile-available { display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(74, 222, 128, .07); border: 1px solid rgba(74, 222, 128, .2); border-radius: 8px; padding: 9px; font-size: .75rem; color: var(--success); }

.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1140px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 0 auto 72px; }
.sband { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); background: var(--card); }
.sband:last-child { border-right: none; }
.sband-n { font-size: 1.8rem; font-weight: 800; color: var(--p2); font-family: var(--mono); }
.sband-l { font-size: .75rem; color: var(--gray); margin-top: 4px; }

.sec-label { font-family: var(--mono); font-size: .68rem; font-weight: 500; color: var(--p2); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sec-label::before { content: "--"; color: var(--border2); }
.sec-title { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.sec-sub { font-size: .88rem; color: var(--gray); max-width: 560px; margin-bottom: 40px; }
.services-grid, .testi-grid, .articles-grid { display: grid; gap: 14px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.svc, .sk, .acard, .tcard, .sidebar-widget, .content-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
}
.svc { padding: 28px 24px; position: relative; overflow: hidden; }
.svc:hover, .sk:hover, .acard:hover, .tcard:hover, .content-card:hover { border-color: rgba(109, 94, 252, .45); transform: translateY(-3px); }
.svc-num { font-family: var(--mono); font-size: .65rem; color: var(--gray2); margin-bottom: 16px; }
.svc-icon { font-size: 1.8rem; margin-bottom: 14px; }
.svc-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.svc-desc, .card-desc { font-size: .82rem; color: var(--gray); line-height: 1.7; }
.sk { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sk-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: rgba(109, 94, 252, .12); }
.sk-label { font-size: .8rem; font-weight: 600; }
.sk-sub { font-size: .68rem; color: var(--gray2); margin-top: 1px; }

.acard { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.acard:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.acard-img { height: 170px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #1a1520, #201a30); }
.acard-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21, 21, 28, .97) 100%); }
.acard-badge, .acard-time { position: absolute; z-index: 2; font-family: var(--mono); font-size: .62rem; }
.acard-badge { top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(109, 94, 252, .15); border: 1px solid rgba(109, 94, 252, .3); color: var(--p3); text-transform: uppercase; }
.acard-time { bottom: 12px; right: 12px; color: var(--gray); }
.acard-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.acard-date { font-size: .7rem; color: var(--gray2); margin-bottom: 8px; }
.acard-title { font-size: .95rem; font-weight: 700; line-height: 1.45; margin: 0 0 12px; }
.acard-summary { color: var(--gray); font-size: .82rem; line-height: 1.7; margin-bottom: 16px; }
.acard-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.acard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.acard-arrow { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gray2); }

.page-hero { padding: 64px clamp(20px, 5vw, 80px) 34px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(109, 94, 252, .07), transparent); }
.page-hero-inner { max-width: 1140px; margin: 0 auto; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; }
.page-desc { color: var(--gray); max-width: 680px; margin: 0; }

.sidebar-widget { padding: 20px; margin-bottom: 18px; }
.sidebar-title { font-size: .75rem; color: var(--gray2); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.sidebar-author { text-align: center; }
.sidebar-author img { width: 82px; height: 82px; object-fit: cover; border-radius: 50%; border: 3px solid var(--p); margin: 0 auto 14px; }
.sidebar-post { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.sidebar-post img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.sidebar-post-title { font-size: .82rem; font-weight: 700; line-height: 1.35; margin: 0 0 4px; }
.sidebar-post-date { font-family: var(--mono); font-size: .62rem; color: var(--gray2); }
.sidebar-socials { display: grid; gap: 8px; }
.sidebar-socials a { border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; color: var(--gray); font-size: .84rem; }
.sidebar-socials a:hover { border-color: var(--p); color: var(--p2); }

.article-shell { padding: 56px clamp(20px, 5vw, 80px); }
.article-cover { max-width: 960px; margin: 0 auto 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-header { max-width: 850px; margin: 0 auto 28px; text-align: center; }
.article-title { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 16px 0; }
.article-meta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--gray); font-size: .82rem; }
.article-content { max-width: 800px; color: #d8d7e8; }
.article-content h2, .article-content h3 { color: var(--white); font-weight: 800; margin: 36px 0 12px; }
.article-content p, .article-content li { color: #d5d3e7; }
.article-content a { color: var(--p3); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 3px solid var(--p); background: rgba(109, 94, 252, .08); color: var(--p3); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.article-content pre { background: #0d0d13; color: #f2f2ff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; overflow: auto; }
.article-content .ao-image { border-radius: 14px; border: 1px solid var(--border); margin: 20px 0; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--gray); padding: 6px 12px; }
.tag-pill:hover { border-color: var(--p); color: var(--p2); }

.nl-box, .cta-band { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 44px; position: relative; overflow: hidden; }
.nl-box { text-align: center; }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.nl-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; color: var(--white); outline: none; }
.nl-input:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(109, 94, 252, .12); }
.nl-btn { padding: 12px 24px; border: 0; border-radius: 10px; background: var(--p); color: #fff; font-weight: 700; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; font-weight: 600; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 16px 20px 18px; border-top: 1px solid var(--border); color: var(--gray); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(109, 94, 252, .12), rgba(139, 127, 253, .06)); }

.site-footer { position: relative; z-index: 1; background: var(--bg2); border-top: 1px solid var(--border); padding: 56px clamp(20px, 5vw, 80px) 28px; }
.footer-inner { max-width: 1140px; margin: 0 auto 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-logo img { height: 30px; width: auto; margin-bottom: 14px; }
.footer-desc { font-size: .82rem; color: var(--gray); line-height: 1.75; max-width: 260px; }
.footer-socs { display: flex; gap: 8px; margin-top: 18px; }
.footer-col h5 { font-size: .7rem; font-weight: 600; color: var(--gray2); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col a { font-size: .83rem; color: var(--gray); }
.footer-col a:hover { color: var(--p2); }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: .68rem; color: var(--gray2); }

#top { position: fixed; bottom: 24px; right: 24px; z-index: 1100; width: 40px; height: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray); opacity: 0; pointer-events: none; transition: opacity .25s, border-color .2s, color .2s, transform .2s; }
#top.show { opacity: 1; pointer-events: auto; }
#top:hover { border-color: var(--p); color: var(--p2); transform: translateY(-2px); }
.reveal { opacity: 1; transform: none; }
body.js-enabled .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  body.js-enabled .reveal { opacity: 1; transform: none; }
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.8); } }

@media (max-width: 960px) {
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 44px; }
  .profile-card { max-width: 320px; margin: 0 auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); margin-left: 20px; margin-right: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .burger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
    background: rgba(17, 17, 23, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 48px; }
  .hero-btns, .nl-form, .cta-band { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
  .articles-grid, .skills-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band .sband { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats-band .sband:last-child { border-bottom: 0; }
}
