/* ══════════════════════════════════════════
   SQP SITE — STYLES (maket-2, light theme)
   ══════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(1.75rem, 1rem + 2vw, 2.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* LIGHT THEME (Default) */
  --color-bg: #ffffff;
  --color-bg-subtle: #f9f9f9;
  --color-border: #e5e7eb;
  --color-border-hover: #000000;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-text-faint: #888888;
  --color-accent: #000000;
  --color-accent-contrast: #ffffff;
  --color-card-bg: #ffffff;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* DARK THEME */
[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-bg-subtle: #121212;
  --color-border: #222222;
  --color-border-hover: #ffffff;
  --color-text: #eeeeee;
  --color-text-muted: #aaaaaa;
  --color-text-faint: #666666;
  --color-accent: #ffffff;
  --color-accent-contrast: #000000;
  --color-card-bg: #111111;
}

/* ─── BASE RESET ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  animation: fadeInBody 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Отключаем стандартный курсор на десктопах для ощущения полной кастомизации */
@media (min-width: 901px) {
  body, a, button, input {
    cursor: none !important;
  }
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

/* ─── NAVIGATION ─── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(var(--color-bg), 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 48px;
  width: auto;
}

.logo-svg path, .logo-svg text {
  fill: var(--color-text);
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-btn {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-btn:hover {
  border-color: var(--color-border-hover);
}

/* ─── HERO SECTION ─── */
.hero-section {
  padding-top: calc(70px + var(--space-20));
  padding-bottom: var(--space-16);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.hero-graphics {
  display: flex;
  justify-content: center;
}

.sparkle-illustration {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.sparkle-illustration path {
  fill: var(--color-text);
}

/* ─── FEATURES (UZUM DISCOUNT) ─── */
.features-section {
  padding: var(--space-20) 0;
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
}

.card-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.card-content {
  margin-top: var(--space-8);
}

.card-title {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ─── ABOUT SECTION ─── */
.about-section {
  padding: var(--space-24) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.about-title {
  font-size: var(--text-xl);
  max-width: 400px;
}

.about-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-text p {
  margin-bottom: var(--space-4);
}

/* ─── CONTACT SECTION ─── */
.contact-section {
  padding: var(--space-20) 0 var(--space-24) 0;
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  max-width: 600px;
}

.contact-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.contact-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-lg);
  font-weight: 500;
  width: fit-content;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-arrow {
  margin-left: var(--space-2);
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-faint);
}

/* ─── PREMIUM SCROLL REVEAL (АНИМАЦИИ) ─── */
.reveal {
  opacity: 0;
  transform: translateY(35px); /* Мягкое глубокое выплывание */
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }

/* ─── CUSTOM CURSOR (СТИЛИ КУРСOРА) ─── */
.custom-cursor {
  width: 10px;
  height: 10px;
  background-color: var(--color-text);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Чтобы курсор не мешал кликам */
  z-index: 9999;
  mix-blend-mode: difference; /* Эффект инверсии цвета на темном/светлом */
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Состояние курсора при наведении на кликабельные элементы */
.custom-cursor.hovered {
  width: 45px;
  height: 45px;
  background-color: #fff;
}

/* Отключаем кастомный курсор на мобилках и планшетах, где нет мышки */
@media (max-width: 900px) {
  .custom-cursor {
    display: none !important;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .hero-graphics {
    order: -1;
    justify-content: flex-start;
  }
  .sparkle-illustration {
    max-width: 180px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}
/* ─── STAR + ORBIT ANIMATION ─── */
.star-ring {
  width: min(280px, 90%);
  aspect-ratio: 1;
}

.star-svg {
  width: 100%;
  height: 100%;
  color: var(--color-text);
  animation: starRotate 24s linear infinite;
}

.star-shape {
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--color-text) 20%, transparent));
}

.orbit-dot {
  animation: orbitDot 24s linear infinite;
  transform-origin: 100px 100px;
}

@keyframes starRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbitDot {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* ─── LOGO: dark-mode invert ─── */
[data-theme="dark"] .logo-svg {
  filter: invert(1);
}
