:root {
  --bg-canvas: #1c1f24;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #10b981;
  --accent-dark: #059669;
  --border-subtle: rgba(16, 185, 129, 0.3);
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.4);
  --glow-accent: 0 0 24px -4px rgba(16, 185, 129, 0.4);
  
  --font-head: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem 0;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

/* Brutalist sharp corners on all structural containers */
div, section, article, nav, header, footer, button, input, textarea, select {
  border-radius: 0 !important;
}

/* Layout Constrains */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.brand a {
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-size: 0.9rem;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

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

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-image-wrapper {
  position: relative;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  background: rgba(28, 31, 36, 0.6);
}

.hero-image-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
}

/* Section Spacing & Backgrounds */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-glow {
  background: radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

/* Grids */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: minmax(200px, auto);
}

/* Cards with Badge breaking bottom edge */
.tech-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-media {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16/9;
}

.card-badge {
  position: absolute;
  bottom: -15px;
  right: 1.5rem;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  border: 1px solid var(--bg-canvas);
  z-index: 10;
}

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

.card-body h3 {
  font-size: 1.5rem;
}

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

/* Timeline Components */
.timeline {
  border-left: 2px solid var(--border-subtle);
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--bg-canvas);
  border: 2px solid var(--accent-primary);
}

.timeline-step h4 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Quick Fix List Rows */
.fix-list {
  list-style: none;
  padding: 0;
}

.fix-list li {
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: background 0.3s;
}

.fix-list li:hover {
  background: rgba(16, 185, 129, 0.05);
}

.fix-list-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Tool / Forms */
.ticket-builder {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

/* Data Table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(16, 185, 129, 0.1);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

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

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

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

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

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

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

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

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

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-canvas);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s var(--ease-kinetic);
}

.mobile-nav-overlay.active {
  right: 0;
}

.mobile-nav-overlay .nav-links {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-overlay .nav-links a {
  font-size: 1.5rem;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero {
    padding: 8rem 0 4rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .tool-actions {
    flex-direction: column;
  }
  .section {
    padding: 4rem 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

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