@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

/* ===== TOKENS ===== */
:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #1e2f1b;
  --dark3: #253322;
  --text: #e8f5e2;
  --text-muted: #a8c4a0;
  --sidebar-w: 220px;
  --radius: 0px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--dark); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== MEMPHIS BACKGROUND ===== */
.memphis-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle at 15% 85%, rgba(135,255,113,0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255,206,92,0.07) 0%, transparent 40%);
}
.memphis-shape { position: absolute; }
.ms-tri-1 {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(135,255,113,0.08);
  top: 8%; right: 12%;
  transform: rotate(25deg);
}
.ms-tri-2 {
  width: 0; height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(255,206,92,0.09);
  bottom: 15%; left: 18%;
  transform: rotate(-15deg);
}
.ms-circ-1 {
  width: 120px; height: 120px;
  border: 4px solid rgba(135,255,113,0.12);
  border-radius: 50%;
  top: 30%; right: 6%;
}
.ms-circ-2 {
  width: 60px; height: 60px;
  background: rgba(255,206,92,0.07);
  border-radius: 50%;
  bottom: 30%; right: 25%;
}
.ms-rect-1 {
  width: 80px; height: 80px;
  border: 3px dashed rgba(135,255,113,0.1);
  top: 60%; left: 5%;
  transform: rotate(20deg);
}
.ms-squig-1 {
  width: 100px; height: 30px;
  border-top: 4px solid rgba(255,206,92,0.12);
  border-radius: 50%;
  bottom: 10%; left: 40%;
  transform: rotate(-8deg);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--dark2);
  border-right: 2px solid rgba(135,255,113,0.18);
  display: flex; flex-direction: column;
  z-index: 100;
  padding: 0;
}
.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}

.sidebar-brand {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px 20px;
  border-bottom: 1px solid rgba(135,255,113,0.12);
  min-height: 80px;
}
.logo-mark-img { width: 44px; height: 44px; object-fit: contain; }
.logo-text-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--green);
  color: var(--dark);
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.5px;
  clip-path: polygon(12% 0%, 88% 0%, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0% 88%, 0% 12%);
}

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.sidebar-nav p {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 12px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13.5px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  min-height: 48px;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.7; transition: opacity var(--transition); }
.sidebar-label { transition: color var(--transition); }
.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--green);
  background: rgba(135,255,113,0.07);
  border-left-color: var(--green);
}
.sidebar-link:hover svg { opacity: 1; }

/* ===== PAGE SHELL ===== */
.page-shell {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}

/* ===== MAIN / WRAP ===== */
main { flex: 1; }
.wrap { width: 100%; }

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(135,255,113,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(135,255,113,0.04) 40px);
  border-bottom: 3px solid var(--green);
  scroll-margin-top: 0;
}
.hero-section > article.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 80px 60px 80px 56px;
  align-items: center;
  min-height: 100vh;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  width: fit-content;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1.5px;
}
.hero-text h1::after {
  content: '';
  display: block;
  width: 80px; height: 5px;
  background: var(--green);
  margin-top: 16px;
}
.hero-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
}
.hero-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green);
  color: var(--dark);
  font-size: 15px; font-weight: 700;
  padding: 16px 32px;
  border-bottom: 4px solid rgba(0,0,0,0.3);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  width: fit-content;
  min-height: 52px;
  letter-spacing: 0.3px;
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: #a5ff90;
  transform: translateY(-2px);
  color: var(--dark);
}

.hero-media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.hero-img {
  width: 100%; max-width: 480px; height: auto;
  position: relative; z-index: 2;
  border-bottom: 5px solid var(--yellow);
}
.hero-media-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hm-tri {
  position: absolute; top: 10%; right: 5%;
  width: 0; height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid rgba(255,206,92,0.2);
  transform: rotate(-10deg);
}
.hm-dot-grid {
  position: absolute; bottom: 10%; left: 5%;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(135,255,113,0.25) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}
.hm-rect {
  position: absolute; bottom: 20%; right: 8%;
  width: 56px; height: 56px;
  border: 3px solid rgba(135,255,113,0.3);
  transform: rotate(18deg);
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 80px 0 60px;
  scroll-margin-top: 72px;
}
.content-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 0 56px;
  max-width: 1300px;
  margin: 0 auto;
}
.content-body { min-width: 0; }

/* ===== PAGE.CONTENT STYLES ===== */
.content-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h2 > span,
.content-body h3 > span {
  display: inline;
}
.content-body h3 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--yellow);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.content-body p {
  font-size: 16px; line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}
.content-body ul, .content-body ol {
  margin: 16px 0 24px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.content-body ul li, .content-body ol li {
  padding-left: 20px;
  position: relative;
  font-size: 16px; line-height: 1.7;
  color: var(--text);
}
.content-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--green);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.content-body ol { counter-reset: ol-counter; }
.content-body ol li { counter-increment: ol-counter; }
.content-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-size: 12px; font-weight: 700;
  color: var(--yellow);
  font-family: 'JetBrains Mono', monospace;
}
.content-body a {
  color: var(--green);
  border-bottom: 1px solid rgba(135,255,113,0.35);
  transition: border-color var(--transition), color var(--transition);
}
.content-body a:hover { border-bottom-color: var(--green); color: #a5ff90; }
.content-body strong { color: var(--yellow); font-weight: 700; }
.content-body em { font-style: italic; color: #c8edc4; }
.content-body table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
}
.content-body th {
  background: var(--green); color: var(--dark);
  font-weight: 700; font-size: 13px;
  padding: 12px 16px; text-align: left;
  letter-spacing: 0.5px;
}
.content-body td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(135,255,113,0.1);
  font-size: 15px; color: var(--text);
}
.content-body tr:nth-child(even) td { background: rgba(135,255,113,0.04); }
.content-body blockquote {
  border-left: 4px solid var(--yellow);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(255,206,92,0.06);
  font-style: italic;
  color: var(--text-muted);
}
.content-body section {
  scroll-margin-top: 80px;
  padding-top: 16px;
}

/* ===== ASIDE ===== */
.content-aside {
  align-self: start;
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.aside-block {
  background: var(--dark3);
  border-top: 3px solid var(--green);
  padding: 20px;
}
.aside-notice { border-top-color: var(--yellow); }
.aside-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.aside-notice .aside-title { color: var(--yellow); }
.aside-links { display: flex; flex-direction: column; gap: 6px; }
.aside-links li a {
  display: flex; align-items: center;
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  min-height: 40px; line-height: 1.4;
}
.aside-links li a:hover {
  color: var(--green);
  border-left-color: var(--green);
  background: rgba(135,255,113,0.05);
}
.aside-notice p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.aside-deco { position: relative; height: 80px; overflow: hidden; }
.aside-shape-1 {
  position: absolute; top: 10px; left: 10px;
  width: 0; height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(135,255,113,0.15);
  transform: rotate(8deg);
}
.aside-shape-2 {
  position: absolute; top: 20px; right: 15px;
  width: 36px; height: 36px;
  border: 2px solid rgba(255,206,92,0.2);
  transform: rotate(22deg);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 2px solid rgba(135,255,113,0.18);
  margin-top: auto;
}
.footer-cta-block {
  background: var(--green);
  padding: 32px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-text {
  font-size: 1.3rem; font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.footer-cta-btn {
  background: var(--dark);
  color: var(--green);
  font-size: 14px; font-weight: 700;
  padding: 14px 28px;
  border-bottom: 3px solid rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
  min-height: 48px;
  display: inline-flex; align-items: center;
  transition: background var(--transition), transform var(--transition);
}
.footer-cta-btn:hover { background: var(--dark3); transform: translateY(-2px); color: var(--green); }
.footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--dark2);
}
.footer-logo-link {
  font-size: 14px; font-weight: 800;
  color: var(--green);
  letter-spacing: -0.3px;
  min-height: 40px;
  display: inline-flex; align-items: center;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
  min-height: 40px; display: inline-flex; align-items: center;
  padding: 0 4px;
}
.footer-nav a:hover { color: var(--green); }
.footer-bar-right { font-size: 12px; color: var(--text-muted); }

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .content-inner { grid-template-columns: 1fr 240px; padding: 0 40px; gap: 32px; }
  .hero-section > article.hero-inner { padding: 80px 40px; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto;
    width: 100%;
    flex-direction: row; align-items: center;
    height: 56px; padding: 0 16px;
    border-right: none;
    border-bottom: 2px solid rgba(135,255,113,0.18);
    z-index: 200;
  }
  .sidebar::before { width: 100%; height: 3px; top: 0; left: 0; right: 0; bottom: auto; }
  .sidebar-brand {
    padding: 0;
    border-bottom: none;
    min-height: 0;
    min-width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .logo-text-mark {
    width: 44px; height: 44px; font-size: 16px;
  }
  .sidebar-nav { flex: 1; padding: 0; overflow-x: auto; overflow-y: hidden; }
  .sidebar-nav p {
    flex-direction: row; gap: 0; padding: 0 4px;
    align-items: center;
  }
  .sidebar-link {
    flex-direction: column; gap: 2px;
    padding: 6px 10px;
    font-size: 10px;
    border-left: none; border-bottom: 3px solid transparent;
    min-height: 48px; justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar-link svg { width: 18px; height: 18px; }
  .sidebar-label { display: none; }
  .sidebar-link:hover { border-left-color: transparent; border-bottom-color: var(--green); }

  .page-shell { margin-left: 0; padding-top: 56px; }
  .hero-section > article.hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px 48px;
    gap: 40px;
    min-height: calc(100vh - 56px);
  }
  .hero-media { min-height: 280px; }
  .content-inner { grid-template-columns: 1fr; padding: 0 24px; }
  .content-aside { position: static; }
  .footer-cta-block { padding: 24px; }
  .footer-bar { padding: 16px 24px; gap: 12px; }
  .content-section { padding: 48px 0 40px; }
}
@media (max-width: 480px) {
  .hero-text h1 { letter-spacing: -1px; }
  .footer-cta-block { flex-direction: column; align-items: flex-start; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-nav { gap: 12px; }
}
