/* AVRTEC AB — site styles.
   The same family as the Skanna site: a near-black canvas, hairlines, uppercase
   micro-labels and system fonts (no external requests). The AVRTEC arc, blue to red,
   is the brand colour; each app page brings its own accent on top. */

:root {
  --bg: #0c1016;
  --bg-2: #10151d;
  --panel: #151b24;
  --panel-2: #1b2230;
  --line: rgba(180, 196, 216, .12);
  --line-2: rgba(180, 196, 216, .24);

  --ink: #eaeef3;
  --ink-soft: #bdc6d1;
  --ink-dim: #828d9b;

  --blue: #4aa6ff;
  --violet: #9a7cff;
  --red: #ff5a3c;
  --arc: linear-gradient(100deg, #4aa6ff 0%, #9a7cff 50%, #ff5a3c 100%);

  /* App pages override these two. */
  --accent: #4aa6ff;
  --accent-2: #ff5a3c;

  --wrap: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.theme-pulsepath { --accent: #ff4fa8; --accent-2: #36d9ff; }
.theme-skanna { --accent: #4a8fe0; --accent-2: #9dc0e8; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.25; }

/* Uppercase micro-label with a short arc-coloured dash in front. */
.label {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .7rem; font-weight: 650; color: var(--ink-dim);
  margin: 0 0 20px;
}
.label::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.grad {
  background: var(--arc);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.theme-pulsepath .grad, .theme-skanna .grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
}

.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; max-width: 38em; }
.muted { color: var(--ink-dim); }
.small { font-size: .88rem; }

/* Leading sentence bright, the rest grey: for long statements. */
.two-tone { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.025em; max-width: 30em; }
.two-tone .dim { color: var(--ink-dim); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #0c1016; border-color: var(--ink); }
.btn.primary:hover { background: #fff; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 16, 22, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 22px; height: 31px; object-fit: contain; }
.brand span { font-weight: 650; letter-spacing: .2em; text-transform: uppercase; font-size: .92rem; }

.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 650;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .07); }

@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 12px; padding-bottom: 6px; min-height: 0; }
  .nav { width: 100%; justify-content: space-between; margin: 8px -10px 0; }
  .nav a { padding: 8px 10px; font-size: .68rem; letter-spacing: .12em; }
}

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(44px, 6vw, 84px) 0; }
.section.tight { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 32em; color: var(--ink-soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Sections below the fold fade in on arrival: site.js marks them .pre, then .in.
   Without JavaScript nothing is hidden. */
.reveal.pre { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- home hero */

/* Glows are backgrounds that fade out well inside their section, so no edge ever shows. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(720px 520px at 84% 32%, rgba(74, 166, 255, .15), transparent 70%),
    radial-gradient(620px 360px at 6% 62%, rgba(255, 90, 60, .08), transparent 70%);
}
/* The big arc: only its middle shows, fading out towards the top and bottom of the hero. */
.hero-arc {
  position: absolute; z-index: -1; pointer-events: none;
  right: clamp(-40px, 1vw, 60px); top: 50%; transform: translateY(-50%);
  height: 130%; width: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 9%, #000 27%, #000 69%, transparent 88%);
  mask-image: linear-gradient(to bottom, transparent 9%, #000 27%, #000 69%, transparent 88%);
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); margin-bottom: .35em; text-wrap: balance; }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .hero-arc { opacity: .45; right: -34vw; height: 120%; }
}

/* ---------------------------------------------------------------- category cards (home) */

.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: stretch;
  min-height: 360px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%);
  text-decoration: none; color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease);
}
.category-card::before {
  content: ""; position: absolute; z-index: -1; right: -30%; bottom: -40%; width: 90%; aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: .55; transition: opacity .3s;
}
.category-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.category-card:hover::before { opacity: .9; }
.cat-games { --glow: rgba(255, 79, 168, .55); }
.cat-apps { --glow: rgba(74, 143, 224, .6); }

.cat-text { padding: 34px 0 34px 34px; display: flex; flex-direction: column; }
.cat-count { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); font-weight: 650; }
.cat-text h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.035em; margin: 14px 0 10px; }
.cat-text p { color: var(--ink-soft); max-width: 16em; }
.cat-go { margin-top: auto; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; display: inline-flex; gap: 10px; align-items: center; }
.cat-go .arrow { transition: transform .25s var(--ease); }
.category-card:hover .cat-go .arrow { transform: translateX(4px); }

.cat-visual { position: relative; width: 250px; }
.cat-visual img {
  position: absolute; width: 150px; border-radius: 20px;
  border: 5px solid #05070a; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
  transition: transform .45s var(--ease);
}
.cat-visual img:first-child { right: 92px; top: 56px; transform: rotate(-7deg); }
.cat-visual img:last-child { right: -18px; top: 26px; transform: rotate(5deg); }
.category-card:hover .cat-visual img:first-child { transform: rotate(-9deg) translateY(-8px); }
.category-card:hover .cat-visual img:last-child { transform: rotate(7deg) translateY(-14px); }

@media (max-width: 520px) {
  .category-card { grid-template-columns: 1fr; min-height: 0; }
  .cat-text { padding: 28px 24px 0; }
  .cat-visual { width: 100%; height: 230px; }
  .cat-visual img { width: 120px; }
  .cat-visual img:first-child { right: auto; left: 22%; top: 34px; }
  .cat-visual img:last-child { right: 14%; top: 18px; }
  .cat-go { margin: 18px 0 0; }
}

/* ---------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: .74rem; color: var(--ink-soft); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-dim); }
.chip .dot.live { background: #3ddc84; box-shadow: 0 0 10px rgba(61, 220, 132, .7); }
.chip .dot.soon { background: #f7b23b; }

/* ---------------------------------------------------------------- principles */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 34px 30px 10px 0; }
.principle + .principle { padding-left: 30px; border-left: 1px solid var(--line); }
.principle .num { font-size: .72rem; letter-spacing: .2em; color: var(--ink-dim); font-weight: 650; }
.principle h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.principle p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
}

/* ---------------------------------------------------------------- bands */

.band {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--panel-2), var(--bg-2));
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.band::after {
  content: ""; position: absolute; z-index: -1; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(74, 166, 255, .5), transparent 35%, transparent 65%, rgba(255, 90, 60, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.band h2 { margin-bottom: .3em; }
.band p { color: var(--ink-soft); margin: 0; }
.band .band-side { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } .band .band-side { justify-content: flex-start; } }

.devices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .devices { justify-content: flex-start; } }

/* ---------------------------------------------------------------- page heads and breadcrumbs */

.page-head {
  padding: clamp(56px, 8vw, 100px) 0 clamp(36px, 5vw, 56px);
  background: radial-gradient(760px 380px at 86% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
}
.page-head h1 { margin-bottom: .25em; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .78rem; color: var(--ink-dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- app cards (category pages) */

.app-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel-2), var(--panel) 55%);
  text-decoration: none; color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease);
}
.app-card::before {
  content: ""; position: absolute; z-index: -1; right: -15%; top: -30%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  opacity: .5; transition: opacity .3s;
}
.app-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.app-card:hover::before { opacity: .85; }
.app-card + .app-card { margin-top: 20px; }

.app-card-text { padding: clamp(28px, 4vw, 48px); }
.app-card-top { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app-card-top img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
.app-card-top h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.app-card-top p { margin: 4px 0 0; color: var(--ink-dim); font-size: .9rem; }
.app-card-text > p { color: var(--ink-soft); }
.app-card .cat-go { margin-top: 26px; display: inline-flex; }
.app-card:hover .cat-go .arrow { transform: translateX(4px); }

.app-card-shots { position: relative; min-height: 360px; }
.app-card-shots img {
  position: absolute; width: 170px; border-radius: 22px;
  border: 5px solid #05070a; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-2);
  transition: transform .45s var(--ease);
}
.app-card-shots img:first-child { left: 8%; top: 54px; transform: rotate(-6deg); }
.app-card-shots img:last-child { left: 46%; top: 22px; transform: rotate(5deg); }
.app-card:hover .app-card-shots img:first-child { transform: rotate(-8deg) translateY(-8px); }
.app-card:hover .app-card-shots img:last-child { transform: rotate(7deg) translateY(-14px); }

@media (max-width: 860px) {
  .app-card { grid-template-columns: 1fr; }
  .app-card-shots { min-height: 300px; }
  .app-card-shots img { width: 140px; }
  .app-card-shots img:first-child { left: 14%; }
  .app-card-shots img:last-child { left: auto; right: 14%; }
}

.more-note { margin-top: 26px; color: var(--ink-dim); font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.more-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--arc); }

/* ---------------------------------------------------------------- app page hero */

.app-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(760px 600px at 80% 38%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(620px 400px at 0% 58%, color-mix(in srgb, var(--accent-2) 11%, transparent), transparent 70%);
}
.app-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .app-hero-grid { grid-template-columns: 1fr; } }

.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-id img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.app-id .label { margin: 0; }
.app-hero h1 { margin-bottom: .15em; }
.tagline { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 .9em; }
.app-hero .lead { margin-bottom: 30px; }

/* Store buttons. data-play="soon" or "live" on the row picks which Google Play button shows. */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-row[data-play="soon"] .play-live, .store-row[data-play="live"] .play-soon { display: none; }
.play-badge { display: inline-block; margin: -10px -6px; line-height: 0; border-radius: 12px; }
.play-badge img { height: 74px; width: auto; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: 12px;
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02);
  color: var(--ink-soft); font-size: .86rem; line-height: 1.25;
}
.soon-pill svg { flex: none; width: 22px; height: 22px; color: var(--ink); }
.soon-pill strong { display: block; color: var(--ink); font-weight: 650; }
.store-note { margin: 18px 0 0; color: var(--ink-dim); font-size: .9rem; }

/* A phone: screenshot in a dark bezel. */
.phone {
  position: relative; width: min(330px, 78vw); margin: 0 auto;
  border-radius: 40px; padding: 10px; background: #05070a;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -30px rgba(0, 0, 0, .9),
    0 0 120px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.phone img, .phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 31px; background: #000; }
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; width: 22%; height: 7px; transform: translateX(-50%);
  border-radius: 99px; background: #05070a; z-index: 1; opacity: .9;
}
/* Store pictures that already show a phone: no second bezel around them. */
.phone.plain { padding: 0; background: none; border-radius: 28px; }
.phone.plain::before { display: none; }
.phone.plain img { border-radius: 28px; }
.app-hero .phone { transform: rotate(3deg); }
@media (max-width: 900px) { .app-hero .phone { transform: none; width: min(300px, 72vw); } }

/* ---------------------------------------------------------------- screenshots strip */

.shots-wrap { position: relative; }
/* The strip starts in line with the text and runs on to the right edge of the window. */
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 28px;
  padding: 6px 28px 26px; margin: 0 calc(50% - 50vw) 0 -28px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.shot {
  flex: 0 0 auto; width: clamp(190px, 21vw, 250px); scroll-snap-align: start;
  padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px;
  color: inherit; font: inherit; text-align: left;
  transition: transform .3s var(--ease);
}
.shot:hover { transform: translateY(-4px); }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -24px rgba(0, 0, 0, .9); }
.shots.bezel .shot img { border: 5px solid #05070a; }
.shot .cap { display: block; margin-top: 12px; font: inherit; font-size: .82rem; color: var(--ink-dim); text-align: left; line-height: 1.4; }

.strip-controls { display: flex; gap: 8px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
  font-size: 1.1rem; transition: border-color .2s, background-color .2s;
}
.round-btn:hover { border-color: var(--ink-soft); background: rgba(255, 255, 255, .05); }
.round-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .shots { padding: 6px 18px 22px; margin: 0 -18px; scroll-padding-left: 18px; } .strip-controls { display: none; } }

/* ---------------------------------------------------------------- videos (shown once a video file exists) */

.video-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.video-grid .phone { margin: 0; width: min(300px, 80vw); }

/* ---------------------------------------------------------------- feature tiles, worlds, specs */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-grid-spaced { margin-top: 52px; }
.feature { background: var(--bg); padding: 30px 28px; }
.feature .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.feature .icon svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

.worlds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 44px 0 60px; padding: 0; list-style: none; }
.world {
  position: relative; padding: 18px 16px 20px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
}
.world::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--w); }
.world .n { font-size: .7rem; letter-spacing: .18em; color: var(--ink-dim); font-weight: 650; }
.world strong { display: block; margin: 8px 0 6px; font-size: 1rem; letter-spacing: -0.01em; }
.world span { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; display: block; }
.w1 { --w: #2bb3c9; } .w2 { --w: linear-gradient(90deg, #ff4fa8, #ff9d3c); } .w3 { --w: #7a8cff; }
.w4 { --w: #4fd1ff; } .w5 { --w: linear-gradient(90deg, #36e3a4, #7d5cff); } .w6 { --w: #ffa53c; } .w7 { --w: linear-gradient(90deg, #4f7dff, #b04fff); }
@media (max-width: 1080px) { .worlds { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .worlds { grid-template-columns: repeat(2, 1fr); } }

.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-dim); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; padding-top: 2px; }
.specs dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .specs div { grid-template-columns: 1fr; gap: 4px; } }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 32px; }
.info-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.info-card p { color: var(--ink-soft); }
.info-card p:last-child { margin: 0; }

/* ---------------------------------------------------------------- policy pages */

.policy { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.policy h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.policy p, .policy li { color: var(--ink-soft); }
.policy strong { color: var(--ink); font-weight: 650; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: .5em; }
.policy a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.policy a:hover { text-decoration-color: var(--ink); }
.policy code { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: .1em .45em; border-radius: 6px; font-size: .88em; }
.policy .updated { font-size: .92rem; }
.summary-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 26px 28px; margin: 30px 0; }
.summary-box h2:first-child { margin-top: 0; }
.summary-box ul, .summary-box p:last-child { margin-bottom: 0; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

/* ---------------------------------------------------------------- contact form */

.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--ink-dim); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(74, 166, 255, .2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .86rem; color: var(--ink-dim); margin: 0; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #6be3a2; }
.form-status.err { color: #ff8f7a; }
.form button[disabled] { opacity: .6; cursor: progress; }

.contact-side { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; }
.contact-side h2 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-side p { color: var(--ink-soft); font-size: .95rem; }
.contact-side .email { font-size: 1.05rem; font-weight: 600; word-break: break-all; }
.contact-side .rule { margin: 22px 0; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0; color: var(--ink);
}
.lightbox::backdrop { background: rgba(5, 7, 10, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox-inner { position: relative; height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 24px; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; height: 100%; align-content: center; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; border-radius: 24px; box-shadow: 0 0 0 1px var(--line-2); }
.lightbox figcaption { color: var(--ink-soft); font-size: .95rem; text-align: center; max-width: 34em; }
.lightbox .close { position: absolute; top: 18px; right: 18px; }
@media (max-width: 640px) {
  .lightbox-inner { grid-template-columns: 1fr; padding: 60px 14px 20px; }
  .lightbox .prev, .lightbox .next { position: absolute; bottom: 18px; }
  .lightbox .prev { left: 18px; } .lightbox .next { right: 18px; }
  .lightbox img { max-height: calc(100vh - 170px); }
}

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-dim); font-size: .9rem; margin: 0 0 .4em; }
.site-footer h2 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin: 6px 0 16px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; }
.site-footer ul a:hover { color: var(--ink); }
.legal { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: .78rem; color: var(--ink-dim); }
.legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 404 */

.not-found { min-height: 60vh; display: grid; align-content: center; padding: 80px 0; }
.not-found .big { display: inline-block; font-size: clamp(5rem, 16vw, 11rem); font-weight: 700; letter-spacing: -0.06em; line-height: .9; margin: 0 0 20px; }
