/* ============================================
   Dan & Sam Studios — Global CSS
   Design System: Bold Dark · Electric Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────── */
:root {
  --color-bg:           #060911;
  --color-surface:      #0b1120;
  --color-surface-2:    #101928;
  --color-surface-3:    #162033;

  --color-border:       rgba(255,255,255,0.06);
  --color-border-blue:  rgba(82,156,255,0.28);
  --color-border-gold:  rgba(255,183,76,0.22);

  /* Vivid electric palette */
  --color-primary:      #529cff;
  --color-primary-soft: #82bdff;
  --color-primary-dim:  rgba(82,156,255,0.10);
  --color-secondary:    #a78bfa;
  --color-secondary-dim:rgba(167,139,250,0.10);
  --color-accent:       #22d3ee;
  --color-accent-dim:   rgba(34,211,238,0.10);

  --color-gold:         #ffb74c;
  --color-gold-light:   #ffd27a;
  --color-gold-dim:     rgba(255,183,76,0.09);

  --color-text:         #eef2ff;
  --color-muted:        #8896b8;
  --color-muted-2:      #4a566e;
  --color-white:        #ffffff;

  --color-whatsapp:     #25D366;

  --font-display:  'Sora', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'SF Mono', 'Fira Code', monospace;

  --radius-xs:  4px;
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-blue:    0 0 60px rgba(82,156,255,0.18);
  --shadow-card:    0 4px 40px rgba(0,0,0,0.6);
  --shadow-deep:    0 24px 80px rgba(0,0,0,0.8);
  --shadow-subtle:  0 2px 16px rgba(0,0,0,0.4);
  --shadow-glow-sm: 0 0 20px rgba(82,156,255,0.25);

  --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:   1200px;
  --nav-height:  72px;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 10rem;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol { list-style: none; }

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

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 600; letter-spacing: -0.01em; }

p { line-height: 1.72; color: var(--color-muted); font-weight: 400; }

.text-primary { color: var(--color-primary); }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-muted); }
.text-white   { color: var(--color-white); }

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

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 { margin-bottom: var(--space-sm); }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.3rem 0.9rem;
  background: var(--color-primary-dim);
  border: 1px solid var(--color-border-blue);
  border-radius: 2rem;
}

/* ─── Grid utilities ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }

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

/* ─── Decorative divider ─────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--space-lg) 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.divider-icon { color: var(--color-primary); font-size: 1.2rem; }

/* ─── Page header ────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(82,156,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 { margin-bottom: var(--space-sm); }

.page-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* ─── Background effects ─────────────────────── */
.bg-grain { position: relative; }

.bg-grain::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}
