/* =============================================================
   IT COMMODITY — BASE
   Переменные, reset, типографика, утилиты, анимации
   ============================================================= */

/* FONTS */
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('../fonts/Geologica-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('../fonts/Geologica-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geologica';
  src: url('../fonts/Geologica-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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


/* =============================================================
   ПЕРЕМЕННЫЕ
   ============================================================= */
:root {
  --bg:           #0d0d0d;
  --bg2:          #111114;
  --accent:       #00c8ff;
  --accent-hover: #33d4ff;
  --accent2:      #0090bb;
  --white:        #ffffff;
  --gray:         #6b6b7a;
  --gray2:        #1a1a22;
  --gray3:        #22222c;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Geologica', sans-serif;

  --page-px:    60px;
  --section-py: 120px;
  --header-h:   84px;
}

@media (max-width: 1024px) {
  :root {
    --page-px:    32px;
    --section-py: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-px:    20px;
    --section-py: 60px;
    --header-h:   68px;
  }
}


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

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

body {
  background:  var(--bg);
  color:       var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x:  hidden;
  cursor:      none;
  min-height:  100dvh;
}

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

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

button { font-family: inherit; cursor: none; }

@media (hover: none) {
  body   { cursor: auto; }
  button { cursor: pointer; }
}


/* =============================================================
   NOISE OVERLAY
   ============================================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
}


/* =============================================================
   КАСТОМНЫЙ КУРСОР
   ============================================================= */
.cursor {
  position:      fixed;
  width:         10px;
  height:        10px;
  background:    var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index:       9999;
  transition:    transform 0.15s ease, opacity 0.2s;
  transform:     translate(-50%, -50%);
}

.cursor-ring {
  position:      fixed;
  width:         36px;
  height:        36px;
  border:        1px solid rgba(0, 200, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index:       9998;
  transition:    transform 0.35s ease, width 0.3s, height 0.3s, opacity 0.2s;
  transform:     translate(-50%, -50%);
}

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


/* =============================================================
   ТИПОГРАФИКА — УТИЛИТЫ
   ============================================================= */
.section-label {
  font-size:      10px;
  font-weight:    500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  16px;
}


/* =============================================================
   КНОПКИ
   ============================================================= */
.btn-primary {
  background:     var(--accent);
  color:          var(--bg);
  font-family:    var(--font-body);
  font-size:      13px;
  font-weight:    700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding:        16px 36px;
  border:         none;
  cursor:         none;
  text-decoration: none;
  display:        inline-block;
  transition:     background 0.2s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-ghost {
  font-size:      13px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display:        inline-flex;
  align-items:    center;
  gap:            10px;
  transition:     color 0.2s;
  cursor:         none;
}
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover  { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(4px); }

@media (hover: none) {
  .btn-primary, .btn-ghost { cursor: pointer; }
}

@media (max-width: 768px) {
  .btn-primary { padding: 14px 28px; font-size: 12px; }
}


/* =============================================================
   SCROLL REVEAL
   ============================================================= */
.reveal {
  opacity:    0;
  transform:  translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1    { transition-delay: 0.1s; }
.reveal-delay-2    { transition-delay: 0.2s; }
.reveal-delay-3    { transition-delay: 0.3s; }

@media (max-width: 768px) {
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 { transition-delay: 0s; }
}


/* =============================================================
   АНИМАЦИИ
   ============================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}
