/* ─────────────────────────────────────────────────────────────────────────────
   TFStudio — site-wide styles
   Black nav + rainbow strip · cool-grey body · red accent · Inter
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #E9ECF0;   /* cool light grey — easy on the eyes, not blinding */
  --bg-soft:   #E0E4EA;   /* slightly recessed cool band */
  --bg-panel:  #D6DBE2;
  --bg-deep:   #0B0D11;
  --surface:   #FFFFFF;   /* cards / windows / screenshots stay pure white so they pop */

  --line:    #D7DCE3;
  --line-2:  #C1C8D1;
  --line-3:  #8F97A2;

  --text:     #0C0E12;
  --text-2:   #2A2E36;
  --muted:    #646C78;
  --dim:      #8F97A2;

  --accent:        #C8102E;
  --accent-2:      #A30C24;
  --accent-soft:   #FBE7EA;
  --accent-soft-2: #F4C9CF;
  --accent-ink:    #FFFFFF;

  --ok:    #117A3A;
  --warn:  #B36B14;
  --err:   #C8102E;

  --spec-v: #6E3DD8;
  --spec-b: #2E7CF6;
  --spec-c: #1FB6C7;
  --spec-g: #2FB46B;
  --spec-y: #E8C24A;
  --spec-o: #E68A3D;
  --spec-r: #DC4B5A;

  --max:        1240px;
  --max-narrow: 880px;
  --radius:     3px;
  --radius-lg:  4px;

  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: var(--bg); min-height: 100vh; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: color .12s, text-decoration-color .12s;
}
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

p { margin: 0 0 1em; color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
small  { font-size: 12px; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.022em; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
h4 { font-size: 14px; line-height: 1.35; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--mono); font-size: 12px; }

code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--bg-panel); padding: 1px 5px; border-radius: 2px; font-size: 13px; }

::selection { background: var(--text); color: var(--bg); }

/* ── containers ─────────────────────────────────────────────────────── */
.wrap   { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }

/* Alias: older pages use .nav / .nav-inner — give them the same styling */
.nav { position: sticky; top: 0; z-index: 40; background: #0A0A0A; color: #FFFFFF; border-bottom: none; }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 56px; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ── black top nav + rainbow strip ──────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0A0A0A;
  color: #FFFFFF;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.spectrum-bar,
.spectrum-strip {
  height: 3px;
  /* full hue wheel that returns to violet (red→magenta→violet) so the strip
     loops with no seam when animated */
  background: linear-gradient(
    90deg,
    var(--spec-v) 0%,
    var(--spec-b) 14%,
    var(--spec-c) 27%,
    var(--spec-g) 40%,
    var(--spec-y) 53%,
    var(--spec-o) 66%,
    var(--spec-r) 79%,
    #D43AA8 90%,
    var(--spec-v) 100%
  );
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-decoration: none;
}
.brand:hover { color: #FFFFFF; }
.brand img { width: 27px; height: 27px; display: block; }
.brand .v { color: #8C8C88; font-family: var(--mono); font-size: 11px; font-weight: 400; margin-left: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  padding: 7px 12px;
  color: #C9C9C5;
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--sans);
  white-space: nowrap;
}
.nav-links a:hover { color: #FFFFFF; background: #1F1F1E; }
.nav-links a.active { color: #FFFFFF; }
.nav-links a.nav-cta {
  margin-left: 10px;
  padding: 7px 14px;
  border: 1px solid #3A3A37;
  color: #FFFFFF;
}
.nav-links a.nav-cta:hover { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; }

/* ── language switcher ──────────────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 4px 6px;
  color: #8C8C88;
  text-decoration: none;
  border-radius: 2px;
}
.lang-switch a:hover { color: #FFFFFF; background: #1F1F1E; }
.lang-switch a.active { color: #FFFFFF; }

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 14px/1 var(--sans);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); text-decoration: none; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: #2B2B29; color: var(--bg); text-decoration: none; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ── sections ───────────────────────────────────────────────────────── */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: none; }
section.tight { padding: 48px 0; }

/* ── tables ─────────────────────────────────────────────────────────── */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec th, .spec td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
}
.spec td.mono { font-family: var(--mono); font-size: 13px; color: var(--text); }
.spec tbody tr:hover { background: var(--bg-soft); }

/* ── window chrome for screenshots ─────────────────────────────────── */
.win {
  border: 1px solid var(--line-2);
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.win-bar .title { letter-spacing: 0.04em; }
.win-body { background: var(--surface); }
.win-body img { display: block; width: 100%; height: auto; }

/* ── footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  color: #B4B4B0;
  padding: 56px 0 24px;
  font-size: 13px;
  border-top: 1px solid var(--line);
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--spec-v) 0%,
    var(--spec-b) 14%,
    var(--spec-c) 27%,
    var(--spec-g) 40%,
    var(--spec-y) 53%,
    var(--spec-o) 66%,
    var(--spec-r) 79%,
    #D43AA8 90%,
    var(--spec-v) 100%
  );
}
footer .brand { color: #FFFFFF; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8C8C88;
  font-weight: 400;
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  padding: 4px 0;
  color: #C9C9C5;
  text-decoration: none;
  font-size: 13px;
}
.foot-col a:hover { color: #FFFFFF; }
.foot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2A2A28;
  padding-top: 20px;
  color: #8C8C88;
  font-family: var(--mono);
  font-size: 11px;
}

/* ── utility ────────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.dim   { color: var(--dim); }
.mono  { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.center { text-align: center; }

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 3px;
  color: var(--text-2);
  background: var(--surface);
}

.rule { height: 1px; background: var(--line); margin: 0; border: 0; }

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.meta-row .dot { width: 3px; height: 3px; border-radius: 100px; background: var(--line-3); }

/* ── screenshot gallery viewer ──────────────────────────────────────── */
/* uniform thumbnail grid — every tile identical size, image cover-cropped */
.gallery.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) { .gallery.g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery.g-grid { grid-template-columns: 1fr; } }

.g-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .2s ease;
  box-shadow: 0 1px 2px rgba(12,18,34,0.04);
}
.g-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 18px 38px -22px rgba(12,18,34,0.45);
}
.g-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.g-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.g-card:hover .g-thumb img { transform: scale(1.05); }
.g-meta { display: flex; flex-direction: column; gap: 2px; padding: 13px 15px 15px; }
.g-title { font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.g-sub { font-size: 12.5px; color: var(--muted); }

/* card entrance */
.gallery-section .g-card { opacity: 0; transform: translateY(16px); }
.gallery-section.in-view .g-card { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-section.in-view .g-card:nth-child(1){transition-delay:.03s}
.gallery-section.in-view .g-card:nth-child(2){transition-delay:.07s}
.gallery-section.in-view .g-card:nth-child(3){transition-delay:.11s}
.gallery-section.in-view .g-card:nth-child(4){transition-delay:.15s}
.gallery-section.in-view .g-card:nth-child(5){transition-delay:.19s}
.gallery-section.in-view .g-card:nth-child(6){transition-delay:.23s}
.gallery-section.in-view .g-card:nth-child(7){transition-delay:.27s}
.gallery-section.in-view .g-card:nth-child(8){transition-delay:.31s}
@media (prefers-reduced-motion: reduce){
  .gallery-section .g-card{opacity:1;transform:none;transition:none}
}

/* ── fullscreen lightbox ─────────────────────────────────────────────────── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  background: rgba(10,10,11,0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.gallery-lightbox.open { opacity: 1; pointer-events: auto; }
.glb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 90vh;
}
.glb-img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid #2A2A28;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8);
  transform: scale(.98);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.gallery-lightbox.open .glb-img { transform: scale(1); }
.glb-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #C9C9C5;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.glb-counter { color: #8C8C88; }
.glb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  color: #C9C9C5;
  background: transparent;
  border: 1px solid #3A3A37;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.glb-close:hover { color: #FFFFFF; border-color: #FFFFFF; }
.glb-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  font-size: 30px;
  line-height: 1;
  color: #C9C9C5;
  background: transparent;
  border: 1px solid #3A3A37;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.glb-arrow:hover { color: #FFFFFF; border-color: #FFFFFF; background: #1F1F1E; }
@media (max-width: 700px) {
  .glb-arrow { width: 40px; height: 52px; font-size: 24px; }
  .gallery-lightbox { padding: 16px 6px; }
}

/* ── hamburger menu button ───────────────────────────────────────────── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── mobile nav panel (inside sticky header) ─────────────────────────── */
.mobile-nav { display: none; background: #0A0A0A; border-top: 1px solid #1F1F1E; }
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 4px 24px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.mobile-nav-inner > a {
  font-size: 14px;
  color: #C9C9C5;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid #1F1F1E;
  font-family: var(--sans);
  font-weight: 400;
}
.mobile-nav-inner > a:hover { color: #FFFFFF; }
.mobile-nav-inner > a.active { color: #FFFFFF; }
.m-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid #1F1F1E;
}
.m-lang a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8C8C88;
  text-decoration: none;
  padding: 3px 7px;
  border: 1px solid #3A3A37;
  border-radius: 2px;
}
.m-lang a:hover { color: #FFFFFF; border-color: #FFFFFF; }
.m-lang a.active { color: #FFFFFF; border-color: #FFFFFF; }
.m-cta {
  display: block;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid #3A3A37;
  border-radius: var(--radius);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-family: var(--sans);
  transition: background .12s, color .12s;
}
.m-cta:hover { background: #FFFFFF; color: #0A0A0A; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links a { padding: 6px 8px; font-size: 12.5px; }
}
@media (max-width: 860px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   POLISH LAYER  —  soft background wash, motion, depth, logo presence.
   Purely additive: no HTML/structure changes, applies to every page (EN + RU).
   All motion is gated behind prefers-reduced-motion and feature queries so it
   degrades gracefully and never causes a flash-of-hidden-content.
   ═══════════════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* ── modern scrollbars (page + any scroll area) ──────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* lightbox caption: normal sentence case (not uppercase) */
.glb-title { text-transform: none; letter-spacing: 0; font-size: 13px; color: #E6E9EE; }
.glb-meta { text-transform: none; }

/* Layered iridescent gradient mesh echoing the logo (cyan / blue / violet /
   orange glow) over a cool vertical wash — gives the page depth instead of a
   flat fill. Pinned behind content; opaque bands cover it where needed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 78% 4%,  rgba(46,124,246,0.18), transparent 62%),
    radial-gradient(40% 34% at 96% 30%, rgba(110,61,216,0.14), transparent 60%),
    radial-gradient(44% 40% at 6% 6%,   rgba(230,138,61,0.13), transparent 60%),
    radial-gradient(50% 42% at 18% 52%, rgba(31,182,199,0.12), transparent 62%),
    radial-gradient(60% 50% at 50% 116%,rgba(110,61,216,0.12), transparent 60%),
    linear-gradient(180deg, #EEF1F5 0%, #E6EAF0 46%, #DFE3EB 100%);
}
/* faint moving aurora sheen on top of the mesh for life (very subtle) */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    conic-gradient(from 120deg at 70% 20%,
      transparent 0deg,
      rgba(46,124,246,0.10) 60deg,
      transparent 130deg,
      rgba(31,182,199,0.09) 220deg,
      transparent 300deg);
  filter: blur(40px);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: tfAurora 26s ease-in-out infinite alternate; }
  @keyframes tfAurora {
    0%   { transform: translate3d(0,0,0) rotate(0deg)   scale(1);   }
    100% { transform: translate3d(-3%,2%,0) rotate(8deg) scale(1.12); }
  }
}

/* ── brand logo: ambient glow + lively hover ─────────────────────────────── */
.brand img { transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.brand:hover img { transform: rotate(-7deg) scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .brand img { animation: tfLogoGlow 4.5s ease-in-out infinite; }
  @keyframes tfLogoGlow {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255,150,60,0.30)); }
    50%      { filter: drop-shadow(0 0 8px rgba(255,150,60,0.55)); }
  }
}

/* ── animated spectrum strip (slow drifting sheen) ───────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .spectrum-bar, .spectrum-strip, footer::before {
    background-size: 200% 100%;
    animation: tfSpecDrift 16s linear infinite;
  }
  @keyframes tfSpecDrift { to { background-position: -200% 0; } }
}

/* ── buttons & links: micro-interactions ─────────────────────────────────── */
.btn { transition: background .12s, border-color .12s, color .12s, transform .12s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 75%, transparent); }

.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--spec-c), var(--spec-o));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

/* ── screenshot windows: gentle lift on hover ────────────────────────────── */
.win {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  box-shadow: 0 1px 0 var(--line), 0 14px 34px -26px rgba(10,10,10,0.40);
}
.win:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 var(--line), 0 26px 54px -28px rgba(10,10,10,0.50);
}
[data-hero-lightbox] { cursor: zoom-in; }
[data-hero-lightbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── feature / overview rows: subtle responsiveness ──────────────────────── */
.tools-col { transition: background .18s ease; }
.tools-col:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.feat tr { transition: background .15s ease; }
.feat tr:hover td { background: var(--bg-soft); }

/* ── hero: iridescent gradient orb + staggered entrance ───────────────────── */
section:first-of-type { position: relative; overflow: hidden; }
section:first-of-type > .wrap { position: relative; z-index: 1; }
/* soft multi-hue glow (logo's palette, not the logo itself) anchoring the hero */
section:first-of-type::after {
  content: "";
  position: absolute;
  right: -120px; top: 50%;
  width: 560px; height: 560px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 38% 38%, rgba(31,182,199,0.55), transparent 42%),
    radial-gradient(circle at 64% 40%, rgba(46,124,246,0.50), transparent 46%),
    radial-gradient(circle at 56% 66%, rgba(110,61,216,0.42), transparent 50%),
    radial-gradient(circle at 30% 60%, rgba(230,138,61,0.40), transparent 46%);
  filter: blur(46px);
  opacity: 0.5;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  section:first-of-type::after { animation: tfHeroFloat 12s ease-in-out infinite; }
  @keyframes tfHeroFloat {
    0%, 100% { transform: translateY(-50%) scale(1)    rotate(0deg);  }
    50%      { transform: translateY(-54%) scale(1.08) rotate(12deg); }
  }
  /* on-load entrance for the hero copy */
  .hero .meta-row   { animation: tfFadeUp .6s .04s both; }
  .hero .hero-title { animation: tfFadeUp .7s .12s both; }
  .hero-copy p      { animation: tfFadeUp .7s .22s both; }
  .hero-copy > div:last-child { animation: tfFadeUp .7s .34s both; }
  .hero-shot        { animation: tfFadeUp .8s .30s both; }
  @keyframes tfFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}
@media (max-width: 1100px) { section:first-of-type::after { opacity: 0.4; width: 380px; height: 380px; right: -140px; } }
@media (max-width: 760px)  { section:first-of-type::after { width: 320px; height: 320px; right: -160px; opacity: 0.35; } }

/* ── two-column hero (modern: bold copy left, app window right) ───────────── */
.hero { padding: 80px 0 88px; border-bottom: none; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.06fr);
  gap: 52px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero-shot { position: relative; z-index: 1; }
.hero-shot .win { box-shadow: 0 1px 0 var(--line), 0 30px 70px -34px rgba(12,18,34,0.55); }
.hero-shot .win-body img { display: block; width: 100%; height: auto; }
@media (max-width: 980px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: clamp(34px, 8vw, 52px); }
}

/* ── opaque grey bands → let the gradient mesh glow through for cohesion ──── */
section[style*="--bg-soft"],
.gallery-section[style*="--bg-soft"] {
  background: linear-gradient(180deg,
    rgba(224,228,234,0.72),
    rgba(214,219,226,0.66)) !important;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ── scroll-reveal for sections (modern scroll-driven CSS) ────────────────
   Uses view-timeline so the hidden initial state is applied pre-paint by CSS
   itself — no JS, no FOUC. Browsers without support simply show content. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    section:not(.hero):not(.gallery-section) {
      animation: tfSectionIn linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 22%;
    }
    @keyframes tfSectionIn {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
