/* ==========================================================================
   GlitchedWaves Records — styles.css
   Premium monochrome SaaS system. Self-hosted font. Shared across pages.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #0f0f0f;
  --fg-muted: #6b6b6b;
  --fg-subtle: #9a9a9a;
  --border: #e8e8e8;
  --border-hover: #d0d0d0;
  --accent: #0f0f0f;
  --accent-hover: #262626;
  --accent-fg: #ffffff;
  --accent-soft: rgba(15, 15, 15, 0.04);
  --signal: #0ea5e9;
  --signal-soft: rgba(14, 165, 233, 0.1);
  --success: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 64px;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

html[data-theme='dark'] {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --fg: #fafafa;
  --fg-muted: #a0a0a0;
  --fg-subtle: #6b6b6b;
  --border: #262626;
  --border-hover: #404040;
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --accent-fg: #0a0a0a;
  --accent-soft: rgba(255, 255, 255, 0.05);
  --signal: #22d3ee;
  --signal-soft: rgba(34, 211, 238, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

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

html {
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  letter-spacing: 0.2px;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
}

em {
  font-style: normal;
  font-weight: 500;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.overline::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.7;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.9375rem 1.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary svg,
.btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Navigation                                                               */
/* ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  border-bottom-color: var(--border);
}

html[data-theme='dark'] .nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
}

.nav-inner {
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fg);
}

.logo-mark {
  width: 22px;
  height: 22px;
  color: var(--fg);
  flex-shrink: 0;
}

html[data-theme='dark'] .logo-mark {
  filter: invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--fg);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  transition: all 0.25s ease;
}

.theme-toggle:hover {
  color: var(--fg);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.icon-sun {
  display: none;
}

html[data-theme='dark'] .icon-moon {
  display: none;
}

html[data-theme='dark'] .icon-sun {
  display: block;
}

@media (min-width: 880px) {

  .nav-links,
  .nav-actions {
    display: flex;
  }

  .desktop-only {
    display: inline-flex;
  }
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 880px) {
  .hamburger {
    display: none;
  }
}

.mobile-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 99;
}

.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-panel a {
  padding: 1rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-sm);
}

.mobile-panel a:hover {
  background: var(--accent-soft);
}

.mobile-panel .btn-primary {
  margin-top: 1rem;
}

.mobile-panel-meta {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 880px) {
  .mobile-panel {
    display: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  padding: calc(var(--nav-h) + 5rem) 1.5rem 3rem;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero .lead {
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-visual {
  padding: 3rem 0 0;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.browser-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-dots span:nth-child(1) {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #febc2e;
}

.browser-dots span:nth-child(3) {
  background: #28c840;
}

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.browser-url svg {
  color: var(--success);
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.browser-screen {
  padding: 2rem 2.25rem 2.25rem;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.player-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.player-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.player-time {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}

#waveform-canvas {
  width: 100%;
  height: 120px;
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-h) + 3rem);
  }

  .browser-screen {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  #waveform-canvas {
    height: 92px;
  }
}

/* ---------------------------------------------------------------------- */
/* Proof bar                                                                */
/* ---------------------------------------------------------------------- */

.proof {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.proof-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.proof-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proof-label {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.proof-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

@media (max-width: 480px) {
  .proof-divider {
    display: none;
  }

  .proof-inner {
    gap: 1.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Section header                                                           */
/* ---------------------------------------------------------------------- */

.section-header {
  margin-bottom: 3.5rem;
}

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

.section-header.center .section-desc {
  margin: 1rem auto 0;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.6;
}

section {
  padding: 6rem 0;
}

@media (max-width: 640px) {
  section {
    padding: 4rem 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Features / genres grid                                                   */
/* ---------------------------------------------------------------------- */

.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 2rem;
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s ease;
}

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

.feature:nth-child(1) {
  transition-delay: 0.03s;
}

.feature:nth-child(2) {
  transition-delay: 0.06s;
}

.feature:nth-child(3) {
  transition-delay: 0.09s;
}

.feature:nth-child(4) {
  transition-delay: 0.12s;
}

.feature:nth-child(5) {
  transition-delay: 0.15s;
}

.feature:nth-child(6) {
  transition-delay: 0.18s;
}

.feature:nth-child(7) {
  transition-delay: 0.21s;
}

.feature:nth-child(8) {
  transition-delay: 0.24s;
}

.feature:hover {
  box-shadow: var(--shadow-sm);
}

.feature-index {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.875rem;
  display: block;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--fg);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.08);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------------- */
/* Story / About                                                           */
/* ---------------------------------------------------------------------- */

.story {
  padding: 6rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.story-content h2 {
  margin-bottom: 1rem;
}

.story-text {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.story-text:last-of-type {
  margin-bottom: 2.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  flex-shrink: 0;
  width: 5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-subtle);
}

.timeline-event {
  font-size: 0.9375rem;
  color: var(--fg);
}

.story-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

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

.stat-card:nth-child(1) {
  transition-delay: 0.05s;
}

.stat-card:nth-child(2) {
  transition-delay: 0.1s;
}

.stat-card:nth-child(3) {
  transition-delay: 0.15s;
}

.stat-card:nth-child(4) {
  transition-delay: 0.2s;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hover);
}

.stat-card.accent {
  background: var(--accent);
  border-color: var(--accent);
}

.stat-card.accent .stat-value,
.stat-card.accent .stat-label {
  color: var(--accent-fg);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ---------------------------------------------------------------------- */
/* Principles (about page)                                                  */
/* ---------------------------------------------------------------------- */

.principles-list {
  display: flex;
  flex-direction: column;
}

.principle-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.principle-row:last-child {
  border-bottom: 1px solid var(--border);
}

.principle-index {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.principle-body h3 {
  margin-bottom: 0.625rem;
}

.principle-body p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 620px;
}

@media (max-width: 600px) {
  .principle-row {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Steps (how it works)                                                     */
/* ---------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.step-card {
  padding: 2rem;
  background: var(--bg-elevated);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* CTA                                                                      */
/* ---------------------------------------------------------------------- */

.cta {
  padding: 6rem 0;
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
}

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

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.cta .overline {
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                             */
/* ---------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.channel-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.channel-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 18px;
  height: 18px;
}

.channel-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.channel-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.contact-form-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 2.25rem;
}

@media (max-width: 520px) {
  .contact-form-panel {
    padding: 1.5rem 1.25rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.form-row .field {
  margin-top: 0;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fg);
  outline: none;
}

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

.field-note {
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  margin-top: 1rem;
}

.field-note a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-panel .btn-primary {
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Page hero (about / contact)                                             */
/* ---------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 2rem;
  animation: fadeIn 0.8s ease-out;
}

.page-hero-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.page-hero-inner h1 {
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 2fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.375rem 0;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--fg-muted);
  transition: color 0.25s ease;
}

.footer-social a:hover {
  color: var(--fg);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* ---------------------------------------------------------------------- */
/* Licensing badges (track title tags: Free for use / All rights reserved) */
/* ---------------------------------------------------------------------- */

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.license-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.license-badge.is-free {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.license-badge.is-reserved {
  color: var(--fg-muted);
  background: var(--accent-soft);
}

.license-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* FAQ page                                                                 */
/* ---------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-question-icon svg {
  width: 11px;
  height: 11px;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item.is-open .faq-question-icon svg {
  color: var(--accent-fg);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 1.5rem 1.375rem;
  font-size: 0.9125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 640px;
}

.faq-answer p + p {
  padding-top: 0;
  margin-top: -0.75rem;
}

.faq-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 3rem 0 1rem;
}

.faq-group-title:first-of-type {
  margin-top: 0;
}
