/* monirex.app — brand: deep navy + teal, from Design/Logo/monirex-mark.svg */
:root {
  --navy-900: #050d15;
  --navy-850: #08141f;
  --navy-800: #0c1d2c;
  --navy-700: #123049;
  --line: rgba(148, 210, 222, 0.12);
  --line-strong: rgba(148, 210, 222, 0.22);
  --text: #e8f4f6;
  --text-2: #9fb7c2;
  --text-3: #6f8a97;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --mint: #f0fdfa;
  --amber: #fbbf24;
  --radius: 20px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-850);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal-300); color: var(--navy-900); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

.icon { width: 24px; height: 24px; flex: none; }
.mark { width: 32px; height: 32px; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 20, 31, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(5, 13, 21, 0.85); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 18px/1 var(--display); letter-spacing: -0.01em; }
.links { display: flex; gap: 26px; margin-left: 16px; font-size: 15px; color: var(--text-2); }
.links a { transition: color .2s; }
.links a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  font: 650 13px/1 var(--font); color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s, background .2s; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); border-color: var(--teal-400); background: rgba(45,212,191,.08); }
.lang-pop[hidden] { display: none; }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 14px; background: rgba(8, 20, 31, .97); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -12px rgba(0,0,0,.7); display: grid; z-index: 60; }
.lang-pop a { padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--text-2); }
.lang-pop a:hover { background: rgba(45,212,191,.08); color: var(--text); }
.lang-pop a[aria-current] { color: var(--teal-200); font-weight: 650; }
/* Japanese: break between phrases, never inside a word. */
:lang(ja) { word-break: auto-phrase; line-break: strict; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 600 16px/1 var(--font);
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary {
  color: #032420;
  background: linear-gradient(180deg, var(--teal-300), var(--teal-500));
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, .6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(45, 212, 191, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal-400); background: rgba(45,212,191,.06); }
.btn-small { min-height: 36px; padding: 0 16px; border-radius: 10px; font-size: 14px; color: #032420; background: var(--teal-300); }
.btn-small:hover { background: var(--teal-200); }
.btn.is-soon { cursor: default; opacity: .78; }
.btn.is-soon:hover { transform: none; }
.btn .soon {
  position: absolute; top: -10px; right: -8px;
  font: 700 10px/1 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy-900); background: var(--amber); padding: 4px 7px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 0; overflow: hidden; }
.glow {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(45, 212, 191, .18), transparent 70%),
    radial-gradient(700px 500px at 15% 10%, rgba(18, 48, 73, .9), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 65%);
}
.eyebrow { font: 700 12.5px/1 var(--font); letter-spacing: .16em; color: var(--teal-300); margin-bottom: 18px; }
.hero h1 { text-wrap: balance; font-size: clamp(40px, 6.4vw, 78px); font-weight: 750; letter-spacing: -0.035em; }
.grad { display: inline-block; background: linear-gradient(100deg, var(--teal-200), var(--teal-400) 55%, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 19px; line-height: 1.6; margin-top: 20px; max-width: 60ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--teal-300); font-weight: 600; font-size: 15px; }
.more .icon { width: 16px; height: 16px; transition: transform .2s; }
.more:hover .icon { transform: translateX(3px); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; }
.chips li { font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }

/* ---------- hero showcase: three real iPhone screens ---------- */
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero-copy .ctas, .hero-copy .chips { justify-content: center; }
.showcase { position: relative; z-index: 1; height: 700px; margin-top: 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 99%); mask-image: linear-gradient(to bottom, #000 66%, transparent 99%); }
.pulse-bg { position: absolute; left: -10%; right: -10%; top: 140px; width: 120%; height: 300px; overflow: visible; }
.pulse-bg path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pb-base { stroke: rgba(94,234,212,.14); stroke-width: 2; }
.pb-glow { stroke: var(--teal-200); stroke-width: 3; stroke-dasharray: 10 90; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(153,246,228,.9)); animation: travel 5.5s linear infinite; }

/* phone frame (shared by hero and gallery) */
.device { margin: 0; }
.device-frame { position: relative; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #4b5964, #161e25 30%, #0c1218 70%, #3a4650);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.12); }
.device-frame::before { content: ""; position: absolute; inset: 4px; border-radius: 50px; border: 1px solid rgba(255,255,255,.06); pointer-events: none; }
.device-screen { overflow: hidden; border-radius: 44px; background: #0b0c10; container-type: inline-size; }
.shot { position: relative; }
.shot > img { display: block; width: 100%; height: auto; }
.app-top { padding: 4.5cqw 6cqw 2cqw; color: #fff; }
.app-status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 8cqw; font: 650 4.6cqw/1 var(--font); padding: 0 2cqw; }
.island { position: absolute; left: 50%; top: 0; width: 29cqw; height: 8.4cqw; margin-left: -14.5cqw; border-radius: 99px; background: #000; }
.app-icons { display: flex; align-items: center; gap: 1.8cqw; }
.bars { display: flex; align-items: flex-end; gap: .6cqw; height: 3.4cqw; }
.bars b { width: .9cqw; border-radius: .3cqw; background: #fff; }
.bars b:nth-child(1) { height: 1.2cqw; } .bars b:nth-child(2) { height: 1.8cqw; } .bars b:nth-child(3) { height: 2.6cqw; } .bars b:nth-child(4) { height: 3.4cqw; }
.batt { position: relative; width: 7.4cqw; height: 3.6cqw; border-radius: 1.2cqw; border: .45cqw solid rgba(255,255,255,.55); }
.batt::before { content: ""; position: absolute; inset: .45cqw; right: 1.6cqw; border-radius: .6cqw; background: #fff; }
.app-title { text-align: center; font: 700 5.8cqw/1 var(--display); margin: 5cqw 0 2cqw; letter-spacing: -.01em; }
.app-switch { display: flex; gap: 2.4cqw; margin: 4cqw 0 1cqw; }
.app-switch span { padding: 2.4cqw 4.4cqw; border-radius: 99px; font: 600 4cqw/1 var(--font); color: #fff; background: #1f2023; }
.app-switch span.on { background: #0a84ff; }
/* "MacBook Pro" written over the device name that was painted out of devices.jpg */
.relabel { position: absolute; display: flex; align-items: center; white-space: nowrap; pointer-events: none; }
.rl-ring { left: 29.8%; top: 24.2%; width: 18.5%; height: 2.7%; justify-content: center; font: 500 1.95cqw/1 var(--font); color: #a1a1a6; }
.rl-row { left: 18.4%; top: 64.3%; width: 27.2%; height: 4.4%; font: 600 3.9cqw/1 var(--display); color: #fff; }

.p-front { position: absolute; left: 50%; top: 0; width: 330px; margin-left: -165px; z-index: 3; }
.p-back { position: absolute; top: 70px; width: 280px; z-index: 1; opacity: .92; }
.p-back .device-frame { box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.p-left { left: 50%; margin-left: -470px; transform: rotate(-7deg); }
.p-right { left: 50%; margin-left: 190px; transform: rotate(7deg); }

.float { position: absolute; z-index: 4; border-radius: 20px; padding: 14px 16px;
  background: rgba(10,24,36,.82); border: 1px solid rgba(148,210,222,.22);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.75); font-size: 14px; animation: float 9s ease-in-out infinite; }
.float .icon { width: 18px; height: 18px; flex: none; }
.f-toast { left: 50%; margin-left: 150px; top: 20px; width: 270px; display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.3; animation-delay: -1.5s; transition: opacity .35s, transform .35s; }
.f-toast.swap { opacity: 0; transform: translateY(-8px); }
.f-bell { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #2a1d02; background: var(--amber); }
.f-tag { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.f-tag .icon { color: var(--teal-300); }
.f-tag b { color: var(--teal-200); font-variant-numeric: tabular-nums; }
.f-tag-l { left: 50%; margin-left: -500px; top: 30px; animation-delay: -4s; }
.f-tag-r { left: 50%; margin-left: 260px; top: 520px; animation-delay: -6s; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes travel { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---------- ecosystem section ---------- */
.eco { background: radial-gradient(900px 500px at 50% 10%, rgba(18,48,73,.8), transparent 70%); }
.eco-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eco-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; container-type: inline-size; }
.eco-orbit { position: absolute; inset: 13%; border-radius: 50%; border: 1px dashed rgba(94,234,212,.22); }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-lines line { stroke: rgba(94,234,212,.22); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.eco-lines .flow { stroke: var(--teal-200); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 100; stroke-dashoffset: 108; filter: drop-shadow(0 0 4px rgba(153,246,228,.9)); animation: flow 3.2s linear infinite; }
.eco-lines .f1 { animation-delay: -.6s; } .eco-lines .f2 { animation-delay: -1.3s; } .eco-lines .f3 { animation-delay: -2s; } .eco-lines .f4 { animation-delay: -2.6s; }
@keyframes flow { from { stroke-dashoffset: 108; } to { stroke-dashoffset: 0; } }
.eco-hub { position: absolute; left: 50%; top: 50%; width: 30cqw; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2cqw; text-align: center; }
.eco-hub .mark { width: 17cqw; height: 17cqw; filter: drop-shadow(0 0 6cqw rgba(45,212,191,.45)); }
.eco-hub span { font: 650 3.2cqw/1.2 var(--display); color: var(--teal-200); padding: 1.4cqw 2.6cqw; border-radius: 99px; background: rgba(5,13,21,.8); border: 1px solid rgba(94,234,212,.3); white-space: nowrap; }
.node { position: absolute; width: 22cqw; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .6cqw; text-align: center; }
.n0 { left: 50%; top: 13%; } .n1 { left: 85.2%; top: 38.6%; } .n2 { left: 71.7%; top: 79.9%; } .n3 { left: 28.3%; top: 79.9%; } .n4 { left: 14.8%; top: 38.6%; }
.node-ring { position: relative; width: 15cqw; height: 15cqw; border-radius: 50%; background: rgba(8,20,31,.92); box-shadow: 0 0 0 1px rgba(148,210,222,.18), 0 2cqw 5cqw -1cqw rgba(0,0,0,.7); }
.node-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.node-ring circle { fill: none; stroke-width: 3; }
.node-ring .tr { stroke: rgba(148,210,222,.14); }
.node-ring .vl { stroke-linecap: round; }
.node-ring .icon { position: absolute; left: 50%; top: 50%; width: 6cqw; height: 6cqw; transform: translate(-50%, -50%); color: var(--text); }
.node b { font: 750 4.2cqw/1 var(--display); margin-top: 1cqw; }
.node span { font-size: 3cqw; color: var(--text-2); white-space: nowrap; }
.eco-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.eco-points li { display: flex; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.eco-points .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--teal-300); background: rgba(45,212,191,.1); }
.eco-points h3 { font-size: 18px; margin-bottom: 4px; }
.eco-points p { color: var(--text-2); font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 72px; align-items: start; }
.g-item { text-align: center; }
.g-item .device { width: 100%; max-width: 270px; margin: 0 auto 20px; height: 470px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.g-card { max-width: 290px; margin: 0 auto 20px; padding: 10px; border-radius: 22px; background: rgba(10,24,36,.8); border: 1px solid rgba(148,210,222,.2); }
.g-card img { display: block; width: 100%; height: auto; border-radius: 14px; }
.g-item h3 { font-size: 19px; margin-bottom: 6px; }
.g-item p { color: var(--text-2); font-size: 15px; max-width: 30ch; margin: 0 auto; }

/* ---------- sections ---------- */
.block { padding: 110px 0; position: relative; }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.head.center .lead { margin-left: auto; margin-right: auto; }
.head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 720; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.35); background: linear-gradient(180deg, rgba(45,212,191,.07), rgba(255,255,255,.012)); }
.card .icon, .pv .icon { width: 44px; height: 44px; padding: 10px; border-radius: 13px; color: var(--teal-300); background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.2); margin-bottom: 18px; }
.card h3, .pv h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.card p, .pv p { color: var(--text-2); font-size: 15.5px; }

.usb { background: linear-gradient(180deg, transparent, rgba(18,48,73,.45) 30%, rgba(18,48,73,.45) 70%, transparent); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(5,13,21,.5); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -18px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--teal-400), transparent); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 17px/1 var(--display); color: #032420; background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15.5px; }

.remote-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.remote .head { margin-bottom: 28px; }
.cmds { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cmds li { padding: 10px 16px; border-radius: 12px; font-size: 15px; font-weight: 550; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.cmds li:hover { border-color: var(--teal-400); color: var(--teal-200); }
.alerts { padding: 30px; border-radius: 26px; background: linear-gradient(160deg, rgba(45,212,191,.12), rgba(18,48,73,.5)); border: 1px solid rgba(45,212,191,.25); }
.alerts h3 { font-size: 21px; margin-bottom: 18px; }
.alerts ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alerts li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(5,13,21,.6); border: 1px solid var(--line); font-size: 15px; }
.alerts .icon { color: var(--teal-300); width: 22px; height: 22px; }

.pv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pv { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); }

.pro { background: radial-gradient(800px 400px at 50% 0%, rgba(45,212,191,.1), transparent 70%); }
.table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line-strong); background: rgba(5,13,21,.55); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 22px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15.5px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 700 14px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); padding-top: 20px; padding-bottom: 20px; }
thead th.pro-col { color: var(--teal-300); }
tbody th { text-align: left; font-weight: 500; color: var(--text); }
td { color: var(--text-2); }
td.yes .icon { margin: 0 auto; color: var(--teal-300); width: 22px; height: 22px; }
td.no .icon { margin: 0 auto; color: var(--text-3); width: 20px; height: 20px; }
td:last-child, thead th:last-child { background: rgba(45,212,191,.05); }
.note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 20px; }

.welcome { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font: 650 clamp(22px, 3vw, 34px)/1.3 var(--display); color: var(--text-3); }
.welcome span { transition: color .3s; }
.welcome span.lit { color: var(--teal-200); }

.faq { display: grid; gap: 12px; }
details { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; }
details[open] { border-color: rgba(45,212,191,.3); background: rgba(45,212,191,.04); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--teal-300); border-bottom: 2px solid var(--teal-300); transform: rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 22px 20px; color: var(--text-2); font-size: 16px; }

.final-in { text-align: center; padding: 70px 24px; border-radius: 32px; border: 1px solid rgba(45,212,191,.25); background: radial-gradient(600px 300px at 50% 0%, rgba(45,212,191,.16), transparent 70%), rgba(5,13,21,.6); }
.final-in .mark { width: 72px; height: 72px; margin: 0 auto 24px; filter: drop-shadow(0 12px 30px rgba(45,212,191,.35)); }
.final-in h2 { font-size: clamp(32px, 4.4vw, 50px); }
.final-in .lead { margin-left: auto; margin-right: auto; }
.final-in .ctas { justify-content: center; }

/* ---------- Mac section: collage of real popover screenshots ---------- */
.mac { background: linear-gradient(180deg, transparent, rgba(18,48,73,.35) 40%, transparent); }
.mac-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.mac-copy .head { margin-bottom: 28px; }
/* grid items default to min-width:auto; long CJK phrases would stretch the column past the screen */
.mac-in > *, .eco-grid > *, .remote-in > * { min-width: 0; }
.mac-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.mac-chips li { padding: 9px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mac-chips li:first-child, .mac-chips li:nth-child(2) { color: var(--teal-200); border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pop { margin: 0; border-radius: 22px; overflow: hidden; background: #0b1622; border: 1px solid rgba(148,210,222,.2);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85); transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.pop img { display: block; width: 100%; height: auto; }
.pop figcaption { display: grid; gap: 3px; padding: 12px 16px 14px; border-top: 1px solid rgba(148,210,222,.12); background: rgba(8,20,31,.9); }
.pop figcaption b { font-size: 15.5px; }
.pop figcaption span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.pop1, .pop3 { margin-top: 56px; }
.pop0 { rotate: -1.5deg; } .pop1 { rotate: 1.5deg; } .pop2 { rotate: 1deg; border-color: rgba(45,212,191,.45); } .pop3 { rotate: -1deg; }
.pop:hover { transform: translateY(-6px); border-color: rgba(45,212,191,.55); }
.pop0 { margin-top: 0; }
.collage .pop2 { order: 0; }

/* ---------- sub pages ---------- */
.page-head { padding: 80px 0 30px; }
.page-head h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 740; }
.page-head .meta { color: var(--text-3); margin-top: 14px; font-size: 15px; }
.page-head.center { text-align: center; padding: 120px 0 140px; }
.page-head.center .mark { width: 64px; height: 64px; margin: 0 auto 28px; }
.page-head.center .lead { margin: 18px auto 30px; }
.prose { padding: 20px 0 110px; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; }
.prose p + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 22px; display: grid; gap: 8px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.dl-card { padding: 30px; border-radius: 22px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.dl-card > .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; color: var(--teal-300); background: rgba(45,212,191,.1); }
.dl-card h2 { margin: 4px 0 0; font-size: 22px; }
.dl-card .req { font-size: 14.5px; color: var(--text-3); margin-top: auto; padding-top: 8px; }
.dl-card .req b { color: var(--text-2); }
.mail-card { display: flex; gap: 18px; padding: 26px; border-radius: 22px; border: 1px solid rgba(45,212,191,.3); background: rgba(45,212,191,.06); transition: transform .2s, border-color .2s; }
.mail-card:hover { transform: translateY(-2px); border-color: var(--teal-300); }
.mail-card > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; color: #032420; background: var(--teal-300); }
.mail-card span { display: grid; gap: 4px; }
.mail-card b { font-size: 19px; }
.mail-card em { font-style: normal; color: var(--teal-200); font-weight: 600; }
.mail-card small { color: var(--text-2); font-size: 15px; }
.release { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.release header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.release h2 { margin: 0; font-size: 26px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(251,191,36,.4); border-radius: 999px; padding: 4px 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--navy-900); padding: 60px 0 30px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); font-size: 14.5px; margin-top: 14px; max-width: 32ch; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.footer-col h3 { font: 700 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.footer-col a { color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--teal-200); }
.footer-base { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-langs a { color: var(--text-3); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .remote-in { grid-template-columns: 1fr; }
  .showcase { height: 620px; }
  .p-left { margin-left: -400px; } .p-right { margin-left: 120px; }
  .f-tag-l { margin-left: -380px; top: 0; } .f-tag-r { margin-left: 120px; top: 560px; }
  .f-toast { margin-left: 90px; }
  .eco-grid { grid-template-columns: 1fr; }
  .mac-in { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 14px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .hero { padding: 44px 0 0; }
  .showcase { height: 560px; margin-top: 76px; }
  .p-front { width: 250px; margin-left: -125px; }
  .p-back { width: 200px; top: 60px; }
  .p-left { margin-left: -230px; } .p-right { margin-left: 30px; }
  .device-frame { padding: 8px; border-radius: 42px; }
  .device-screen { border-radius: 34px; }
  .float { padding: 10px 12px; font-size: 12px; border-radius: 16px; }
  .f-toast { width: 230px; margin-left: -115px; top: -30px; gap: 8px; }
  .showcase { padding-top: 0; }
  .f-bell { width: 30px; height: 30px; }
  .f-tag { display: none; }
  .gallery { grid-template-columns: 1fr; gap: 40px; }
  .collage { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 18px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .pop { flex: 0 0 78%; scroll-snap-align: center; rotate: 0deg; margin-top: 0; }
  .eco-points li { padding: 16px; }
  .f-toast { width: 200px; right: -6px; top: 30px; gap: 8px; }
  .f-bell { width: 30px; height: 30px; }
  .block { padding: 76px 0; }
  .grid, .steps, .pv-grid, .dl-grid { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  table { min-width: 0; }
  th, td { padding: 13px 10px; font-size: 14px; }
  thead th { font-size: 12px; letter-spacing: .03em; }
  tbody th { padding-left: 16px; }
  .btn { width: 100%; }
  .top-actions .btn { width: auto; }
  .lead { font-size: 17.5px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
}
/* Click-to-zoom screenshots (site.js) */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 4px; }
html.lb-open { overflow: hidden; }
/* Hover: the shot brightens and grows a little, and a magnifier badge
   says it opens. On touch screens the badge simply stays visible. */
.zoom-wrap { position: relative; }
.zoom-wrap::after { content: ""; position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,20,31,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399f6e4' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 1px solid rgba(94,234,212,.45); box-shadow: 0 6px 18px -6px rgba(0,0,0,.8);
  opacity: 0; transform: scale(.8); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.device-screen.zoom-wrap::after { top: 64px; right: 14px; }
.zoom-wrap:hover::after, .zoom-wrap:focus-within::after, .device-screen.zoom-wrap:focus::after { opacity: 1; transform: none; }
.zoom-wrap img, .device-screen.zoom-wrap .shot { transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.zoom-wrap:hover img { filter: brightness(1.1); }
.device-screen.zoom-wrap:hover .shot, .g-card.zoom-wrap:hover img { transform: scale(1.04); }
.g-card.zoom-wrap { overflow: hidden; }
@media (hover: none) { .zoom-wrap::after { opacity: .9; transform: none; } }
.lightbox { border: 0; padding: 0; margin: auto; max-width: none; max-height: none; background: transparent; color: var(--text); overflow: visible; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(3,9,15,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .22s cubic-bezier(.2,.8,.2,1); }
.lightbox[open]::backdrop { animation: lb-fade .22s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-body { display: grid; justify-items: center; gap: 12px; }
.lb-screen { width: min(92vw, 440px, 46vh); max-height: 94vh; overflow-y: auto; scrollbar-width: none; border-radius: 36px; box-shadow: 0 0 0 1px rgba(148,210,222,.22), 0 40px 120px -20px rgba(0,0,0,.9); }
.lb-img { display: block; height: auto; max-width: 92vw; border-radius: 18px; box-shadow: 0 0 0 1px rgba(148,210,222,.22), 0 40px 120px -20px rgba(0,0,0,.9); }
.lb-cap { display: grid; gap: 3px; text-align: center; max-width: min(92vw, 560px); }
.lb-cap b { font-size: 16px; }
.lb-cap span { font-size: 14px; color: var(--text-2); }
.lb-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(8,20,31,.85); color: var(--text); font: 400 28px/1 var(--font); cursor: pointer; }
.lb-close:hover { border-color: var(--teal-400); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
