﻿/* Dublia — static portfolio site */
:root {
  --bg: #070a12;
  --bg-deep: #050811;
  --surface: #0e1424;
  --surface-2: #131b2e;
  --surface-3: #18223a;
  --line: rgba(154, 171, 214, 0.14);
  --line-strong: rgba(154, 171, 214, 0.25);
  --text: #f4f6ff;
  --muted: #aab4cd;
  --dim: #74809d;
  --violet: #8a6cff;
  --violet-strong: #7052f5;
  --blue: #4e9cff;
  --cyan: #59d6ee;
  --green: #62d9ac;
  --amber: #f1c46b;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --font: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 2%, rgba(105, 74, 255, 0.17), transparent 35rem),
    radial-gradient(ellipse at 9% 18%, rgba(43, 135, 255, 0.11), transparent 30rem),
    linear-gradient(180deg, #080b14 0%, var(--bg) 46%, #060912 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(125, 148, 203, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 148, 203, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

::selection { background: rgba(138, 108, 255, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, video { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid #b7a6ff;
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: #fff;
  color: #080b14;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 18, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 10, 18, 0.92);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 21px;
}
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 8px 18px rgba(112, 82, 245, 0.28)); }
.brand small {
  display: block;
  margin-left: 2px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,0.055); }
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.header-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(160, 137, 255, 0.34);
  border-radius: 9px;
  background: rgba(122, 86, 255, 0.12);
  color: #e6e0ff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header-download:hover { background: rgba(122, 86, 255, 0.22); border-color: rgba(186, 168, 255, 0.58); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; margin: auto; }
.menu-toggle .close-icon { display: none; }
.site-header.menu-open .menu-toggle .open-icon { display: none; }
.site-header.menu-open .menu-toggle .close-icon { display: block; }

/* Buttons and bits */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b6dff 0%, #6552ed 48%, #426fd9 100%);
  box-shadow: 0 12px 30px rgba(100, 70, 240, 0.32), inset 0 1px 0 rgba(255,255,255,0.24);
}
.btn-primary:hover { box-shadow: 0 18px 38px rgba(100, 70, 240, 0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-secondary {
  color: var(--text);
  background: rgba(19, 27, 46, 0.82);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--surface-3); border-color: rgba(170, 188, 230, 0.38); }
.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.035); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7baff;
  font-size: 13px;
  font-weight: 700;
}
.text-link:hover { color: #fff; }
.text-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translate(2px, -2px); }

.eyebrow {
  margin: 0 0 14px;
  color: #b9a8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section { position: relative; padding: 105px 0 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 780;
}
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 620px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

/* Hero */
.hero {
  position: relative;
  padding: 66px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 54px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.065em;
  font-weight: 800;
}
.hero h1 span {
  display: inline;
  color: transparent;
  background: linear-gradient(115deg, #d9d0ff 4%, #a98cff 42%, #67a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  max-width: 560px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  color: var(--dim);
  font-size: 12px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(98, 217, 172, 0.85);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}
.hero-proof li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aab4cd;
  background: rgba(16, 23, 40, 0.68);
  font-size: 11px;
  font-weight: 650;
}
.hero-visual {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 2% 9% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 72, 245, 0.22), transparent 67%);
  filter: blur(28px);
}
.hero-shape {
  position: absolute;
  width: 440px;
  height: 440px;
  right: 20px;
  top: 15px;
  border: 1px solid rgba(139, 109, 255, 0.16);
  border-radius: 50%;
  animation: orbit 24s linear infinite;
}
.hero-shape::before,
.hero-shape::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(78, 156, 255, 0.14);
}
.hero-shape::before { inset: 22px; }
.hero-shape::after { inset: 64px; border-color: rgba(255,255,255,0.06); }
@keyframes orbit { to { transform: rotate(360deg); } }

.window-frame {
  position: relative;
  width: 103%;
  max-width: 790px;
  border: 1px solid rgba(154, 171, 214, 0.23);
  border-radius: 16px;
  overflow: hidden;
  background: #0b101c;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(139, 109, 255, 0.08), 0 0 70px rgba(104, 76, 245, 0.14);
  transform: perspective(1300px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 0.5s ease;
}
.window-frame:hover { transform: perspective(1300px) rotateY(0deg) rotateX(0deg) translateY(-4px); }
.window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46516b;
}
.window-bar i:first-child { background: #ef6a72; }
.window-bar i:nth-child(2) { background: #e4b85a; }
.window-bar i:nth-child(3) { background: #5dd39e; }
.window-bar span {
  margin-left: 8px;
  color: #78849e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.window-frame img { width: 100%; height: auto; }
.hero-float {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(154, 171, 214, 0.22);
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  padding: 10px 13px;
  font-size: 11px;
  color: var(--muted);
}
.hero-float strong { display: block; color: var(--text); font-size: 12px; }
.hero-float.a { left: -10px; bottom: 58px; }
.hero-float.b { right: -8px; top: 58px; }
.hero-float .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 9px rgba(98,217,172,.8); }
.hero-float .langs { display: flex; align-items: center; gap: 8px; color: #c8baff; font-weight: 750; font-size: 13px; }
.hero-float .langs b { color: #77839d; font-weight: 400; }

.hero-band {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 55px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-band-label {
  flex: none;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.tech-ticker {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
  color: #8b96b2;
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent);
}
.tech-ticker span { opacity: 0.9; }

/* Screenshots */
.screens-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px;
}
.shot {
  position: relative;
  grid-column: span 4;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24, 33, 56, .96), rgba(13, 19, 33, .98));
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.shot.wide { grid-column: span 8; }
.shot.half { grid-column: span 6; }
.shot img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.shot:hover img { transform: scale(1.025); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 42px 15px 13px;
  background: linear-gradient(transparent, rgba(5, 8, 16, .96));
  color: var(--muted);
  font-size: 11px;
}
.shot figcaption b { display: block; color: var(--text); font-size: 12px; letter-spacing: -0.01em; }
.shot figcaption span { color: var(--dim); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.feature {
  position: relative;
  overflow: hidden;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(19, 27, 46, .9), rgba(11, 16, 29, .85));
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(139, 108, 255, .42); background: linear-gradient(155deg, rgba(24, 33, 56, .95), rgba(12, 18, 32, .95)); }
.feature::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -30px;
  top: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,108,255,.13), transparent 70%);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(122, 90, 255, 0.11);
  border: 1px solid rgba(155, 132, 255, .23);
  color: #c5b6ff;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { margin: 15px 0 6px; font-size: 14px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.feature .tag {
  display: inline-block;
  margin-top: 14px;
  color: #9183c9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}

/* How it works */
.how-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 55px;
  align-items: start;
}
.steps { position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  bottom: 21px;
  left: 19px;
  width: 1px;
  background: linear-gradient(var(--violet), rgba(138,108,255,.06));
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 17px;
  padding: 0 0 26px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(138,108,255,.4);
  border-radius: 50%;
  background: #0c1222;
  color: #c2b2ff;
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 0 0 5px var(--bg);
}
.step h3 { margin: 3px 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.step small { display: block; margin-top: 6px; color: var(--dim); font-size: 10px; }
.how-shot { position: sticky; top: 104px; }
.how-shot .window-frame { width: 100%; transform: none; }
.how-shot .window-frame:hover { transform: translateY(-3px); }
.how-caption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}
.optional-note {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 13px;
  border: 1px solid rgba(241, 196, 107, .18);
  border-radius: 10px;
  color: #cbbf9e;
  background: rgba(241, 196, 107, .045);
  font-size: 11px;
  line-height: 1.55;
}
.optional-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--amber); }

/* Technology */
.tech-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.tech-cell {
  padding: 16px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 22, 39, .7);
}
.tech-cell span { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tech-cell strong { display: block; margin-top: 5px; color: #e4e8f5; font-size: 12px; line-height: 1.35; }
.tech-cell em { display: block; margin-top: 4px; color: #8d98b2; font-size: 10px; font-style: normal; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tech-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(19,27,46,.85), rgba(10,15,27,.8));
}
.tech-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tech-card h3 { margin: 0; font-size: 14px; }
.tech-card .status {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  color: #a7e4cd;
  background: rgba(98,217,172,.08);
  border: 1px solid rgba(98,217,172,.18);
  font-size: 9px;
  font-weight: 700;
}
.tech-card .status.remote { color: #b7c8ff; background: rgba(78,156,255,.08); border-color: rgba(78,156,255,.2); }
.tech-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.tech-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tech-list span {
  padding: 3px 7px;
  border: 1px solid rgba(154,171,214,.12);
  border-radius: 5px;
  color: #929ebb;
  font-family: var(--mono);
  font-size: 9px;
}
.tech-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 2px solid rgba(78,156,255,.6);
  background: rgba(78,156,255,.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Installation */
.install-layout {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: 36px;
  align-items: start;
}
.install-panel {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(22,31,53,.9), rgba(9,14,25,.94));
  box-shadow: var(--shadow);
}
.install-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(138,108,255,.11), transparent 45%);
}
.install-panel h3 { position: relative; margin: 0 0 8px; font-size: 18px; }
.install-panel p { position: relative; margin: 0; color: var(--muted); font-size: 13px; }
.install-meta { position: relative; display: grid; gap: 9px; margin-top: 22px; }
.install-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 11px; }
.install-meta span { color: var(--dim); }
.install-meta strong { color: #dfe5f4; text-align: right; font-weight: 650; }
.install-steps { display: grid; gap: 9px; }
.install-step {
  display: flex;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15,22,39,.6);
}
.install-step .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #cbbaff;
  background: rgba(138,108,255,.11);
  font-family: var(--mono);
  font-size: 10px;
}
.install-step h4 { margin: 1px 0 3px; font-size: 12px; }
.install-step p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.install-caveat { display: flex; gap: 9px; margin-top: 16px; color: #b4bdd2; font-size: 11px; line-height: 1.55; }
.install-caveat svg { width: 15px; height: 15px; flex: none; color: var(--cyan); margin-top: 2px; }

/* URL import */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.split .window-frame { width: 100%; transform: none; }
.split .window-frame:hover { transform: translateY(-3px); }
.split-copy p { color: var(--muted); font-size: 14px; }
.legal-note {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(241,196,107,.17);
  border-radius: 10px;
  background: rgba(241,196,107,.045);
  color: #c8bea6;
  font-size: 11px;
  line-height: 1.55;
}
.legal-note strong { color: #e9d9ae; }
.platforms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.platforms span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #9aa6c1;
  background: rgba(15,22,39,.55);
  font-size: 10px;
  font-weight: 650;
}

/* Video */
.video-wrap {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #050811;
  box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; background: #050811; }
.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
}
.video-meta span:first-child { color: #a8b3cb; }

/* Downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.download-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(24,33,56,.92), rgba(9,14,25,.95));
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.download-card.primary { border-color: rgba(138,108,255,.4); }
.download-card.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, rgba(138,108,255,.16), transparent 48%);
}
.download-kicker { display: flex; align-items: center; gap: 8px; color: #a99aff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.download-kicker svg { width: 15px; height: 15px; }
.download-card h3 { position: relative; margin: 15px 0 4px; font-size: 24px; letter-spacing: -.03em; }
.download-card .sub { position: relative; margin: 0; color: var(--muted); font-size: 12px; }
.download-facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 20px; }
.download-facts div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,14,25,.48); }
.download-facts span { display: block; color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.download-facts strong { display: block; margin-top: 3px; color: #e2e7f4; font-size: 11px; font-weight: 650; }
.download-card .btn { position: relative; width: 100%; }
.download-hash { position: relative; margin-top: 15px; }
.download-hash summary { cursor: pointer; color: #8f9bb7; font-size: 10px; font-weight: 700; }
.download-hash code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,.25);
  color: #b9c2d8;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
}
.download-note { display: flex; gap: 8px; margin-top: 14px; color: var(--dim); font-size: 10px; line-height: 1.5; }
.download-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.install-link-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.install-link-row p { margin: 0; color: var(--dim); font-size: 10px; }

/* Support / Ko-fi */
.support-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(138,108,255,.27);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(27,26,54,.94), rgba(11,18,33,.96));
}
.support-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: 9%;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,108,255,.2), transparent 68%);
  filter: blur(20px);
}
.support-copy { position: relative; }
.support-copy h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.035em; }
.support-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.support-actions { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.kofi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 188px;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 10px;
  border: 1px solid rgba(114, 164, 242, .45);
  background: linear-gradient(135deg, #72a4f2, #3f8de0);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(63, 141, 224, .22);
}
.kofi-button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.kofi-button[aria-disabled="true"] { cursor: default; filter: saturate(.6); opacity: .7; box-shadow: none; transform: none; }
.kofi-button svg { width: 18px; height: 18px; }
.support-note { color: var(--dim); font-size: 10px; text-align: right; }


/* Before / after test */
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: center;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 22, 39, .52);
}
.compare-copy h3 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.compare-copy p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.compare-copy .caption { color: var(--dim); font-size: 10px; }
.compare-media { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #050811; }
.compare-media video { width: 100%; aspect-ratio: 32 / 9; background: #050811; }
.compare-labels { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 840px) { .compare-grid { grid-template-columns: 1fr; gap: 18px; padding: 18px; } }

.developer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 15px;
  margin: 0 0 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.developer-credit .developer-label {
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.developer-credit strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.developer-credit > span:last-child { color: var(--muted); font-size: 11px; }
@media (max-width: 560px) {
  .developer-credit { display: block; }
  .developer-credit strong { display: block; margin: 5px 0; }
}

/* Footer */
.site-footer {
  margin-top: 105px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(5,8,15,.5);
}
.footer-main { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.footer-brand span { display: block; margin-top: 2px; color: var(--dim); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: 570px; padding-top: 5px; }
.footer-links a { color: var(--muted); font-size: 11px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }
.footer-bottom span:last-child { color: #5d6983; }

/* Reveal */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 28px; }
  .hero-visual { min-height: 410px; }
  .hero-float.a { left: -2px; }
  .hero-float.b { right: -2px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .how-layout { gap: 32px; }
}
@media (max-width: 840px) {
  .container { width: min(100% - 34px, 680px); }
  .site-nav { position: absolute; top: 76px; left: 17px; right: 17px; display: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9,14,25,.98); box-shadow: var(--shadow); }
  .site-header.menu-open .site-nav { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 13px; }
  .header-download { display: none; }
  .menu-toggle { display: grid; place-items: center; margin-left: auto; }
  .hero { padding-top: 55px; }
  .hero-grid, .how-layout, .install-layout, .split { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: 390px; margin-top: 10px; }
  .window-frame { transform: none; width: 100%; }
  .window-frame:hover { transform: translateY(-3px); }
  .hero h1 { font-size: clamp(48px, 13vw, 74px); }
  .hero-lead { font-size: 16px; }
  .hero-band { margin-top: 38px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .screens-gallery { grid-template-columns: repeat(2, 1fr); }
  .shot, .shot.wide, .shot.half { grid-column: span 1; }
  .shot:first-child { grid-column: span 2; }
  .how-shot { position: static; order: -1; margin-bottom: 10px; }
  .install-layout { gap: 17px; }
  .support-card { grid-template-columns: 1fr; padding: 27px; }
  .support-actions { align-items: flex-start; }
  .support-note { text-align: left; }
  .section { padding-top: 80px; }
  .tech-band { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .header-inner { min-height: 68px; justify-content: space-between; }
  .header-actions { margin-left: 0; }
  .site-nav { top: 68px; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
  .hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .hero h1 span { display: block; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 290px; }
  .hero-float { display: none; }
  .screens-gallery { display: grid; grid-template-columns: 1fr; }
  .shot:first-child { grid-column: span 1; }
  .shot, .shot img { min-height: 190px; }
  .feature-grid, .tech-grid, .tech-band { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 34px; }
  .download-facts { grid-template-columns: 1fr 1fr; }
  .download-card { padding: 22px; }
  .install-panel { padding: 22px; }
  .footer-main { display: block; }
  .footer-links { margin-top: 22px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}


