@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark2: #0f1a0d;
  --dark3: #243420;
  --text: #e8f5e4;
  --text-muted: #8aaa84;
  --radius-card: 28px;
  --nav-h: 64px;
  --font-main: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark2);
  color: var(--text);
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--dark2);
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}

article[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--yellow);
}

ul, menu {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== MEMPHIS BACKGROUND ===== */
.memphis-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.memphis-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  pointer-events: none;
}

.shape-tri-1 {
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid var(--green);
  opacity: 0.08;
  top: 8%;
  right: 6%;
  transform: rotate(18deg);
  animation: floatA 8s ease-in-out infinite;
}

.shape-tri-2 {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid var(--yellow);
  opacity: 0.10;
  bottom: 22%;
  left: 4%;
  transform: rotate(-22deg);
  animation: floatB 10s ease-in-out infinite;
}

.shape-wave {
  width: 180px;
  height: 40px;
  border-top: 4px dashed var(--yellow);
  border-radius: 50%;
  opacity: 0.18;
  top: 30%;
  left: 2%;
  transform: rotate(-8deg);
  animation: floatA 12s ease-in-out infinite reverse;
}

.shape-circle-1 {
  width: 90px;
  height: 90px;
  border: 5px solid var(--green);
  border-radius: 50%;
  opacity: 0.10;
  top: 60%;
  right: 8%;
  animation: floatB 9s ease-in-out infinite;
}

.shape-circle-2 {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  opacity: 0.13;
  top: 45%;
  left: 8%;
  transform: rotate(34deg);
  animation: floatA 11s ease-in-out infinite;
}

.shape-rect-1 {
  width: 60px;
  height: 60px;
  border: 3px dotted var(--green);
  opacity: 0.12;
  bottom: 15%;
  right: 15%;
  transform: rotate(20deg);
  animation: floatB 14s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(18deg); }
  50% { transform: translateY(-18px) rotate(22deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(-22deg); }
  50% { transform: translateY(14px) rotate(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shape { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== NAV: details > summary + menu > li > a ===== */
.nav-details {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-details[open] {
  top: 0;
}

.nav-details summary {
  list-style: none;
  display: block;
  cursor: pointer;
}

.nav-details summary::-webkit-details-marker {
  display: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  background: rgba(25, 38, 23, 0.96);
  border-top: 2px solid var(--green);
  padding: 0 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-icon {
  height: 36px;
  width: auto;
}

.brand-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--dark2);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

.hamburger-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ham-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.ham-icon span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-details[open] .ham-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-details[open] .ham-icon span:nth-child(2) {
  opacity: 0;
}

.nav-details[open] .ham-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--green);
  color: var(--dark2);
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-details[open] .nav-cta-btn,
.nav-cta-btn:hover {
  background: var(--yellow);
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  bottom: var(--nav-h);
  background: rgba(15, 26, 13, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--green);
  z-index: 999;
}

.fullscreen-menu li {
  width: 100%;
  max-width: 420px;
  opacity: 0;
  transform: translateY(20px);
}

.nav-details[open] .fullscreen-menu li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-details[open] .fullscreen-menu li:nth-child(1) { transition-delay: 0.05s; }
.nav-details[open] .fullscreen-menu li:nth-child(2) { transition-delay: 0.10s; }
.nav-details[open] .fullscreen-menu li:nth-child(3) { transition-delay: 0.15s; }
.nav-details[open] .fullscreen-menu li:nth-child(4) { transition-delay: 0.20s; }
.nav-details[open] .fullscreen-menu li:nth-child(5) { transition-delay: 0.25s; }
.nav-details[open] .fullscreen-menu li:nth-child(6) { transition-delay: 0.30s; }
.nav-details[open] .fullscreen-menu li:nth-child(7) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .fullscreen-menu li,
  .nav-details[open] .fullscreen-menu li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  border: 1px solid rgba(135, 255, 113, 0.15);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 52px;
}

.menu-link:hover {
  background: rgba(135, 255, 113, 0.1);
  color: var(--green);
  border-color: var(--green);
}

/* ===== MAIN LAYOUT ===== */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-article {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.hero-h1 {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  word-break: break-all;
}

.hero-h1 span {
  color: var(--green);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--green);
  color: var(--dark2);
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  min-height: 52px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--yellow);
  color: var(--dark2);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  min-height: 52px;
  transition: background 0.2s, color 0.2s;
}

.btn-ghost:hover {
  background: rgba(135, 255, 113, 0.1);
  color: var(--green);
}

.hero-deco-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  margin: 48px auto 0;
  border-radius: 2px;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
}

/* ===== CONTENT SECTION: main > section.wrap > article > div ===== */
.content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 60px 0 80px;
  align-items: start;
}

.content-article {
  min-width: 0;
}

.content-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

/* Section headings inside content */
.content-body h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--green);
  margin: 60px 0 8px;
  line-height: 1.2;
}

.content-body h2 + hr {
  border: none;
  border-top: 2px solid rgba(135, 255, 113, 0.3);
  margin: 0 0 24px;
}

.content-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow);
  margin: 36px 0 6px;
}

.content-body h3 + hr {
  border: none;
  border-top: 1px dashed rgba(255, 206, 92, 0.3);
  margin: 0 0 18px;
}

.content-body hr {
  border: none;
  border-top: 1px solid rgba(135, 255, 113, 0.15);
  margin: 32px 0;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body ul, .content-body ol {
  margin: 16px 0 20px 24px;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body article {
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(36, 52, 32, 0.5);
  border-radius: var(--radius-card);
  border-bottom: 3px solid var(--green);
  position: relative;
  overflow: hidden;
}

.content-body article::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  border: 3px solid var(--yellow);
  opacity: 0.12;
  transform: rotate(30deg);
}

/* Scroll reveal for sections */
.content-body article {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-body article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .content-body article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== ASIDE / SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-inner {
  background: rgba(36, 52, 32, 0.6);
  border: 1px solid rgba(135, 255, 113, 0.2);
  border-radius: var(--radius-card);
  padding: 28px;
  border-bottom: 4px solid var(--green);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-inner > hr {
  border: none;
  border-top: 2px solid rgba(135, 255, 113, 0.25);
  margin: 0 0 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.sidebar-nav li a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.sidebar-nav li a:hover {
  background: rgba(135, 255, 113, 0.1);
  color: var(--green);
}

.sidebar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 12px;
  background: rgba(255, 206, 92, 0.07);
  border-radius: 8px;
  border: 1px dashed rgba(255, 206, 92, 0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot { animation: none; }
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--dark2);
  border-top: 2px solid rgba(135, 255, 113, 0.2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-form-label,
.footer-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.footer-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-input {
  flex: 1;
  min-width: 160px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(135, 255, 113, 0.25);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.footer-input::placeholder {
  color: var(--text-muted);
}

.footer-input:focus {
  border-color: var(--green);
}

.footer-form-btn {
  padding: 12px 20px;
  background: var(--green);
  color: var(--dark2);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  font-family: var(--font-main);
  transition: background 0.2s;
}

.footer-form-btn:hover {
  background: var(--yellow);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
  display: block;
  min-height: 32px;
  line-height: 2;
}

.footer-nav-list li a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(135, 255, 113, 0.1);
  padding: 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer-divider {
  color: rgba(135, 255, 113, 0.3);
}

.footer-note {
  font-size: 12px;
  color: rgba(138, 170, 132, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 60px;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .btn-primary, .btn-ghost {
    padding: 12px 24px;
    font-size: 15px;
  }

  .content-body article {
    padding: 24px 18px;
  }

  .menu-link {
    font-size: 16px;
  }

  .nav-bar {
    padding: 0 16px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
  }
}

/* ===== UTILITY ===== */
.is-visible {
  opacity: 1 !important;
  transform: none !important;
}
