/* ================================================================
   POPMYWEBSITE — GLOBAL STYLES
   File: /css/global.css
   Design tokens — single source of truth
   ================================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Brand colors */
  --color-violet:       #4f4ce1;
  --color-violet-dark:  #3b38c4;
  --color-yellow:       #ffca58;
  --color-dark:         #1a1a2e;
  --color-anthracite:   #2D2D2D;
  --color-white:        #ffffff;

  /* Text */
  --color-text-primary:   #1a1a2e;
  --color-text-secondary: #5a5a6e;
  --color-text-muted:     #9999b8;

  /* Backgrounds */
  --color-bg-white:   #ffffff;
  --color-bg-light:   #f7f7fc;
  --color-bg-footer:  #1a1a2e;

  /* Borders */
  --color-border:       #ededfd;
  --color-border-dark:  #2a2a3e;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Font sizes */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   26px;
  --text-2xl:  32px;
  --text-3xl:  40px;
  --text-4xl:  54px;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  96px;

  /* Border radius */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(79,76,225,0.06);
  --shadow-md:  0 4px 16px rgba(79,76,225,0.12);
  --shadow-lg:  0 12px 40px rgba(79,76,225,0.16);

  /* Transitions */
  --transition: 0.2s ease;

  /* Max widths */
  --max-width:        1140px;
  --max-width-narrow: 720px;
  --max-width-text:   560px;

  /* Header height */
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: 1.7;
  background: var(--color-bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul { list-style: none; }

/* ── UTILITY CLASSES ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) var(--space-lg);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-violet);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: 0 4px 16px rgba(255,202,88,0.3);
}

.btn-yellow:hover { box-shadow: 0 8px 24px rgba(255,202,88,0.45); }

.btn-violet {
  background: var(--color-violet);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-violet:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

/* ── SECTION BACKGROUNDS ── */
.bg-white { background: var(--color-bg-white); }
.bg-light  { background: var(--color-bg-light); }
.bg-violet { background: var(--color-violet); }
.bg-yellow { background: var(--color-yellow); }
.bg-dark   { background: var(--color-bg-footer); }

/* ── RESPONSIVE BASE ── */
@media (max-width: 860px) {
  .container { padding: 0 var(--space-md); }
  .section { padding: 72px var(--space-md); }
  .section-title { font-size: var(--text-2xl); }
}

@media (max-width: 560px) {
  .section-title { font-size: 26px; }
  .btn { padding: 14px 24px; font-size: 14px; }
}
