/* abr1ght static template
   Страницы:
   /index.html  -> главная
   /files.html  -> файлы
   /assets/...  -> css/js/картинки/3D
   /downloads/  -> реальные скачиваемые файлы через nginx alias
*/

:root {
  --bg: #05070a;
  --bg-2: #0b0f14;
  --panel: rgba(255, 255, 255, .055);
  --panel-border: rgba(255, 255, 255, .12);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, .66);
  --muted-2: rgba(245, 247, 251, .42);
  --blue: #78b9ff;
  --blue-2: #1b75ff;
  --blue-soft: #dceeff;
  --ink: #0a0c10;
  --line: rgba(10, 24, 45, .10);
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 64px);
  background: rgba(4, 6, 10, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px);
}

.brand {
  justify-self: start;
  font-size: 28px;
  line-height: 1;
  font-weight: 740;
  letter-spacing: -.055em;
}

.brand span {
  color: var(--blue);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  font-size: 15px;
  color: rgba(255, 255, 255, .62);
}

.main-nav a {
  transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.theme-toggle {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .9) 0 2px, transparent 3px),
    rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  cursor: pointer;
}

.theme-toggle span {
  display: block;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
}

.hero-dark {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(70px, 8vw, 110px) clamp(24px, 5.4vw, 74px);
  background:
    radial-gradient(circle at 78% 64%, rgba(64, 142, 255, .22), transparent 29%),
    radial-gradient(circle at 56% 78%, rgba(114, 191, 255, .16), transparent 22%),
    linear-gradient(120deg, #030509 0%, #060a0f 48%, #0b1119 100%);
}

.hero-dark::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to top, rgba(9, 14, 19, .92), transparent);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 30px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow.muted {
  color: rgba(145, 177, 214, .7);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 8vw, 96px);
  line-height: .97;
  letter-spacing: -.07em;
  font-weight: 780;
}

.lead {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 650;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #07111d;
  background: linear-gradient(180deg, #d9efff, #77b9ff 56%, #58a7ff);
  box-shadow: 0 18px 42px rgba(78, 166, 255, .32), inset 0 0 0 1px rgba(255,255,255,.54);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .16);
}

.btn-dark {
  color: #fff;
  background: #06090d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1000px;
}

.orbital-shell {
  position: relative;
  width: min(50vw, 720px);
  height: min(42vw, 560px);
  transform: rotateX(58deg) rotateZ(-22deg);
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}

.orbital-shell span {
  position: absolute;
  left: calc(50% - 190px + var(--i) * 26px);
  top: calc(50% - 190px + var(--i) * 7px);
  width: 360px;
  height: 250px;
  border-radius: 54% 46% 44% 56% / 50% 55% 45% 50%;
  transform:
    rotateY(calc(-38deg + var(--i) * 7deg))
    translateZ(calc(var(--i) * 22px));
  background:
    linear-gradient(90deg, rgba(1,8,22,.98) 0%, rgba(19, 63, 122, .95) 40%, rgba(206, 238, 255, .98) 55%, rgba(18, 82, 166, .98) 67%, rgba(1,8,22,.92) 100%);
  box-shadow:
    inset -18px -16px 32px rgba(0, 0, 0, .55),
    inset 14px 12px 28px rgba(255,255,255,.28),
    0 0 34px rgba(87, 170, 255, .3);
  border: 1px solid rgba(185, 225, 255, .36);
}

.light-pool {
  position: absolute;
  width: 520px;
  height: 160px;
  bottom: 84px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(112, 188, 255, .45), rgba(26, 78, 143, .12) 48%, transparent 72%);
  filter: blur(18px);
  transform: rotate(-8deg);
}

.section {
  padding: clamp(60px, 7vw, 96px) clamp(24px, 5.4vw, 74px);
}

.section-dark {
  background:
    radial-gradient(circle at 20% 0%, rgba(68, 143, 255, .10), transparent 30%),
    linear-gradient(180deg, #090e13, #071015);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  min-height: 310px;
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.feature-card h2 {
  margin: 38px 0 12px;
  font-size: 25px;
  letter-spacing: -.04em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-card a {
  position: absolute;
  right: 26px;
  bottom: 24px;
  color: rgba(255, 255, 255, .7);
  font-size: 30px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #bfe5ff, #267bd9);
  box-shadow: 0 12px 38px rgba(69, 157, 255, .28);
}

.motion-icon {
  border-radius: 999px 18px 999px 18px;
  clip-path: polygon(0 35%, 70% 35%, 70% 22%, 100% 50%, 70% 78%, 70% 65%, 0 65%);
}

.cube-icon {
  clip-path: polygon(50% 0, 100% 28%, 100% 74%, 50% 100%, 0 74%, 0 28%);
}

.file-icon {
  border-radius: 12px 24px 12px 12px;
}

.lab-icon {
  clip-path: polygon(38% 0, 62% 0, 62% 45%, 94% 100%, 6% 100%, 38% 45%);
}

.statement-section {
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(430px, 1.18fr);
  align-items: center;
  gap: 40px;
  padding: clamp(64px, 8vw, 110px) clamp(24px, 5.4vw, 74px);
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 40%, rgba(110, 180, 255, .18), transparent 28%),
    linear-gradient(180deg, #f7fbff, #eef5fc);
}

.statement-copy {
  max-width: 560px;
}

.statement-copy h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.065em;
}

.statement-copy p:not(.eyebrow) {
  margin: 30px 0 34px;
  max-width: 470px;
  color: rgba(5, 12, 20, .58);
  font-size: 18px;
  line-height: 1.55;
}

.statement-visual {
  position: relative;
  min-height: 460px;
  perspective: 1100px;
}

.glass-device {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 720px;
  height: 360px;
  border-radius: 60px;
  transform: rotateX(62deg) rotateZ(-12deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(150, 205, 255, .28)),
    repeating-linear-gradient(90deg, rgba(5,26,50,.18) 0 42px, transparent 42px 82px);
  border: 1px solid rgba(20, 80, 140, .16);
  box-shadow: 0 42px 90px rgba(30, 75, 120, .25), inset 0 2px 0 rgba(255,255,255,.8);
}

.glass-device span {
  position: absolute;
  top: 52px;
  width: 54px;
  height: 260px;
  border-radius: 34px;
  background: linear-gradient(180deg, #051120, #62b8ff 50%, #dff5ff);
  box-shadow: inset 9px 0 18px rgba(255,255,255,.36);
  opacity: .86;
}

.glass-device span:nth-child(1) { left: 70px; }
.glass-device span:nth-child(2) { left: 170px; }
.glass-device span:nth-child(3) { left: 270px; }
.glass-device span:nth-child(4) { left: 370px; }
.glass-device span:nth-child(5) { left: 470px; }

.files-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: 30px;
  padding: clamp(70px, 8vw, 110px) clamp(24px, 5.4vw, 74px);
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 38%, rgba(89, 166, 255, .25), transparent 30%),
    linear-gradient(180deg, #f7fbff, #edf5ff);
}

.files-hero h1 {
  margin: 0;
  font-size: clamp(72px, 10vw, 136px);
  line-height: .88;
  letter-spacing: -.085em;
  color: #05070b;
}

.files-hero h1 span {
  color: var(--blue-2);
}

.files-hero .lead {
  max-width: 560px;
  color: rgba(5, 12, 20, .62);
}

.folder-visual {
  position: relative;
  min-height: 360px;
  perspective: 1000px;
}

.folder-body {
  position: absolute;
  right: 12%;
  top: 12%;
  width: min(44vw, 520px);
  height: 260px;
  border-radius: 36px;
  transform: rotateY(-22deg) rotateX(10deg) rotateZ(-4deg);
  background:
    linear-gradient(120deg, rgba(255,255,255,.85), transparent 35%),
    linear-gradient(135deg, #081827, #0f61b8 45%, #a3d9ff);
  box-shadow: 0 42px 70px rgba(42, 111, 190, .28), inset 0 0 0 1px rgba(255,255,255,.44);
}

.folder-body::before {
  content: "";
  position: absolute;
  inset: 22px -34px 22px 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.44), rgba(16, 86, 168, .72));
  transform: translateZ(-28px);
  filter: blur(.2px);
}

.folder-visual i {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d8efff, #0a70d6 70%, #05244a);
  box-shadow: 0 16px 32px rgba(38, 123, 218, .28);
}

.folder-visual i:nth-child(2) { right: 2%; top: 20%; }
.folder-visual i:nth-child(3) { right: 16%; top: 68%; transform: scale(.72); }
.folder-visual i:nth-child(4) { right: 54%; top: 45%; transform: scale(.54); }

.downloads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  padding: 0 clamp(24px, 5.4vw, 74px) 70px;
  color: var(--ink);
  background: linear-gradient(180deg, #edf5ff, #f8fbff);
}

.downloads-main {
  min-width: 0;
}

.featured-download {
  min-height: 260px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 38px;
  padding: 38px;
  margin-top: -42px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 24% 45%, rgba(76, 157, 255, .24), transparent 28%),
    linear-gradient(135deg, #05080d, #09131d 62%, #04070b);
  box-shadow: var(--shadow);
}

.download-cube {
  width: 150px;
  height: 150px;
  margin: auto;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), transparent 24%),
    linear-gradient(135deg, #061629, #0b76d7 52%, #bde8ff);
  box-shadow: inset -18px -18px 28px rgba(0,0,0,.4), 0 22px 40px rgba(39, 132, 231, .25);
  transform: rotateX(56deg) rotateZ(45deg);
}

.featured-download h2 {
  margin: 0 0 14px;
  font-size: 38px;
  letter-spacing: -.055em;
}

.version {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  margin-left: 8px;
  border-radius: 999px;
  color: rgba(16, 28, 44, .72);
  background: rgba(180, 203, 226, .28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.featured-download .version {
  color: #dceeff;
  background: rgba(255,255,255,.12);
}

.featured-download p {
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}

.download-meta {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  color: rgba(255,255,255,.62);
}

.featured-action {
  display: grid;
  gap: 14px;
  justify-items: center;
  min-width: 180px;
}

.featured-action p {
  margin: 0;
  font-size: 14px;
}

.filter-strip {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin: 44px 0 28px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16, 46, 83, .10);
}

.filter-strip button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: rgba(5, 12, 20, .68);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.filter-strip button.active,
.filter-strip button:hover {
  color: var(--blue-2);
  background: rgba(100, 173, 255, .13);
}

.download-list {
  display: grid;
  gap: 18px;
}

.download-row {
  display: grid;
  grid-template-columns: 92px 1fr 110px 130px;
  align-items: center;
  gap: 24px;
  min-height: 132px;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16, 46, 83, .10);
  box-shadow: 0 14px 38px rgba(45, 89, 130, .07);
}

.file-thumb {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #07111d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}

.cube-small {
  background:
    radial-gradient(circle at 65% 25%, rgba(195,233,255,.9), transparent 22%),
    linear-gradient(135deg, #05090e, #0b5cae 70%, #c3ecff);
}

.layers-small {
  background:
    repeating-linear-gradient(145deg, #0a77dc 0 8px, #0c1b2c 8px 22px);
}

.folder-small {
  background:
    linear-gradient(180deg, #83cbff, #0d5096 62%, #07111d);
}

.sphere-small {
  background:
    radial-gradient(circle at 35% 28%, #d7f3ff, #1d82dc 34%, #07111d 70%);
}

.tools-small {
  background:
    linear-gradient(90deg, #07111d, transparent),
    repeating-linear-gradient(90deg, #98d8ff 0 8px, transparent 8px 20px);
}

.file-info h3 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -.045em;
}

.file-info p {
  margin: 0;
  color: rgba(5, 12, 20, .56);
  line-height: 1.45;
}

.file-stats {
  display: grid;
  gap: 8px;
  color: rgba(5, 12, 20, .68);
}

.file-stats small {
  color: rgba(5, 12, 20, .48);
}

.small-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 12px;
  color: #06111e;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(16, 46, 83, .12);
  font-weight: 650;
  transition: transform .2s ease, box-shadow .2s ease;
}

.small-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(30, 77, 125, .12);
}

.downloads-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
  padding-top: 2px;
}

.side-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16, 46, 83, .10);
  box-shadow: 0 14px 38px rgba(45, 89, 130, .07);
}

.side-card h2 {
  margin: 0 0 22px;
  font-size: 18px;
}

.side-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.side-card p {
  color: rgba(5, 12, 20, .56);
}

.side-card a {
  color: var(--blue-2);
  font-weight: 650;
}

.format-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.format-list li {
  display: flex;
  justify-content: space-between;
  color: rgba(5, 12, 20, .64);
}

.format-list b {
  min-width: 34px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(5, 12, 20, .54);
  background: rgba(29, 85, 145, .08);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr .8fr;
  gap: 46px;
  padding: 54px clamp(24px, 5.4vw, 74px);
  background:
    radial-gradient(circle at 30% 0%, rgba(58, 125, 205, .12), transparent 36%),
    #05090d;
  color: var(--muted);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 24px;
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

@keyframes float {
  0%, 100% { transform: rotateX(58deg) rotateZ(-22deg) translateY(0); }
  50% { transform: rotateX(58deg) rotateZ(-22deg) translateY(-18px); }
}

@media (max-width: 1040px) {
  .hero-dark,
  .statement-section,
  .files-hero,
  .downloads-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-download {
    grid-template-columns: 150px 1fr;
  }

  .featured-action {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .downloads-sidebar {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-block: 18px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 78px);
  }

  .feature-grid,
  .downloads-sidebar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .featured-download {
    grid-template-columns: 1fr;
  }

  .download-cube {
    margin: 0;
  }

  .download-row {
    grid-template-columns: 76px 1fr;
  }

  .file-stats,
  .small-download {
    grid-column: 2;
  }

  .folder-body {
    right: 0;
    width: 92%;
  }
}
