﻿/* ==========================================================================
   Chaleco Studios - Core Design System & Global Styles
   Editorial, Cinematic, Dark Luxury, Contemporary
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-core: #070709;
  --bg-deep: #040405;
  --bg-surface: #0e0e12;
  --bg-surface-elevated: #16161d;
  --bg-surface-glass: rgba(14, 14, 18, 0.72);
  --bg-card: rgba(18, 18, 24, 0.85);

  /* Typography Colors */
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.72);
  --text-muted: rgba(245, 245, 247, 0.45);
  --text-dim: rgba(245, 245, 247, 0.28);

  /* Brand Accents */
  --studio-accent: #e63946;
  --studio-accent-glow: rgba(230, 57, 70, 0.25);
  --studio-gold: #c6a052;
  --studio-gold-glow: rgba(198, 160, 82, 0.2);

  /* Entity Accents */
  --hana-accent: #ec4899;
  --hana-glow: rgba(236, 72, 153, 0.2);
  --jreed-accent: #f59e0b;
  --jreed-glow: rgba(245, 158, 11, 0.2);

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-bright: rgba(255, 255, 255, 0.28);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 860px;
  --header-height: 72px;

  /* Typography Stacks */
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-core);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-core);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-smooth);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--studio-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--studio-accent);
}

.brand-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.brand-breadcrumbs .sep {
  opacity: 0.4;
}

.brand-breadcrumbs .current {
  color: var(--text-secondary);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--studio-accent);
  box-shadow: 0 0 8px var(--studio-accent);
}

.nav-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.28);
  color: #ff8b94;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--studio-accent);
  color: #fff;
  border-color: var(--studio-accent);
  box-shadow: 0 4px 18px var(--studio-accent-glow);
}

.btn-primary:hover {
  background: #f04856;
  border-color: #f04856;
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  color: #fff;
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 6px;
}

/* Platform-specific button pills */
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.platform-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.platform-btn.suno:hover {
  border-color: rgba(230, 57, 70, 0.6);
  background: rgba(230, 57, 70, 0.12);
  color: #ff8b94;
}

.platform-btn.spotify:hover {
  border-color: rgba(30, 215, 96, 0.6);
  background: rgba(30, 215, 96, 0.12);
  color: #1ed760;
}

.platform-btn.amazon:hover {
  border-color: rgba(255, 153, 0, 0.6);
  background: rgba(255, 153, 0, 0.12);
  color: #ff9900;
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--studio-accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-header.text-left .section-desc {
  margin: 0;
}

/* ==========================================================================
   Badges & Tags
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-studio {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #ff99a0;
}

.badge-hana {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

.badge-jreed {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.badge-dev {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 36px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-motto {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--studio-accent);
  font-weight: 700;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }
  
  .section {
    padding: 64px 0;
  }

  .main-nav {
    display: none;
  }

  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
