/* === CSL Brand System === */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  /* Brand Colors */
  --gold: #D4A017;
  --gold-soft: #E8C860;
  --gold-warm: #F5E6B8;
  --gold-pale: #FBF3DC;
  --sky: #87CEEB;
  --sky-soft: #B5DFF5;
  --sky-pale: #E4F3FB;
  --sky-wash: #EFF8FD;
  --teal-footer: #8FD4D9;
  --cream: #FFFCF5;
  --warm-bg: #FDF9F1;
  --text: #2E2E2E;
  --text-mid: #555555;
  --text-soft: #777777;
  --text-muted: #A0A0A0;
  --border: #E8E2D5;
  --border-light: #F0ECE3;
  --white: #FFFFFF;
  --cp-black: #0D0D0D;
  --cp-gold-gradient: linear-gradient(135deg, #D4A017 0%, #F5D060 100%);
  --cp-dark-gradient: linear-gradient(135deg, #0D0D0D 0%, #1A1A2E 100%);
  --cp-sky-gradient: linear-gradient(135deg, #87CEEB 0%, #8FD4D9 100%);
  --success: #38A169;
  --warning: #D69E2E;
  --danger: #E53E3E;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* === Utility Classes === */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.75;
}

/* === Button Styles === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #C4920F;
  transform: translateY(-1px);
}

.btn-sky {
  background: var(--sky);
  color: var(--white);
}
.btn-sky:hover {
  background: #6FC1E3;
}

.btn-soft {
  background: var(--cream);
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-soft:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 0.92rem;
}

/* === Card === */

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* === Animations === */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

/* === Score Colors === */

.score-red { color: var(--danger); }
.score-yellow { color: var(--warning); }
.score-green { color: var(--success); }

.score-bg-red { background: #FED7D7; }
.score-bg-yellow { background: #FEFCBF; }
.score-bg-green { background: #C6F6D5; }

/* === Stars === */

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* === Responsive === */

@media (max-width: 768px) {
  .container, .container-wide {
    padding: 0 var(--space-md);
  }
  .btn-sm {
    padding: 0.6rem 1rem;
    min-height: 44px;
  }
}
