@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #edf2f7;
  --panel: #ffffff;
  --text: #101725;
  --muted: #5f6c80;
  --outline: #d7e0eb;
  --accent: #2589d8;
  --accent-dark: #1d6fb0;
}

[data-theme='dark'] {
  --bg: #0e1626;
  --panel: #111e30;
  --text: #e8f0fb;
  --muted: #a9bdd7;
  --outline: #24354d;
  --accent: #4aa9f5;
  --accent-dark: #3094e7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, #d7ebff 0%, transparent 36%),
    radial-gradient(circle at 90% 8%, #e5eef9 0%, transparent 30%),
    var(--bg);
}

[data-theme='dark'] body {
  background:
    radial-gradient(circle at 18% -8%, #17304d 0%, transparent 40%),
    radial-gradient(circle at 90% 8%, #1a2940 0%, transparent 34%),
    var(--bg);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.28;
}

.bg-glow-1 {
  width: 320px;
  height: 320px;
  left: -80px;
  top: -120px;
  background: #7ab8f7;
}

.bg-glow-2 {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 120px;
  background: #c5dbf5;
}

.site-header {
  width: min(1200px, 94vw);
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

[data-theme='dark'] .site-header {
  background: rgba(15, 24, 39, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: center / cover no-repeat url('/favicon.svg');
  display: block;
  color: transparent;
  font-size: 0;
  flex: 0 0 38px;
  box-shadow: none;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.top-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.top-nav a[aria-current='page'] {
  color: var(--accent-dark);
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  position: relative;
}

.icon-toggle {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  font-size: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
}

[data-theme='dark'] .icon-toggle {
  background: #162842;
}

button {
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

button:hover:enabled {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 45%, var(--outline));
  box-shadow: 0 8px 18px rgba(26, 73, 126, 0.15);
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.primary:hover:enabled {
  background: var(--accent-dark);
}

.ghost {
  background: #fff;
  color: var(--text);
}

[data-theme='dark'] .ghost {
  background: #162842;
  border-color: #2a3f5c;
  color: var(--text);
}

.header-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.social-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 56px;
  min-width: 210px;
  max-width: min(320px, 92vw);
  z-index: 40;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--panel);
  box-shadow: 0 14px 28px rgba(6, 12, 22, 0.2);
  display: grid;
  gap: 4px;
}

.social-share-menu a,
.social-share-menu button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.social-share-menu a:hover,
.social-share-menu button:hover {
  background: color-mix(in oklab, var(--accent) 16%, var(--panel));
}

.social-share-menu a:focus-visible,
.social-share-menu button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: color-mix(in oklab, var(--accent) 16%, var(--panel));
}

[data-theme='dark'] .social-share-menu {
  background: #132239;
  border-color: #2b3e5b;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.container {
  width: min(1200px, 94vw);
  margin: 28px auto 50px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-home {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.hero-home-copy,
.hero-rail-card,
.hero-rail-stats,
.home-band-card,
.home-panel {
  border: 1px solid var(--outline);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

[data-theme='dark'] .hero-home-copy,
[data-theme='dark'] .hero-rail-card,
[data-theme='dark'] .hero-rail-stats,
[data-theme='dark'] .home-band-card,
[data-theme='dark'] .home-panel {
  background: rgba(17, 30, 48, 0.76);
}

.hero-home-copy {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-home-copy::after {
  content: '';
  position: absolute;
  inset: auto -8% -28% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 137, 216, 0.2) 0%, rgba(37, 137, 216, 0) 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--outline));
  background: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.eyebrow::before {
  content: '\f0ad';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.78rem;
}

[data-theme='dark'] .eyebrow {
  background: rgba(17, 30, 48, 0.78);
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-home .hero-actions {
  justify-content: flex-start;
}

.hero-points {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--outline));
  background: color-mix(in oklab, var(--accent) 6%, var(--panel));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-points i,
.home-band-card i {
  color: var(--accent-dark);
}

.hero-rail {
  display: grid;
  gap: 14px;
}

.hero-rail-card,
.hero-rail-stats,
.home-band-card,
.home-panel {
  padding: 22px;
}

.hero-rail-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-rail-card h2,
.home-section-heading h2,
.home-panel h2,
.home-band-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-rail-card p,
.hero-rail-stats span,
.home-section-heading p,
.home-panel p,
.home-band-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quick-links {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in oklab, var(--accent) 16%, var(--outline));
  background: color-mix(in oklab, var(--accent) 5%, var(--panel));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.quick-links a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 30%, var(--outline));
  background: color-mix(in oklab, var(--accent) 10%, var(--panel));
}

.quick-links i {
  color: var(--accent-dark);
  font-size: 1rem;
}

.hero-rail-stats {
  display: grid;
  gap: 16px;
}

.hero-rail-stats strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.home-band {
  margin: 20px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-band-card i {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.home-band-card h2 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.home-section {
  margin-top: 32px;
}

.home-section-heading {
  margin-bottom: 16px;
  max-width: 760px;
}

.home-section-heading .eyebrow {
  margin-bottom: 10px;
}

.home-split {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-link-list,
.home-change-list {
  margin: 14px 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.home-link-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.home-link-list a:hover,
.home-change-list li::marker {
  color: var(--accent-dark);
}

.hero-actions {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.upload-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--outline);
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 22px;
}

[data-theme='dark'] .upload-card {
  background: rgba(17, 30, 48, 0.7);
}

.dropzone {
  border: 2px dashed #bfcddd;
  border-radius: 20px;
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  background: #f8fbff;
}

.dropzone.drag-over {
  border-color: var(--accent);
  background: #eef6ff;
}

[data-theme='dark'] .dropzone {
  background: #132338;
}

[data-theme='dark'] .dropzone.drag-over {
  background: #1a2d45;
}

.drop-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid #a8b9cf;
  position: relative;
}

.drop-icon::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-top: 3px solid #a8b9cf;
  border-left: 3px solid #a8b9cf;
  transform: rotate(45deg);
  left: 16px;
  top: 18px;
}

.upload-trigger {
  min-width: 280px;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-empty,
.code-preview.empty-note,
.dimensions.empty-note {
  position: relative;
  border-radius: 14px;
  border: 1px dashed color-mix(in oklab, var(--accent) 24%, var(--outline));
  background: color-mix(in oklab, var(--accent) 4%, var(--panel));
  padding: 14px 14px 14px 44px;
}

.status-empty::before,
.code-preview.empty-note::before,
.dimensions.empty-note::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.status-empty::before {
  content: '\f093';
}

.code-preview.empty-note::before {
  content: '\f15c';
}

.dimensions.empty-note::before {
  content: '\f05a';
}

.tool-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-intro-card {
  border: 1px solid var(--outline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 18px;
}

[data-theme='dark'] .tool-intro-card {
  background: rgba(17, 30, 48, 0.7);
}

.tool-intro-card h2,
.tool-results h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-intro-card h2::before,
.tool-results h2::before,
.article-section h2::before,
.preview-panel h2::before {
  content: '\f05a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, var(--panel));
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.tool-intro-card p,
.tool-results p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.article-shell {
  display: grid;
  gap: 18px;
}

.article-section {
  border: 1px solid var(--outline);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px;
}

.article-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section ul,
.article-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.55;
}

.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.article-pill {
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-theme='dark'] .article-pill {
  background: rgba(17, 30, 48, 0.7);
}

.tool-intro-list,
.result-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  line-height: 1.45;
}

.workspace {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.controls,
.preview-panel {
  border: 1px solid var(--outline);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
}

.controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tool-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tool-button {
  background: #edf3fa;
  color: var(--text);
}

[data-theme='dark'] .tool-button {
  background: #1a2b42;
  border-color: #2b3e5b;
}

.tool-button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.87rem;
}

input[type='number'],
select {
  border: 1px solid var(--outline);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  font: inherit;
}

[data-theme='dark'] input[type='number'],
[data-theme='dark'] select {
  background: #16273e;
  color: var(--text);
  border-color: #2b3e5b;
}

input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
}

.quality-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#previewCanvas {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  background: repeating-conic-gradient(#eff4fb 0% 25%, #dde8f5 0% 50%) 50% / 18px 18px;
}

[data-theme='dark'] #previewCanvas {
  background: repeating-conic-gradient(#1b2a3f 0% 25%, #132034 0% 50%) 50% / 18px 18px;
}

.video-preview {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #0f1624;
  max-height: 520px;
}

.audio-preview {
  width: 100%;
}

.code-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: #f7fbff;
  color: #2a3b52;
  font-size: 0.84rem;
  line-height: 1.4;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}

.tool-results {
  display: grid;
  gap: 12px;
}

.result-card {
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 14px;
  background: #f7fbff;
}

[data-theme='dark'] .result-card {
  background: #16263d;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.result-row strong {
  font-size: 1rem;
}

.result-savings-positive strong {
  color: #167a56;
}

[data-theme='dark'] .result-savings-positive strong {
  color: #58d6a8;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: #f7fbff;
}

[data-theme='dark'] .queue-item {
  background: #16263d;
}

.queue-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.queue-item-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.queue-item-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.queue-item-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.secondary-button,
.danger-button {
  background: #edf3fa;
  color: var(--text);
}

.danger-button {
  color: #a12b2b;
}

[data-theme='dark'] .secondary-button,
[data-theme='dark'] .danger-button {
  background: #1a2b42;
  border-color: #2b3e5b;
}

.inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

[data-theme='dark'] .code-preview,
[data-theme='dark'] .changelog-list p {
  background: #16263d;
  color: #d3e3f8;
}

.changelog-list {
  display: grid;
  gap: 10px;
}

.changelog-list p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: #f8fbff;
  color: #334762;
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.tool-card {
  --card-label: #ff6a1a;
  border: 1px solid #edf1f5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  row-gap: 6px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  box-shadow: 0 18px 40px rgba(15, 28, 45, 0.04);
}

[data-theme='dark'] .tool-card {
  background: rgba(17, 30, 48, 0.9);
  border-color: #22344b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 28%, #edf1f5);
  box-shadow: 0 22px 44px rgba(15, 28, 45, 0.08);
}

[data-theme='dark'] .tool-card:hover {
  border-color: color-mix(in oklab, var(--accent) 34%, #22344b);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.tool-card h3 {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tool-card::after {
  content: attr(data-category);
  grid-column: 2;
  grid-row: 2;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--card-label);
  font-weight: 500;
}

.tool-card p {
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 3;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-thumb {
  width: 64px;
  height: 64px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  user-select: none;
}

.tool-thumb::before,
.tool-thumb::after {
  content: none;
}

.tool-thumb-icon {
  position: relative;
  color: currentColor;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: none;
}

.thumb-image { background: #f8dfe8; color: #ff5d7c; }
.thumb-pdf { background: #f4e4d9; color: #ff7a1a; }
.thumb-video { background: #dcecff; color: #448eef; }
.thumb-font { background: #e8e1ff; color: #7757f5; }
.thumb-audio { background: #dff6ee; color: #16ae80; }
.thumb-file { background: #fff0d7; color: #d58915; }
.thumb-change { background: #e3ebf4; color: #5d7d9f; }

.dimensions {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.is-hidden {
  display: none;
}

.site-footer {
  margin-top: 52px;
  background: #eef2f7;
  border-top: 1px solid #d5dfec;
}

[data-theme='dark'] .site-footer {
  background: #0d1828;
  border-top-color: #25384f;
}

.footer-topline {
  height: 10px;
  background: linear-gradient(90deg, #2389d8, #56a6e6);
}

.footer-inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 52px 0 38px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}

.footer-about h3 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1;
}

.footer-about h3 span {
  color: #2589d8;
}

.footer-about p {
  margin: 0;
  color: #69778c;
  font-size: 1.35rem;
  line-height: 1.35;
  max-width: 520px;
}

[data-theme='dark'] .footer-about p {
  color: #a3b5cb;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-inner section:nth-child(2) h4::before,
.footer-inner section:nth-child(3) h4::before,
.footer-inner section:nth-child(4) h4::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
}

.footer-inner section:nth-child(2) h4::before {
  content: '\f0e8';
  color: #e67e22;
}

.footer-inner section:nth-child(3) h4::before {
  content: '\f0ad';
  color: #2b8be4;
}

.footer-inner section:nth-child(4) h4::before {
  content: '\f5fc';
  color: #18a67b;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: #6f7b8f;
  text-decoration: none;
  font-size: 1.35rem;
  transition: color 120ms ease, transform 120ms ease;
}

.site-footer a:hover {
  color: #2589d8;
  transform: translateX(2px);
}

[data-theme='dark'] .site-footer a {
  color: #a7bad3;
}

[data-theme='dark'] .site-footer a:hover {
  color: #6bb7ff;
}

.footer-bottom {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid #d5dfec;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #6f7b8f;
  font-size: 1.2rem;
}

[data-theme='dark'] .footer-bottom {
  border-top-color: #25384f;
  color: #97aac4;
}

.footer-bottom p {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  background: #0f1a2d;
  color: #f5f8ff;
  border: 1px solid #2b3e5c;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(6, 12, 22, 0.45);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-btn {
  border: 1px solid #425b80;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.cookie-accept {
  background: #2d95e9;
  color: #fff;
  border-color: transparent;
}

.cookie-reject {
  background: #1f3049;
  color: #eaf2ff;
}

.footer-bottom a {
  color: #4f5f76;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #2589d8;
}

.footer-brand-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-brand-links a {
  color: #4f5f76;
  font-size: inherit;
  text-decoration: none;
}

.footer-brand-links a:hover {
  color: #2589d8;
}

[data-theme='dark'] .footer-bottom a,
[data-theme='dark'] .footer-brand-links a {
  color: #9cb2cf;
}

[data-theme='dark'] .footer-bottom a:hover,
[data-theme='dark'] .footer-brand-links a:hover {
  color: #6bb7ff;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-home,
  .home-split,
  .home-band {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .input-grid {
    grid-template-columns: 1fr;
  }

  .upload-trigger {
    min-width: 0;
    width: 100%;
  }

  .eyebrow {
    padding: 7px 10px;
  }

  .hero-home-copy,
  .hero-rail-card,
  .hero-rail-stats,
  .home-band-card,
  .home-panel {
    padding: 18px;
  }

  .hero-points {
    display: grid;
  }

  .hero-points span {
    width: 100%;
    justify-content: flex-start;
  }

  .result-row,
  .queue-item {
    grid-template-columns: 1fr;
  }

  .queue-item-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-about h3 {
    font-size: 1.65rem;
  }

  .footer-about p,
  .site-footer a {
    font-size: 1rem;
  }

  .site-footer h4 {
    font-size: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    font-size: 0.95rem;
  }

  .footer-brand-links {
    gap: 8px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .social-share-menu {
    right: 0;
    left: auto;
    min-width: min(260px, 92vw);
  }
}
