/*
 * Flareo Studio – Base Design System
 * Converted from Tailwind CDN to production CSS
 * No external dependencies.
 */

/* ============================================================
   GOOGLE FONT IMPORT
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Core palette */
  --flr-bg:              oklch(0.07 0.01 280);
  --flr-fg:              oklch(0.98 0.01 280);
  --flr-surface:         oklch(0.11 0.02 280);
  --flr-surface-raised:  oklch(0.15 0.03 280);
  --flr-muted:           oklch(0.18 0.02 280);
  --flr-muted-fg:        oklch(0.65 0.03 280);
  --flr-border:          oklch(1 0 0 / 0.08);

  /* Brand colours */
  --flr-primary:         oklch(0.62 0.27 305);
  --flr-primary-fg:      oklch(0.98 0.01 280);
  --flr-secondary:       oklch(0.7 0.2 240);
  --flr-secondary-fg:    oklch(0.98 0.01 280);
  --flr-neon-purple:     oklch(0.62 0.27 305);
  --flr-neon-blue:       oklch(0.7 0.2 240);
  --flr-neon-pink:       oklch(0.7 0.25 330);

  /* Opacity variants (cached for reuse) */
  --flr-primary-20:      oklch(0.62 0.27 305 / 0.2);
  --flr-primary-30:      oklch(0.62 0.27 305 / 0.3);
  --flr-primary-50:      oklch(0.62 0.27 305 / 0.5);
  --flr-secondary-25:    oklch(0.7 0.2 240 / 0.25);
  --flr-secondary-30:    oklch(0.7 0.2 240 / 0.3);

  /* Typography */
  --flr-font:            "Space Grotesk", system-ui, -apple-system, sans-serif;

  /* Radii */
  --flr-radius-sm:       0.5rem;
  --flr-radius-md:       0.75rem;
  --flr-radius-lg:       1rem;
  --flr-radius-xl:       1.5rem;
  --flr-radius-2xl:      2rem;
  --flr-radius-full:     9999px;

  /* Spacing scale */
  --flr-space-1:  0.25rem;
  --flr-space-2:  0.5rem;
  --flr-space-3:  0.75rem;
  --flr-space-4:  1rem;
  --flr-space-5:  1.25rem;
  --flr-space-6:  1.5rem;
  --flr-space-8:  2rem;
  --flr-space-10: 2.5rem;
  --flr-space-12: 3rem;
  --flr-space-16: 4rem;
  --flr-space-20: 5rem;
  --flr-space-24: 6rem;
  --flr-space-32: 8rem;

  /* Max widths */
  --flr-max-w:    80rem;   /* 1280px */
  --flr-max-w-md: 48rem;

  /* Z-index layers */
  --flr-z-nav:       40;
  --flr-z-overlay:   50;
  --flr-z-cursor:    60;
  --flr-z-modal:     70;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--flr-border);
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--flr-bg);
  color: var(--flr-fg);
  font-family: var(--flr-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient gradient overlay — fixed, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%,   oklch(0.62 0.27 305 / 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%,  oklch(0.7  0.2  240 / 0.15), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, oklch(0.7  0.25 330 / 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--flr-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--flr-fg);
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { line-height: 1.7; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.flr-container {
  width: 100%;
  max-width: var(--flr-max-w);
  margin-inline: auto;
  padding-inline: var(--flr-space-6);
}

@media (max-width: 768px) {
  .flr-container { padding-inline: var(--flr-space-4); }
}

.flr-section { position: relative; }

/* Grid helpers */
.flr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--flr-space-5); }
.flr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--flr-space-5); }
.flr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--flr-space-4); }

@media (max-width: 1200px) {
  .flr-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .flr-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flr-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .flr-grid-2, .flr-grid-3, .flr-grid-4 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flr-flex         { display: flex; }
.flr-flex-center  { display: flex; align-items: center; justify-content: center; }
.flr-flex-between { display: flex; align-items: center; justify-content: space-between; }
.flr-flex-wrap    { display: flex; flex-wrap: wrap; gap: var(--flr-space-3); }

/* ============================================================
   COLOUR UTILITIES
   ============================================================ */
.flr-text-primary   { color: var(--flr-primary); }
.flr-text-secondary { color: var(--flr-secondary); }
.flr-text-muted     { color: var(--flr-muted-fg); }
.flr-text-fg        { color: var(--flr-fg); }

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

/* Neon gradient text */
.flr-text-gradient {
  background: linear-gradient(135deg, oklch(0.78 0.22 305), oklch(0.78 0.2 240));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   GRID BACKGROUND
   ============================================================ */
.flr-grid-bg {
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================================
   MASKS
   ============================================================ */
.flr-mask-top {
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black, transparent 70%);
}

.flr-mask-center {
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

/* ============================================================
   SPACING UTILITIES (section padding)
   ============================================================ */
.flr-py-sm  { padding-block: var(--flr-space-12); }
.flr-py-md  { padding-block: var(--flr-space-20); }
.flr-py-lg  { padding-block: var(--flr-space-24); }
.flr-py-xl  { padding-block: var(--flr-space-32); }

/* ============================================================
   ASPECT RATIOS
   ============================================================ */
.flr-aspect-square    { aspect-ratio: 1 / 1; }
.flr-aspect-video     { aspect-ratio: 16 / 9; }
.flr-aspect-portrait  { aspect-ratio: 4 / 5; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.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;
}

:focus-visible {
  outline: 2px solid var(--flr-primary);
  outline-offset: 3px;
  border-radius: var(--flr-radius-sm);
}

/* Skip link */
.flr-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--flr-primary);
  color: var(--flr-primary-fg);
  border-radius: var(--flr-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.flr-skip-link:focus { top: 1rem; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body::before { display: none; }
  header, footer, nav { display: none; }
}
