/* === Creator Coin — Website Styles === */
/* Palette from approved UI design spec: dark ink, amber primary, cyan live accent */

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

:root {
  --bg: #0E0E0E;
  --surface: #0F0F0F;
  --surface-variant: #151515;
  --surface-elevated: #1A1A1A;
  --outline: #262626;
  --outline-variant: #1F1F1F;
  --text-primary: #F5F5F5;
  --text-secondary: #8A8A8E;
  --text-muted: #555558;
  --amber: #FFB300;
  --amber-dark: #C9A227;
  --amber-container: #3A2E0D;
  --cyan: #00BCD4;
  --cyan-surface: #0A6F7A;
  --doxed: #123C6A;
  --claimed: #29B256;
  --anon: #2F2F2F;
  --positive: #28A556;
  --negative: #D61C1B;
  --error: #FF5449;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* === Navigation === */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand .slogan {
  display: none;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .brand .slogan {
    display: inline;
  }
}

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

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface-variant);
}

.nav-links .btn-x {
  color: var(--cyan);
}

.nav-links .btn-x:hover {
  background: rgba(0, 188, 212, 0.1);
}

.nav-links .btn-apk {
  background: var(--amber);
  color: #1B1300;
  font-weight: 700;
  padding: 0.4rem 1rem;
}

.nav-links .btn-apk:hover {
  background: #ffc234;
  color: #1B1300;
}

/* === Main Layout === */

main {
  padding-top: 4.5rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* === Hero === */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 5rem 1.5rem 6rem;
  }
}

.hero-eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--amber);
}

.hero .slogan-line {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero .lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 55ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: #1B1300;
  border-color: var(--amber);
}

.btn-primary:hover {
  background: #ffc234;
  border-color: #ffc234;
  color: #1B1300;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--outline);
}

.btn-secondary:hover {
  background: var(--surface-variant);
  border-color: var(--text-secondary);
}

.btn-cyan {
  background: var(--cyan);
  color: #000000;
  border-color: var(--cyan);
}

.btn-cyan:hover {
  background: #26d6ee;
  color: #000000;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* === Stats Bar === */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.stat-card .number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
}

.stat-card .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* === Section Headers === */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Narrative Section === */

.narrative {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.narrative p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.narrative em {
  color: var(--amber);
  font-style: italic;
}

/* === Tabs Grid === */

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

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

@media (min-width: 900px) {
  .tabs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tab-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.tab-card:hover {
  border-color: var(--amber-container);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--outline);
  color: var(--amber);
}

.tab-icon svg {
  display: block;
}

.tab-icon-home svg { color: var(--amber); }
.tab-icon-search svg { color: var(--cyan); }
.tab-icon-watchlist svg { color: var(--amber); }
.tab-icon-me svg { color: var(--cyan); }

.tab-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tab-card .tab-name {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tab-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Screenshot Gallery === */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--amber-container);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--outline-variant);
}

.gallery-item .caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gallery-item .caption strong {
  color: var(--text-primary);
}

/* === Download Section === */

.download-section {
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-variant) 100%);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.download-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.download-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Footer === */

.footer {
  border-top: 1px solid var(--outline-variant);
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .footer-links {
    justify-content: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-copy {
    text-align: center;
  }
}

/* === Legal Document Pages === */

.document-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.document-header {
  margin-bottom: 2.5rem;
}

.document-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.document-header .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.document-content {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.document-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.document-content h2:first-child {
  margin-top: 0;
}

.document-content p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.document-content ul {
  margin-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
}

.document-content li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.document-content a {
  color: var(--amber);
}

.document-content a:hover {
  color: var(--cyan);
}

.document-content code {
  background: var(--surface-variant);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--cyan);
}

.document-content strong {
  color: var(--text-primary);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--amber);
}

/* === IP Page === */

.ip-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.ip-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.ip-page p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* === Utility === */

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

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* === Responsive refinements === */

@media (max-width: 600px) {
  .topbar-inner {
    padding: 0.6rem 1rem;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .brand img {
    width: 28px;
    height: 28px;
  }
  
  .nav-links a {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }
  
  .section {
    padding: 2.5rem 1rem;
  }
  
  .document-content {
    padding: 1.5rem;
  }
  
  .document-header h1 {
    font-size: 1.75rem;
  }
  
  .narrative {
    padding: 1.5rem;
  }
  
  .download-section {
    padding: 2rem 1.5rem;
  }
}