@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #05050a;
  --bg2: #0c0c18;
  --bg3: #111120;
  --gold: #c8a96e;
  --gold-light: #e8ca8e;
  --gold-dim: rgba(200,169,110,0.15);
  --gold-glow: rgba(200,169,110,0.06);
  --white: #f0ece6;
  --gray: #5a5a6e;
  --gray-light: #9898aa;
  --border: rgba(200,169,110,0.1);
  --border-hover: rgba(200,169,110,0.35);
  --font-d: 'Syne', sans-serif;
  --font-m: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-d);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; cursor: none; }
ul { list-style: none; }
button { cursor: none; }

/* ─── 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.4;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-outer {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, border-color 0.2s, opacity 0.2s;
}
.cursor-outer::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 12px;
  background: rgba(200,169,110,0.6);
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
}
.cursor-outer::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1px;
  background: rgba(200,169,110,0.6);
  top: 50%;
  left: -17px;
  transform: translateY(-50%);
}
.cursor-inner {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}
.cursor-outer.hovered {
  transform: translate(-50%, -50%) scale(1.8);
  border-color: rgba(200,169,110,0.4);
}
.cursor-outer.clicking {
  transform: translate(-50%, -50%) scale(0.8);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(5,5,10,0.75);
  transition: padding 0.3s;
}
nav.scrolled { padding: 16px 60px; }
.nav-logo {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 44px;
}
.nav-links a {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gray-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-coords {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.12em;
  min-width: 160px;
  text-align: right;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero-eyebrow {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(64px, 13vw, 190px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.25s forwards;
}
.hero-title .t1 { color: var(--white); display: block; }
.hero-title .t2 {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  display: block;
}
.hero-sub {
  max-width: 400px;
  margin-top: 52px;
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 1s ease 0.45s forwards;
}
.hero-actions {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}
.topo-hero {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-52%);
  width: min(560px, 45vw);
  height: min(560px, 45vw);
  opacity: 0;
  animation: fadeIn 1.6s ease 0.8s forwards;
}
.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.scroll-hint span {
  font-family: var(--font-m);
  font-size: 8px;
  color: var(--gray);
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease infinite;
}

/* ─── BUTTONS ─── */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-p:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,169,110,0.25);
}
.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  border: 1px solid var(--border);
  color: var(--gray-light);
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.btn-g:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── SECTION BASICS ─── */
.s { padding: 120px 60px; position: relative; }
.s-label {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.s-label::before { content: ''; width: 22px; height: 1px; background: var(--gold); flex-shrink: 0; }
.s-num {
  position: absolute;
  top: 40px; right: 60px;
  font-size: clamp(100px,16vw,220px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200,169,110,0.05);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.05em;
  user-select: none;
}
.s-title {
  font-size: clamp(36px,5.5vw,80px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 20px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 60px;
}

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 80px;
}
.stat-item {
  background: var(--bg);
  padding: 56px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.stat-item:hover { background: var(--bg2); }
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.stat-item:hover::after { transform: scaleX(1); }
.stat-num {
  font-size: clamp(52px,7vw,88px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.stat-lbl {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 14px;
  display: block;
}

/* ─── WHY OFFLINE ─── */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  margin-top: 56px;
}
.why-text p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.9;
  margin-bottom: 36px;
}
.why-points { display: flex; flex-direction: column; gap: 18px; }
.why-pt {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.why-pt:hover { color: var(--gold); }
.why-pt::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── PREVIEW (HOME) ─── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
}
.prev-card {
  background: var(--bg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.prev-card:hover { background: var(--bg2); }
.prev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.prev-card:hover::before { transform: scaleX(1); }

/* ─── APP TAG ─── */
.tag {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid;
  margin-bottom: 24px;
}
.tag-free { color: #7fff6e; border-color: rgba(127,255,110,0.25); }
.tag-paid { color: var(--gold); border-color: var(--gold-dim); }

/* ─── APP NAME / PLATFORM ─── */
.app-nm {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.app-pl {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.app-dc {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.85;
  margin-bottom: 28px;
}
.app-rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.app-r-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.app-r-max {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gray);
}
.app-feats {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gray-light);
  letter-spacing: 0.06em;
}
.app-feat::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── FEATURES ─── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 80px;
}
.feat-item {
  background: var(--bg);
  padding: 60px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.feat-item::before {
  content: attr(data-n);
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
}
.feat-item:hover { background: var(--bg2); }
.feat-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color 0.3s;
}
.feat-item:hover .feat-icon { border-color: var(--gold); }
.feat-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.feat-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.feat-desc {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.85;
}

/* ─── APPS PAGE ─── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 80px;
}
.app-card {
  border: 1px solid var(--border);
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.app-card:hover::after { opacity: 1; }

/* ─── COMPARE TABLE ─── */
.compare-wrap {
  margin-top: 80px;
  border: 1px solid var(--border);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
thead tr {
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
th {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 22px 28px;
  text-align: left;
  font-weight: 400;
}
td {
  padding: 18px 28px;
  font-size: 13px;
  color: var(--gray-light);
  border-bottom: 1px solid rgba(200,169,110,0.04);
  vertical-align: middle;
  transition: color 0.2s;
}
tr:hover td { background: rgba(200,169,110,0.025); }
tr:hover td:first-child { color: var(--gold); }
td:first-child {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
}
.ck { color: var(--gold); font-size: 15px; }
.cx { color: var(--gray); font-size: 13px; }
.badge {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  display: inline-block;
}
.b-free { color: #7fff6e; border-color: rgba(127,255,110,0.25); }
.b-paid { color: var(--gold); border-color: var(--gold-dim); }
.b-free-p { color: #aee; border-color: rgba(170,238,238,0.25); }
.score {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* ─── CONTACT ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 80px;
}
.form-g { margin-bottom: 28px; }
.form-lbl {
  display: block;
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.form-inp, .form-ta {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  padding: 15px 20px;
  color: var(--white);
  font-family: var(--font-d);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-inp:focus, .form-ta:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.08);
}
.form-ta { height: 160px; resize: vertical; }
.contact-info-title {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1;
}
.c-detail { margin-bottom: 36px; }
.c-detail-lbl {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.c-detail-val {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.7;
}
.requisites-block {
  margin-top: 48px;
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
}
.requisites-block::before {
  content: 'РЕКВИЗИТЫ';
  position: absolute;
  top: -1px; left: 24px;
  background: var(--bg);
  padding: 0 10px;
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.3em;
  transform: translateY(-50%);
}
.req-placeholder {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  line-height: 1.8;
  font-style: italic;
}

/* ─── PAGE HERO ─── */
.pg-hero {
  padding: 180px 60px 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pg-hero-bg {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  width: 45%;
  opacity: 0.04;
  pointer-events: none;
}

/* ─── FOOTER ─── */
footer {
  padding: 44px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-logo {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.38em;
  text-transform: uppercase;
}
.f-links {
  display: flex;
  gap: 32px;
}
.f-links a {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.f-links a:hover { color: var(--gold); }
.f-copy {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9997;
  background: rgba(8,8,18,0.97);
  border-top: 1px solid var(--border);
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  backdrop-filter: blur(24px);
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
#cookie-banner.show { transform: translateY(0); }
.cookie-text {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  line-height: 1.75;
  max-width: 680px;
}
.cookie-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn-accept {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: none;
  cursor: none;
  transition: background 0.3s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-decline {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.cookie-btn-decline:hover { color: var(--white); border-color: var(--gray); }
@media (max-width: 900px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px 40px; gap: 16px; }
}
@media (max-width: 680px) {
  #cookie-banner { padding: 20px 24px; }
  .cookie-actions { flex-direction: column; width: 100%; }
}

/* ─── CONSENT CHECKBOX ─── */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: none;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
  cursor: none;
}
.consent-label span {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--gray-light);
  line-height: 1.75;
  letter-spacing: 0.04em;
}
.consent-label a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.r1 { transition-delay: 0.1s; }
.r2 { transition-delay: 0.2s; }
.r3 { transition-delay: 0.3s; }
.r4 { transition-delay: 0.4s; }
.r5 { transition-delay: 0.5s; }

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity:1; transform: scaleY(1); }
  50%     { opacity:0.3; transform: scaleY(0.6); }
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── TOPO SVG ─── */
.topo-hero path, .topo-hero ellipse, .topo-hero line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawPath 3s ease forwards;
}
.topo-hero path:nth-child(1)  { animation-delay: 0.0s; }
.topo-hero path:nth-child(2)  { animation-delay: 0.2s; }
.topo-hero path:nth-child(3)  { animation-delay: 0.4s; }
.topo-hero path:nth-child(4)  { animation-delay: 0.6s; }
.topo-hero path:nth-child(5)  { animation-delay: 0.8s; }
.topo-hero path:nth-child(6)  { animation-delay: 1.0s; }
.topo-hero path:nth-child(7)  { animation-delay: 1.2s; }
.topo-hero line               { animation-delay: 1.4s; animation-duration: 1.5s; }
.topo-hero circle             { animation: fadeIn 0.5s ease 2s both; }

/* ─── LOADING SCREEN ─── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-coords {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.3em;
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: loadBar 1.2s ease forwards;
}
.loader-label {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--gray);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
@keyframes loadBar {
  to { left: 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  nav { padding: 20px 40px; }
  .hero, .s, .pg-hero { padding-left: 40px; padding-right: 40px; }
  .divider { margin: 0 40px; }
  footer { padding: 40px; }
}
@media (max-width: 900px) {
  .feat-grid, .apps-grid, .preview-grid, .stats-grid { grid-template-columns: 1fr; }
  .why-layout, .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .nav-coords { display: none; }
  .topo-hero { display: none; }
}
@media (max-width: 680px) {
  nav { padding: 18px 24px; }
  .hero, .s, .pg-hero { padding-left: 24px; padding-right: 24px; }
  .nav-links { gap: 24px; }
  .nav-logo { font-size: 10px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .f-links { flex-wrap: wrap; justify-content: center; }
}
