/* ===== Курсач — modern landing ===== */
:root {
  /* Brand gradient */
  --indigo:  #6366F1;
  --violet:  #8B5CF6;
  --fuchsia: #EC4899;
  --grad:    linear-gradient(110deg, #6366F1 0%, #8B5CF6 48%, #EC4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.16), rgba(236,72,153,.12));

  /* Surfaces */
  --bg:        #09090F;
  --bg-2:      #0D0D15;
  --surface:   rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --glass:     rgba(20,20,30,0.55);

  /* Text */
  --text:   #F7F7FB;
  --text-2: #A7A7B8;
  --text-3: #6C6C7E;

  /* Lines */
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --container: 1180px;
  --r:  20px;
  --r-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Aurora background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(99,102,241,.20), transparent 70%),
    radial-gradient(45% 45% at 90% 8%, rgba(236,72,153,.16), transparent 70%),
    radial-gradient(55% 45% at 50% 100%, rgba(139,92,246,.12), transparent 70%);
  pointer-events: none;
}
/* Subtle grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .display {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

/* ===== Line icons ===== */
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ===== Reveal on scroll (visible by default; hidden only when JS enables it) ===== */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal[data-d="1"] { transition-delay: .08s; }
.js-reveal .reveal[data-d="2"] { transition-delay: .16s; }
.js-reveal .reveal[data-d="3"] { transition-delay: .24s; }

/* ===== Top nav ===== */
.top-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9,9,15,0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.top-nav.scrolled { border-bottom-color: var(--border); background: rgba(9,9,15,0.82); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
  position: relative; flex-shrink: 0;
}
.brand-mark::after {
  content: 'К'; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; color: #fff;
}
.nav-links { display: none; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: auto; }
@media (min-width: 760px) {
  .nav-links { display: inline-flex; }
  .nav-cta { margin-left: 4px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; font-weight: 700; font-family: inherit;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .2s;
}
.btn:active { transform: scale(.96); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background-image: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(124,58,160,.4); position: relative; }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(236,72,153,.5); transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.22); }
.btn .tg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Eyebrow / chips ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  padding: 7px 14px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--violet); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; margin: 18px 0 0; }
.section-sub { color: var(--text-2); font-size: clamp(15px,1.6vw,18px); margin: 16px 0 0; }

.grad-text {
  background-image: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Hero ===== */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero-text .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 24px; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); margin: 0 0 34px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg); background: var(--grad);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2){ background: linear-gradient(135deg,#34D399,#0891B2);}
.avatars span:nth-child(3){ background: linear-gradient(135deg,#FB923C,#EF4444);}
.avatars span:nth-child(4){ background: linear-gradient(135deg,#A78BFA,#EC4899);}
.trust-text { font-size: 13.5px; color: var(--text-3); }
.trust-text b { color: var(--text); }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; position: relative; width: 100%; max-width: 340px; margin-inline: auto; }
.hero-visual::before {
  content: ''; position: absolute; width: 360px; height: 360px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(139,92,246,.4), transparent 70%);
  filter: blur(50px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 290px; aspect-ratio: 9/19.2;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(170deg, #23233a, #101019);
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 1px 1px rgba(255,255,255,.08);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
.phone-screen {
  width: 100%; height: 100%; border-radius: 31px; overflow: hidden;
  background: var(--bg-2); padding: 16px 13px;
  display: flex; flex-direction: column; gap: 11px;
}
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.screen-title { font-family: 'Unbounded',sans-serif; font-size: 14px; font-weight: 700; }
.screen-streak { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fuchsia); background: rgba(236,72,153,.12); padding: 4px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.screen-streak .ico { width: 12px; height: 12px; }
.screen-card {
  display: flex; gap: 11px; padding: 11px; align-items: center;
  background: var(--surface-2); border-radius: 15px; border: 1px solid var(--border);
}
.screen-cover { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.sc-1 { background: linear-gradient(135deg,#818CF8,#4F46E5); }
.sc-2 { background: linear-gradient(135deg,#34D399,#059669); }
.sc-3 { background: linear-gradient(135deg,#F472B6,#A855F7); }
.screen-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.14); }
.line.s { height: 6px; background: rgba(255,255,255,.08); }
.w-8{width:80%}.w-6{width:60%}.w-5{width:50%}.w-4{width:40%}.w-3{width:32%}
.screen-progress { margin-top: 2px; }
.screen-progress .bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.screen-progress .bar > i { display: block; height: 100%; width: 68%; background-image: var(--grad); border-radius: 6px; }
.screen-progress .pl { display: flex; justify-content: space-between; margin-top: 7px; font-family:'JetBrains Mono',monospace; font-size: 10px; color: var(--text-3); }
.screen-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 11px; border-top: 1px solid var(--border); }
.screen-tabbar span { width: 30px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.screen-tabbar .active { background-image: var(--grad); }

/* Floating badges around phone */
.badge {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  font-size: 13px; font-weight: 600;
  animation: floaty 7s ease-in-out infinite;
}
.badge .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background-image: var(--grad); color: #fff; }
.badge .ic .ico { width: 16px; height: 16px; }
.badge.b1 { top: 16%; left: -4%; animation-delay: .5s; }
.badge.b2 { bottom: 14%; right: -4%; animation-delay: 1.4s; }
.badge small { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; }
@media (max-width: 420px){ .badge.b1{left:0} .badge.b2{right:0} .badge{ padding: 8px 11px; font-size: 12px; } }

/* ===== Logos / marquee ===== */
.marquee-wrap { padding: 24px 0 8px; }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 22px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 9999px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 14px; color: var(--text-2); white-space: nowrap;
}
.chip i { width: 18px; height: 18px; border-radius: 6px; }

/* ===== Bento / how ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.bento {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  transition: border-color .25s ease, transform .25s ease, background .25s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); background: var(--surface-2); }
.card .ic-box {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-2);
  color: #C4B5FD;
}
.card .ic-box .ico { width: 24px; height: 24px; }
.card h3 { font-size: clamp(19px,2vw,22px); margin: 0 0 10px; font-family:'Manrope',sans-serif; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .step-n { font-family:'JetBrains Mono',monospace; font-size: 13px; color: var(--text-3); position: absolute; top: 24px; right: 26px; }
.col-3 { grid-column: span 1; }
.col-2 { grid-column: span 1; }
@media (min-width: 760px) {
  .col-3 { grid-column: span 3; }
  .col-2 { grid-column: span 2; }
  .col-6 { grid-column: span 6; }
}
/* feature card with glow */
.card.glow::before {
  content: ''; position: absolute; width: 200px; height: 200px; right: -40px; top: -40px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(236,72,153,.18), transparent 70%);
  pointer-events: none;
}

/* big stat card */
.stat-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.stat-card .big { font-family:'Unbounded',sans-serif; font-size: clamp(40px,6vw,60px); line-height: 1; font-weight: 800; }

/* ===== Categories ===== */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(4,1fr); } }
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: 15px;
  transition: transform .2s, border-color .2s, background .2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.cat-tile { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0,0,0,.3); display:grid; place-items:center; color: #fff; }
.cat-tile .ico { width: 22px; height: 22px; }
.grad-tech   { background: linear-gradient(135deg,#818CF8,#4F46E5); }
.grad-lang   { background: linear-gradient(135deg,#38BDF8,#6366F1); }
.grad-mkt    { background: linear-gradient(135deg,#34D399,#059669); }
.grad-design { background: linear-gradient(135deg,#F472B6,#A855F7); }
.grad-fit    { background: linear-gradient(135deg,#FB923C,#EF4444); }
.grad-diy    { background: linear-gradient(135deg,#FBBF24,#F97316); }
.grad-life   { background: linear-gradient(135deg,#2DD4BF,#0891B2); }
.grad-soft   { background: linear-gradient(135deg,#A78BFA,#EC4899); }

/* ===== Creators ===== */
.creators-inner {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(236,72,153,.10));
  padding: clamp(34px, 5vw, 64px);
}
.creators-inner::before {
  content:''; position:absolute; inset:0; z-index:0;
  background: radial-gradient(40% 60% at 100% 0%, rgba(236,72,153,.22), transparent 60%);
  pointer-events:none;
}
.creators-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 880px){ .creators-grid { grid-template-columns: 1.1fr .9fr; } }
.creators h2 { font-size: clamp(28px,4vw,44px); line-height: 1.06; margin: 18px 0 18px; }
.creators .lead { color: var(--text-2); font-size: clamp(15px,1.7vw,17px); margin: 0 0 30px; }
.kpi-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.kpi-row li { padding: 22px 18px; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--r); }
.kpi-value { display:block; font-family:'Unbounded',sans-serif; font-size: clamp(26px,3.6vw,38px); font-weight: 800; line-height: 1; }
.kpi-label { display:block; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }

/* ===== Final CTA ===== */
.final { text-align: center; }
.final-inner {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(48px,7vw,88px) 24px;
  background: var(--grad);
}
.final-inner::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(0,0,0,.35), transparent 60%);
}
.final-inner > * { position: relative; z-index: 1; }
.final-inner h2 { font-size: clamp(30px,5vw,56px); line-height: 1.04; color: #fff; margin: 0 0 18px; }
.final-inner p { color: rgba(255,255,255,.85); font-size: clamp(16px,2vw,19px); margin: 0 auto 32px; max-width: 480px; }
.final-inner .btn-light { background: #fff; color: #1a1030; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.final-inner .btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,.4); }

/* ===== Footer ===== */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--border); margin-top: clamp(64px,9vw,120px); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-family:'Unbounded',sans-serif; font-weight: 700; }
.footer-brand p { font-family:'Manrope',sans-serif; font-weight: 400; color: var(--text-3); font-size: 14px; margin: 4px 0 0; }
.footer-inner nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-inner nav a { font-size: 14px; color: var(--text-2); font-weight: 600; transition: color .15s; }
.footer-inner nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.copy { font-size: 13px; color: var(--text-3); margin: 0; }
@media (min-width: 760px) {
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* === Mobile overflow fix (narrow viewports) === */
@media (max-width: 519px) {
  .creators-inner { padding: clamp(20px, 5vw, 28px); }
  .creators h2   { font-size: clamp(22px, 6.5vw, 32px); }
  .kpi-row       { grid-template-columns: 1fr; gap: 12px; }
}
.kpi-row, .kpi-row li, .creators-grid > * { min-width: 0; }
.kpi-row li, .creators h2, .creators .lead { overflow-wrap: anywhere; }
