:root {
  --bg-canvas: #eef7f2;
  --bg-surface: #ffffff;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --accent: #14532d;
  --accent-light: rgba(20, 83, 45, 0.1);
  --shadow-soft: 0 8px 30px rgba(31, 41, 55, 0.08);
  --shadow-hover: 0 16px 40px rgba(31, 41, 55, 0.15);
  --radius: 20px;
  --font-base: "Trebuchet MS", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: 17px;
}

h1, h2, h3, h4 {
  color: var(--accent);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

.site-header {
  position: static;
  background-color: var(--bg-surface);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 100;
}

.brand {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--accent);
  margin-right: auto;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .site-header {
    position: relative;
  }
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.article-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: center;
}

.btn:hover, .btn:focus {
  background: var(--accent);
  color: var(--bg-surface);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-visuals {
  position: relative;
  height: 400px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.css-3d-object {
  position: absolute;
  background: var(--bg-canvas);
  border: 2px solid rgba(20, 83, 45, 0.2);
  border-radius: var(--radius);
  box-shadow: -10px 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.5s var(--ease);
}

.obj-door {
  width: 140px;
  height: 220px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f2 100%);
  transform: rotate(-5deg) translate(-40px, -20px);
  z-index: 1;
}

.obj-door::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.obj-checklist {
  width: 120px;
  height: 160px;
  background: #ffffff;
  transform: rotate(10deg) translate(60px, 30px);
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.obj-checklist .line {
  height: 4px;
  background: var(--accent-light);
  width: 100%;
  border-radius: 2px;
}

.obj-key {
  width: 80px;
  height: 40px;
  background: var(--accent);
  border-radius: 20px 0 0 20px;
  transform: rotate(-15deg) translate(20px, 120px);
  z-index: 3;
}

.hero-visuals:hover .obj-door { transform: rotate(-2deg) translate(-50px, -30px); }
.hero-visuals:hover .obj-checklist { transform: rotate(15deg) translate(70px, 20px); }
.hero-visuals:hover .obj-key { transform: rotate(-5deg) translate(30px, 110px); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 4rem;
}

.bento-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-row-2 {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-card.span-2, .bento-card.span-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.clip-section {
  background-color: var(--bg-surface);
  padding: 6rem 2rem;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin: 4rem 0;
}

.clip-section .main-container {
  padding: 0;
}

.sequence-list {
  list-style: none;
  padding: 0;
  counter-reset: seq-counter;
}

.sequence-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.sequence-list li::before {
  counter-increment: seq-counter;
  content: counter(seq-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lane-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .lane-container { grid-template-columns: 1fr; }
}

.lane {
  background: var(--bg-canvas);
  padding: 2rem;
  border-radius: var(--radius);
}

.lane h3 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

.escalation-tree {
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
  margin-left: 1rem;
}

.escalation-node {
  position: relative;
  margin-bottom: 2rem;
}

.escalation-node::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.75rem;
  width: 1rem;
  height: 2px;
  background: var(--accent);
}

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

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

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(31, 41, 55, 0.2);
  border-radius: 8px;
  font-family: var(--font-base);
  font-size: 1rem;
  background: var(--bg-canvas);
}

.form-group input:focus, .form-group textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.tools-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  background-color: var(--accent);
  color: var(--bg-surface);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--bg-surface);
  opacity: 0.8;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg-surface);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-canvas);
}

th {
  background: var(--accent);
  color: var(--bg-surface);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

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

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