/* ===================================================================
   PS DETAILING — BASE CSS
   Design System: Instagram Graphic Style (White / Royal Blue / Black)
   =================================================================== */

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

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  color-scheme: light;

  /* Core Palette (from Instagram Graphics) */
  --bg:         #ffffff;
  --bg2:        #f8fafc;
  --bg3:        #f1f5f9;
  --panel:      #ffffff;
  --surface:    #f8fafc;

  /* Text (High contrast dark jet black and slate) */
  --text:       #050b14;
  --text-secondary: #1e293b;
  --muted:      #475569;
  --subtle:     #64748b;

  /* Borders */
  --line:       #e2e8f0;
  --line-light: #cbd5e1;
  --line-hover: #0066ff;

  /* Brand Colors (Vivid Electric Royal Blue) */
  --blue:       #0066ff;
  --blue-hover: #0052cc;
  --blue-glow:  rgba(0, 102, 255, 0.28);
  --blue-deep:  #0047b3;
  --blue-light: #e8f1ff;
  --ice:        #0066ff;
  --ice-light:  #38bdf8;

  /* Semantic */
  --success:    #16a34a;
  --warning:    #f59e0b;
  --error:      #ef4444;

  /* Typography */
  --font:       'DM Sans', system-ui, -apple-system, sans-serif;
  --display:    'Montserrat', 'DM Sans', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  96px;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-card: 20px;
  --radius-pill: 9999px;

  /* Shadows (Clean, vibrant royal blue glow & soft clean shadows) */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, .05);
  --shadow-md:  0 10px 30px rgba(0, 102, 255, .08);
  --shadow-lg:  0 20px 45px rgba(0, 102, 255, .14);
  --shadow-blue: 0 10px 25px rgba(0, 102, 255, .35);

  /* Transitions */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --ease-out:   cubic-bezier(0, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Header */
  --header-height: 75px;
  --announcement-height: 38px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--announcement-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(0, 102, 255, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* --- Typography (Slanted & Bold like Instagram graphics) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--text);
}

h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  margin: 12px 0 0;
}

h2 span {
  color: var(--blue);
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .02em;
}

p {
  margin: 0;
}

.eyebrow {
  color: var(--blue);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  display: flex;
  gap: 12px;
  align-items: center;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--blue);
}

.description {
  line-height: 1.75;
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
}

.bigtype {
  font-family: var(--display);
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.12;
  letter-spacing: .015em;
  text-transform: uppercase;
  font-weight: 800;
  font-style: italic;
}

/* --- Utility Classes --- */
.text-blue { color: var(--blue) !important; }
.text-dark { color: var(--text) !important; }
.text-muted { color: var(--muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 100ms; }
.stagger > *:nth-child(3) { transition-delay: 200ms; }
.stagger > *:nth-child(4) { transition-delay: 300ms; }
.stagger > *:nth-child(5) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
