:root {
  --bg-canvas: #1e2530;
  --bg-surface: #2a3441;
  --bg-darker: #151a22;
  --text-primary: #ffffff;
  --text-muted: #cbd5e1;
  --accent-primary: #a3e635;
  --shadow-color: #000000;
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.label, .small-caps {
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-weight: bold;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.copy-container {
  max-width: 72ch;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Header & Nav */
.site-header {
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--bg-surface);
  padding: 1rem 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
}

.brand {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: bold;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.main-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  background: var(--bg-darker);
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-card {
  background: var(--bg-canvas);
  padding: 3rem;
  max-width: 500px;
  border: 1px solid var(--bg-surface);
  box-shadow: 8px 8px 0 var(--shadow-color);
}

.hero-card ul {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.hero-card li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bg-surface);
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 12px 24px;
  border: none;
  box-shadow: 4px 4px 0 var(--shadow-color);
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.1s ease;
  font-family: inherit;
  font-size: 1rem;
}

.btn:hover, .btn:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow-color);
  text-decoration: none;
  color: var(--bg-canvas);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Chronological Journey Flow */
.journey-flow {
  border-left: 2px solid var(--accent-primary);
  margin-left: 1rem;
  padding-left: 2.5rem;
  margin-top: 2rem;
}

.journey-step {
  position: relative;
  margin-bottom: 5rem;
  background: var(--bg-surface);
  padding: 2rem;
}

.journey-step::before {
  content: attr(data-step);
  position: absolute;
  left: -4rem;
  top: 0;
  background: var(--bg-canvas);
  color: var(--accent-primary);
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem;
  line-height: 1;
  border: 1px solid var(--accent-primary);
}

/* Cards */
.card {
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

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

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 4px 12px;
  z-index: 2;
  box-shadow: 2px 2px 0 var(--shadow-color);
}

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

/* Lists */
.numbered-list {
  list-style: none;
  counter-reset: step-counter;
}

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

.numbered-list li::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2.5rem;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.5;
}

/* Forms & Tools */
.tool-panel {
  background: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--text-muted);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-variant: small-caps;
  color: var(--accent-primary);
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg-darker);
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.tool-output {
  margin-top: 2rem;
  border-top: 1px solid var(--text-muted);
  padding-top: 2rem;
  display: none;
}

.tool-output.active {
  display: block;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

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

th {
  background: var(--bg-darker);
  color: var(--accent-primary);
  font-variant: small-caps;
}

/* Footer */
.site-footer {
  background: var(--bg-darker);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--bg-surface);
}

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

.footer-col h4 {
  color: var(--accent-primary);
  font-variant: small-caps;
  margin-bottom: 1.5rem;
}

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

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

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--bg-surface);
  padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    gap: 1rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 2rem;
    border-bottom: 1px solid var(--bg-darker);
  }

  .main-nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-card {
    margin: 2rem;
    padding: 2rem;
  }

  .journey-flow {
    margin-left: 0;
    padding-left: 1.5rem;
  }

  .journey-step::before {
    left: -2.5rem;
    font-size: 1.5rem;
    padding: 0.25rem;
  }
}

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