/* ==========================================================================
   INTENSITY - Global Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS / CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --color-button: #0F0F0F;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-border: #D9D9D9;
  --color-bg-light: #F2F2F2;
  --color-bg-very-light: #f9f9f9;
  --color-text-grey: #666666;
  --color-dark-border: #0D0D0D;
  --color-lila: #A314C6;
  --color-orange: #FF8800;
  --color-background: #FFFFFF;
  --accent-gradient: linear-gradient(90deg, #A314C6 0%, #FF8800 100%);
  --container-width: 1250px;

  /* Heading sizes */
  --size-h1: 55px;
  --size-h2: 45px;
  --size-h3: 35px;
  --size-h4: 30px;
  --size-h5: 25px;
  --size-h6: 22px;
  --size-accent: 20px;

  /* Paragraph sizes */
  --size-p-xl: 20px;
  --size-p-large: 18px;
  --size-p: 16px;
  --size-p-small: 14px;
}

/* --------------------------------------------------------------------------
   2. @FONT-FACE — Inter (locally hosted)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2'),
       url('../assets/fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/Inter-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Bold.woff2') format('woff2'),
       url('../assets/fonts/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gloria Hallelujah';
  src: url('../assets/fonts/GloriaHallelujah-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-black);
  background-color: var(--color-background);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY — Desktop (default)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--size-h1);
}

h2 {
  font-size: var(--size-h2);
}

h3 {
  font-size: var(--size-h3);
}

h4 {
  font-size: var(--size-h4);
}

h5 {
  font-size: var(--size-h5);
}

h6 {
  font-size: var(--size-h6);
}

.accent {
  font-weight: 400;
  font-size: var(--size-accent);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: fit-content;
}

p {
  font-weight: 400;
  font-size: var(--size-p);
  line-height: 1.3;
}

p.small {
  font-size: var(--size-p-small);
}

p.large {
  font-size: var(--size-p-large);
}

p.xl {
  font-size: var(--size-p-xl);
}

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY — Tablet (max-width: 768px) ~15% smaller
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --size-h1: 47px;
    --size-h2: 38px;
    --size-h3: 30px;
    --size-h4: 26px;
    --size-h5: 21px;
    --size-h6: 19px;
    --size-accent: 19px;
    --size-p-large: 18px;
    --size-p-xl: 18px;
  }
}

/* --------------------------------------------------------------------------
   6. TYPOGRAPHY — Mobile (max-width: 480px) ~25% smaller
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --size-h1: 41px;
    --size-h2: 34px;
    --size-h3: 26px;
    --size-h4: 23px;
    --size-h5: 20px;
    --size-h6: 17px;
    --size-accent: 19px;
    --size-p-large: 18px;
    --size-p-xl: 17px;
  }
}

/* --------------------------------------------------------------------------
   7. BUTTON — .btn (gradient border, animated on hover)
   -------------------------------------------------------------------------- */
@keyframes borderFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.btn {
  position: relative;
  display: inline-block;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-white);
  background: var(--color-button);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s ease;
  z-index: 0;
  width: fit-content
}

/* Gradient border — always visible */
.btn::before {
  content: '';
  position: absolute;
  inset: -0.5px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--color-lila), var(--color-orange), var(--color-lila));
  background-size: 200% 100%;
  z-index: -1;
}

/* Inner mask — keeps button background black */
.btn::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: 10px;
  background: var(--color-button);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   8. BUTTON HOVER — flowing gradient + scale
   -------------------------------------------------------------------------- */
.btn:hover {
  transform: scale(1.02);
}

.btn:hover::before {
  animation: borderFlow 1.5s linear infinite;
}

/* --------------------------------------------------------------------------
   8b. BUTTON — .btn--white variant
   -------------------------------------------------------------------------- */
.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--white::before {
  background: linear-gradient(90deg, var(--color-lila), var(--color-orange), var(--color-lila));
  background-size: 200% 100%;
}

.btn--white::after {
  background: var(--color-white);
}

.btn--white:hover::before {
  animation: borderFlow 1.5s linear infinite;
}

/* --------------------------------------------------------------------------
   9. CONTAINER
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
  }
}
