/**
 * Main Design System & Global Stylesheet
 * Premium Cinematic Artist Platform - RINOSH
 */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  /* Color Palette */
  --bg-main: #080808;
  --bg-secondary: #121212;
  --bg-surface: #191919;
  --bg-card: #202020;
  --bg-card-hover: #262626;

  --text-primary: #F5F2ED;
  --text-secondary: #A6A19B;
  --text-muted: #6B6661;
  
  --accent-gold: #D4AF37;
  --accent-gold-hover: #E5C07B;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  --accent-cream: #F0E6D2;

  --border-subtle: rgba(245, 242, 237, 0.08);
  --border-medium: rgba(245, 242, 237, 0.16);
  --border-gold: rgba(212, 175, 55, 0.35);

  /* Scrapbook Accents */
  --tape-color: rgba(238, 232, 222, 0.82);
  --tape-kraft: rgba(188, 143, 98, 0.82);
  --paper-bg: #151513;
  --paper-border: #282723;

  /* Typography Stacks */
  --font-display: 'Cinzel', 'Syne', -apple-system, sans-serif;
  --font-heading: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-handwritten: 'Caveat', cursive;
  --font-mono: 'SF Mono', Monaco, Menlo, Consolas, monospace;

  /* Layout & Spacing */
  --container-max: 1380px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad: clamp(5rem, 10vw, 9.5rem);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
  --transition-slow: 0.7s var(--ease-smooth);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 40px var(--accent-gold-glow);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Film Grain Texture Overlay */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url('../images/grain.svg');
  background-repeat: repeat;
  background-size: 240px 240px;
}

/* Links & Interactive */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  position: relative;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.section-darker {
  background-color: var(--bg-secondary);
}

.section-surface {
  background-color: var(--bg-surface);
}

/* Section Header Styles */
.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  position: relative;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-description {
  margin-top: 1rem;
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section-header.center .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-gold);
  color: #080808;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  color: #080808;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent-gold);
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Icon Generic */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* Accessibility & Reduced Motion */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
