:root {
  --bg-canvas: #160f2e;
  --bg-surface: #1f1642;
  --bg-surface-hover: #2a1d52;
  --text-primary: #ffffff;
  --text-muted: #b3b0bc;
  --accent-primary: #eab308;
  --accent-secondary: #e0409b;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --glass-backdrop: blur(16px);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

img {
  max-width: 100%;
  display: block;
  border-radius: 0; /* Strict 0px radius rule */
}

/* Header & Nav */
header {
  background-color: var(--bg-surface);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: static; /* Strict rule: scroll out of view */
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

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

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

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

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

/* Hero Band */
.hero-band {
  background-color: var(--bg-surface);
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 5%;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-band h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  color: var(--accent-primary);
}

/* Layout Architecture */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.long-copy {
  max-width: 72ch;
  margin: 0 auto;
  padding: 2rem 5%;
}

/* Split Sections */
.split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content, .split-image {
  flex: 1 1 400px;
}

.split-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

/* Glass Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.glass-card {
  background-color: rgba(31, 22, 66, 0.6); /* --bg-surface with opacity */
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0; /* Strict 0px radius rule */
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elevation), 0 0 24px -4px var(--accent-secondary);
  background-color: var(--bg-surface-hover);
}

.glass-card h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #000000;
  padding: 14px 32px;
  border-radius: 9999px; /* Pill shape rule */
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-kinetic), transform 0.3s var(--ease-kinetic);
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: var(--accent-secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: #000000;
}

/* Forms & Tools */
.tool-panel {
  background-color: var(--bg-surface);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  margin: 4rem 0;
}

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

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

input, textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  border-radius: 0; /* Strict 0px radius rule */
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

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

#tool-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #090614;
  border: 1px solid var(--accent-primary);
  min-height: 100px;
  white-space: pre-wrap;
  display: none;
}

/* Footer */
footer {
  background-color: #090614;
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

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

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Animations & Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s 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;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .split-section {
    flex-direction: column !important;
    gap: 2rem;
  }

  .hero-band h1 {
    font-size: 2rem;
  }
}

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