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

:root {
  --bg:           #06060f;
  --purple:       #7c3aed;
  --purple-light: #a855f7;
  --purple-bright:#c084fc;
  --pink:         #ec4899;
  --text:         #ffffff;
  --muted:        #8888aa;
  --border:       rgba(255,255,255,0.08);
  --card-bg:      rgba(255,255,255,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 5px;
  background: rgba(10,10,22,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  z-index: 200;
}

.tab {
  padding: 10px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.tab.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
}

.tab:not(.active):hover { color: var(--text); }

/* ── PAGE SWITCHING ── */
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.45s ease both; }

/* ── HERO ── */
.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 70px;
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-1 {
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(124,58,237,0.30) 0%,
    rgba(124,58,237,0.07) 50%,
    transparent 70%);
}

.orb-2 {
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(ellipse at center,
    rgba(192,132,252,0.20) 0%,
    transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple-bright);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple-bright);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 38px;
}

/* hero-actions removed — tabs handle navigation */

/* ── SECTION HEADER ── */
.section-wrap {
  padding: 90px 24px 70px;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.section-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-badge::before,
.section-badge::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--purple-light);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto 52px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.feat-card       { grid-column: span 2; }
.feat-card-wide  { grid-column: span 3; }

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  cursor: default;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s,
              opacity 0.55s ease, translate 0.55s ease;
  opacity: 0;
  translate: 0 28px;
}

.feat-card.in-view {
  opacity: 1;
  translate: 0 0;
}

.feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 18px 48px rgba(124,58,237,0.15);
}

/* stagger */
.cards-grid .feat-card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .feat-card:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .feat-card:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .feat-card:nth-child(4) { transition-delay: 0.26s; }
.cards-grid .feat-card:nth-child(5) { transition-delay: 0.33s; }

.card-img-wrap {
  width: 100%;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.feat-card:hover .card-img-wrap img { transform: scale(1.03); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(6,6,15,0.75) 100%);
}

.card-body { padding: 18px 20px 22px; }

.card-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(124,58,237,0.18);
  line-height: 1;
  margin-bottom: 4px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* zhenya uses same purple accent as yarik */
.zhenya-card .card-num { color: rgba(124,58,237,0.18); }
.zhenya-card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 18px 48px rgba(124,58,237,0.15);
}

/* cards on active page show immediately */
.page.active .feat-card { opacity: 1; translate: 0 0; }
.page.active .cards-grid .feat-card:nth-child(1) { animation: fadeUp 0.45s 0.04s ease both; }
.page.active .cards-grid .feat-card:nth-child(2) { animation: fadeUp 0.45s 0.10s ease both; }
.page.active .cards-grid .feat-card:nth-child(3) { animation: fadeUp 0.45s 0.16s ease both; }
.page.active .cards-grid .feat-card:nth-child(4) { animation: fadeUp 0.45s 0.22s ease both; }
.page.active .cards-grid .feat-card:nth-child(5) { animation: fadeUp 0.45s 0.28s ease both; }

/* ── CAT ── */
.cat-section {
  padding: 56px 24px 90px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cat-img {
  max-width: 380px;
  width: 90%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── YARIK: BLUE THEME ── */
#page-yarik .orb-1 {
  background: radial-gradient(ellipse at center,
    rgba(37,99,235,0.32) 0%,
    rgba(14,165,233,0.08) 50%,
    transparent 70%);
}

#page-yarik .orb-2 {
  background: radial-gradient(ellipse at center,
    rgba(96,165,250,0.22) 0%,
    transparent 70%);
}

#page-yarik .hero-badge {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.30);
  color: #93c5fd;
}

#page-yarik .badge-dot { background: #93c5fd; }

#page-yarik .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#page-yarik .feat-card:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 18px 48px rgba(59,130,246,0.15);
}

#page-yarik .card-num { color: rgba(59,130,246,0.18); }

.tab[data-tab="yarik"].active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}

/* ── DISCLAIMER ── */
.disclaimer {
  margin-top: 28px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .nav-links { display: none; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card      { grid-column: span 1; }
  .feat-card-wide { grid-column: span 2; }
}

@media (max-width: 500px) {
  .cards-grid { grid-template-columns: 1fr; }
  .feat-card, .feat-card-wide { grid-column: span 1; }
}
