/* Fonts */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/syne@5.0.14/files/syne-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/syne@5.0.14/files/syne-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/syne@5.0.14/files/syne-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/dm-sans@5.0.15/files/dm-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/dm-sans@5.0.15/files/dm-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/dm-sans@5.0.15/files/dm-sans-latin-500-normal.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--wh);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* Global responsive fix */
@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }
  body,
  html {
    width: 100%;
    max-width: 100%;
  }
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  z-index: 900;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* Custom cursor */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cur-dot {
  width: 7px;
  height: 7px;
  background: var(--acc);
  z-index: 9999;
}

.cur-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(176, 108, 251, 0.4);
  z-index: 9998;
  transition: all 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: none) {
  .cur-dot,
  .cur-ring {
    display: none;
  }
}

/* Shared section utilities */
section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 2rem);
  position: relative;
}

.cnt {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.eye {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 0.85rem;
}

.sec-h {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.sec-s {
  color: var(--sec-s);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
  max-width: 490px;
}

.div {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, transparent, var(--border-h), transparent);
}

/* Gradient text */
.gr {
  background: linear-gradient(135deg, var(--p200) 0%, var(--acc) 40%, var(--acc2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive tweaks for shared utilities */
@media (max-width: 768px) {
  section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  }
  .sec-h {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    margin-bottom: 0.8rem;
  }
  .sec-s {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .eye {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 480px) {
  .cnt {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

/* Download section buttons */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--p600), var(--acc), var(--acc2));
  color: #fff;
  text-decoration: none;
  padding: 0.88rem 1.9rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.97rem;
  box-shadow: 0 0 38px rgba(176, 108, 251, 0.22);
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(176, 108, 251, 0.42);
}

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--mi);
  text-decoration: none;
  padding: 0.88rem 1.7rem;
  border-radius: 100px;
  font-weight: 400;
  font-size: 0.97rem;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  transition: 0.3s;
}
.btn-g:hover {
  border-color: rgba(176, 108, 251, 0.5);
  color: var(--wh);
  transform: translateY(-2px);
}
