/* ============================================
   ZENTIQ — Design System & Global Styles
   Inspired by Zentry-level premium aesthetics
   ============================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Backgrounds */
  --bg-deep: #0c0c0c;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --bg-light: #dfdff2;
  --bg-white: #f5f5f5;

  /* Accents */
  --accent-primary: #b4f0a8;
  --accent-secondary: #a8c5f0;
  --accent-violet: #c4a8f0;
  --accent-warm: #f0c8a8;

  /* Text */
  --text-primary: #ededed;
  --text-secondary: #888888;
  --text-muted: #555555;
  --text-dark: #0c0c0c;
  --text-dark-secondary: #444444;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Container */
  --container-max: 1400px;
  --container-padding: 2rem;

  /* Nav */
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(180, 240, 168, 0.03) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 0px; }

::selection {
  background: rgba(180, 240, 168, 0.2);
  color: var(--accent-primary);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol { list-style: none; }

/* ── Typography ── */
.font-display {
  font-family: 'Syne', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Title Sizes */
.text-hero {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 800;
  line-height: 1.05;
  padding: 0.1em 0;
}

.text-title-xl {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
}

.text-title-lg {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
}

.text-title-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.text-body-lg {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.text-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.text-caption {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.text-small {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

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

.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

/* ── Sections ── */
.section {
  position: relative;
  overflow: hidden;
}

/* Theme-based sections */
.theme-dark {
  background-color: var(--bg-deep);
  color: var(--text-primary);
}

.theme-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.theme-white {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

/* ── Visibility for scroll animations ── */
[data-animate] {
  will-change: transform, opacity;
}

.word {
  display: inline-block;
  overflow: hidden;
  padding: 0.15em 0;
  vertical-align: bottom;
}

.word-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
  padding: 0 0.02em;
}

.line {
  display: block;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --nav-height: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }
}

/* ── LAPTOP & DESKTOP DENSITY SCALING (ZOOM OUT) ── */
@media (min-width: 1025px) {
  :root {
    --container-max: 1180px;
    --space-5xl: 6.5rem;
    --space-4xl: 5rem;
    --space-3xl: 4rem;
  }

  .hero__content {
    max-width: 960px;
    padding-top: calc(var(--nav-height) + 3.5rem) !important;
  }

  .text-hero {
    font-size: clamp(3rem, 4.8vw, 4.5rem) !important;
  }

  .hero__subtitle {
    font-size: 1rem;
    max-width: 520px;
  }

  .text-title-xl {
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
  }

  .intro__text {
    font-size: clamp(1.3rem, 1.8vw, 1.8rem) !important;
  }

  .bento-card__title {
    font-size: 1.35rem;
  }

  .bento-card__description {
    font-size: 0.88rem;
  }

  .pricing-card__price {
    font-size: 2.4rem;
  }
}
