:root {
  --bg-canvas: #102d26;
  --bg-canvas-alt: #0c241e;
  --bg-surface: #194037;
  --bg-surface-elevated: #215146;
  --bg-surface-hover: #265d51;
  --text-primary: #e0f2f1;
  --text-muted: #a7c9c0;
  --text-dim: #769b92;
  --accent-coral: #ff6f59;
  --accent-coral-hover: #ff8673;
  --accent-amber: #f59e0b;
  --border-subtle: rgba(224, 242, 241, 0.12);
  --border-strong: rgba(224, 242, 241, 0.24);
  --shadow-hard: 4px 4px 0px #091a16;
  --shadow-hard-coral: 4px 4px 0px #ab3e2d;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --max-width: 1100px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  line-height: 1.7;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  background-color: var(--bg-canvas);
}

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

a:hover, a:focus-visible {
  color: var(--accent-coral);
}

h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Header & Navigation */
.site-header {
  position: static;
  width: 100%;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 1.5rem 1.25rem;
  line-height: 1.3;
}

.header-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  text-align: left;
}

.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-link .dot {
  color: var(--accent-coral);
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 0.2rem;
}

.nav-toggle-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.site-nav-container {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(224, 242, 241, 0.06);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #102d26;
  background-color: var(--accent-coral);
  box-shadow: 2px 2px 0px #ab3e2d;
}

/* Layout Bands */
.band {
  width: 100%;
  padding: 5rem 1.5rem;
  position: relative;
}

.band-canvas {
  background-color: var(--bg-canvas);
}

.band-alt {
  background-color: var(--bg-canvas-alt);
}

.band-radial-coral {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle at 50% 25%, rgba(255, 111, 89, 0.12) 0%, rgba(16, 45, 38, 0) 65%);
}

.band-radial-glow {
  background-color: var(--bg-canvas-alt);
  background-image: radial-gradient(circle at 80% 50%, rgba(255, 111, 89, 0.1) 0%, rgba(12, 36, 30, 0) 60%),
                    radial-gradient(circle at 20% 70%, rgba(245, 158, 11, 0.08) 0%, rgba(12, 36, 30, 0) 50%);
}

.band-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero Section */
.hero-band {
  padding: 6.5rem 1.5rem 5.5rem;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--accent-coral);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-headline {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  color: #ffffff;
}

.hero-lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-coral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #102d26;
  background-color: var(--accent-coral);
  border: 2px solid #ab3e2d;
  border-radius: 12px;
  box-shadow: var(--shadow-hard-coral);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-coral:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #ab3e2d;
  color: #0c241e;
}

.btn-surface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-surface:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #091a16;
  border-color: var(--text-muted);
}

/* Section Headings */
.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--accent-coral);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.22;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 65ch;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* Grids & Cards with Render Metaphors */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

.scene-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s var(--ease-kinetic), border-color 0.2s ease;
}

.scene-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.scene-render-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-canvas-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.scene-card:hover .scene-render-img {
  transform: scale(1.03);
}

/* Card Badge - Positioned neatly inside top-left of image wrap to prevent any text clipping or overlap with title */
.badge-coral-overlap {
  position: absolute;
  top: 1rem;
  left: 1rem;
  bottom: auto;
  background-color: var(--accent-coral);
  color: #102d26;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.25;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0px #ab3e2d;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
}

.scene-card-body {
  padding: 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.scene-title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #ffffff;
  overflow-wrap: break-word;
  word-break: normal;
}

.scene-meta {
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.scene-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-link-action {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--accent-coral);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link-action:hover {
  text-decoration: underline;
}

/* Expandable Spoilers / Analyses */
.analysis-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item:focus-within,
.accordion-item:hover {
  border-color: var(--border-strong);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  gap: 1.25rem;
}

.accordion-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  color: var(--accent-coral);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-item[aria-expanded="true"] .accordion-indicator {
  transform: rotate(45deg);
}

.accordion-panel {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accordion-panel.is-open {
  display: block;
}

/* Ranked Comparison Rows */
.ranked-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.ranked-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.ranked-table th,
.ranked-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.45;
}

.ranked-table th {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ranked-table tr:last-child td {
  border-bottom: none;
}

.ranked-table tr:hover td {
  background-color: rgba(224, 242, 241, 0.02);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--accent-coral);
  color: #102d26;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 2px 2px 0px #ab3e2d;
}

.score-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Editorial Long-form Copy */
.editorial-wrap {
  max-width: 72ch;
  margin: 0 auto;
}

.editorial-wrap h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 2.75rem 0 1rem;
}

.editorial-wrap h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
}

.editorial-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.editorial-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-coral);
  padding: 1.5rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 2rem 0;
}

.editorial-box h4 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Plain-text Message Builder Tool (Contact Page) */
.tool-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 2.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px rgba(255, 111, 89, 0.25);
}

.tool-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-canvas-alt);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

.tool-preview-text {
  font-family: monospace;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer Specifications */
.site-footer {
  margin-top: auto;
  background-color: #0c241e;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(224, 242, 241, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-domain {
  font-weight: 700;
  color: var(--text-primary);
}

/* Mobile Slide-down Navigation */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 1rem;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .site-nav-container {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .site-nav-container.is-visible {
    display: block;
    animation: slideDown 0.25s ease-out;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: var(--bg-surface);
    border-radius: 8px;
  }

  .hero-band {
    padding: 4rem 1rem 3.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .band {
    padding: 3.5rem 1rem;
  }

  .tool-box {
    padding: 1.5rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    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}}