:root {
  --bg-slate: #1e2530;
  --bg-dark-grey: #12161c;
  --accent-lime: #a3e635;
  --accent-lime-hover: #84cc16;
  --text-white: #ffffff;
  --text-muted: #cbd5e1;
  --text-dark: #12161c;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-hard: 4px 4px 0px 0px rgba(0,0,0,1);
  --radius: 4px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark-grey);
  color: var(--text-white);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-lime-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Layout Architecture */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-band {
  width: 100%;
  padding: 5rem 0;
}

.section-band:nth-child(odd) {
  background-color: var(--bg-slate);
}

.section-band:nth-child(even) {
  background-color: var(--bg-dark-grey);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 0.3s var(--ease-kinetic);
}

.site-header.scrolled {
  background-color: var(--bg-slate);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
}

.brand:hover { color: var(--text-white); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--accent-lime);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-lime);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-slate) 0%, var(--bg-dark-grey) 100%);
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-lime);
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  transform: translateY(0);
  transition: transform 0.1s var(--ease-kinetic), box-shadow 0.1s var(--ease-kinetic);
  cursor: pointer;
}

.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
  color: var(--text-dark);
}

/* Cards (Bento & Masonry style) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-dark-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-band:nth-child(even) .card {
  background: var(--bg-slate);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.badge {
  position: absolute;
  bottom: -12px;
  left: 1.5rem;
  background: var(--accent-lime);
  color: var(--text-dark);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
  z-index: 10;
}

.card-content {
  padding: 2.5rem 1.5rem 1.5rem;
  flex: 1;
}

.card-content h3 {
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page Long-form Content */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.content-wrapper h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--accent-lime);
}

.content-wrapper h3 {
  margin-top: 2rem;
}

.content-wrapper ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

/* Accordions */
details.accordion {
  background: var(--bg-dark-grey);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.section-band:nth-child(even) details.accordion {
  background: var(--bg-slate);
}

details.accordion summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

details.accordion summary::after {
  content: '+';
  color: var(--accent-lime);
  font-size: 1.5rem;
  line-height: 1;
}

details.accordion[open] summary::after {
  content: '-';
}

details.accordion .accordion-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* Tool / Form */
.tool-box {
  background: var(--bg-slate);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  background: var(--bg-dark-grey);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  border-radius: var(--radius);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-lime);
}

.tool-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-dark-grey);
  border: 1px dashed var(--accent-lime);
  border-radius: var(--radius);
  display: none;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: #0b0d12;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.footer-top .brand {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.footer-top p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  list-style: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom nav {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-slate);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-band {
    padding: 3rem 0;
  }
  
  .footer-links {
    gap: 1rem;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
