/* ArtList Design System — "The Gallery After Hours" Palette (Palette.swift) */
:root {
  /* Ink Axis (Surfaces, darkest -> lightest) */
  --ink: #07080a;        /* The canvas */
  --ink2: #0d0f13;       /* Cards & raised surfaces */
  --ink3: #15181e;       /* Controls on cards */
  --hairline: rgba(255, 255, 255, 0.08); /* Hairline separators */

  /* Bone Axis (Content) */
  --bone: #f4f1ea;       /* Primary text — warm off-white label card stock */
  --bone-dim: rgba(244, 241, 234, 0.62);   /* Secondary text */
  --bone-faint: rgba(244, 241, 234, 0.34); /* Tertiary text */
  --bone-whisper: rgba(244, 241, 234, 0.12); /* Whisper */

  /* Accent (Exactly one: warm brass gilt) */
  --gilt: #e8b577;
  --gilt-deep: #c98f4e;
  --gilt-glow: rgba(232, 181, 119, 0.15);

  /* Semantic (Reserved) */
  --patina: #7fd1b9;     /* Verified provenance truth signal */
  --vermilion: #ff4e3e;  /* Affection / likes only */
  --unknown: #8e949e;    /* Unverified state */

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--ink);
  color: var(--bone);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--ink);
}

/* Links */
a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bone);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
}

.brand-icon img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--bone-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* Single primary CTA accent button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gilt);
  color: var(--ink) !important;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--gilt-deep);
  color: var(--ink) !important;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink2);
  border: 1px solid var(--hairline);
  color: var(--bone-dim);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--bone);
}

.hero h1 span.gilt-accent {
  color: var(--gilt);
}

.hero p {
  font-size: 1.15rem;
  color: var(--bone-dim);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink2);
  border: 1px solid var(--hairline);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  color: var(--bone);
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.store-badge:hover {
  border-color: rgba(232, 181, 119, 0.4);
  background: var(--ink3);
  color: var(--bone);
  transform: translateY(-1px);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Hero Visual Showcase */
.hero-visual {
  max-width: 760px;
  margin: 0 auto;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.app-preview-card {
  max-width: 760px;
  margin: 24px auto 0;
  background: var(--ink2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: left;
}

.app-specimen {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--ink3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.specimen-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--patina); /* Oxidised copper green reserved strictly for verified signal */
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.specimen-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--patina);
}

/* Play button inside audio specimen uses gilt accent */
.play-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--gilt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Features Grid */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--bone);
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--bone-dim);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--ink2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(232, 181, 119, 0.3);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--ink3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gilt);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--bone);
}

.card p {
  color: var(--bone-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Policy & Terms Document Container */
.doc-section {
  padding: 60px 0;
}

.doc-card {
  background: var(--ink2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
}

.doc-header {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.doc-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--bone);
}

.doc-header p {
  color: var(--bone-dim);
  font-size: 0.9rem;
}

.doc-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--gilt);
}

.doc-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--bone);
}

.doc-content p, .doc-content ul {
  color: var(--bone-dim);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.doc-content ul {
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: var(--ink);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--bone-dim);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--bone);
}

.copyright {
  color: var(--bone-faint);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.02rem;
  }

  .nav-links {
    gap: 16px;
  }

  .doc-card {
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
