:root {
  --ink: #10233e;
  --muted: #61758c;
  --blue: #0878ff;
  --cyan: #00cbe8;
  --mint: #00c995;
  --purple: #8468ff;
  --line: rgba(41, 112, 182, .15);
  --surface: rgba(255, 255, 255, .88);
  --shadow: 0 22px 65px rgba(42, 91, 142, .14);
  --font-header: "Orbitron", "Noto Sans JP", sans-serif;
  color-scheme: light;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { min-width: 300px; min-height: 100vh; margin: 0; color: var(--ink); background: linear-gradient(180deg, #fff 0%, #f6fbff 55%, #f8fbff 100%); overflow-x: hidden; }
button, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; color: #fff; background: var(--blue); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; width: 100%; background: rgba(255, 255, 255, .88); border-bottom: 1px solid rgba(26, 110, 180, .13); box-shadow: 0 8px 30px rgba(42, 91, 142, .05); backdrop-filter: blur(20px) saturate(1.35); }
.header-inner { width: min(1100px, calc(100% - 48px)); height: 70px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #000; background: linear-gradient(135deg, #00d4ff, #8b5cf6); border-radius: 10px; box-shadow: 0 0 20px rgba(0, 212, 255, .5); font-family: var(--font-header); font-size: 16px; font-weight: 800; animation: brandGlow 3s ease-in-out infinite; }
.brand-name { color: transparent; background: linear-gradient(90deg, #00d4ff, #00ff88); background-clip: text; font-family: var(--font-header); font-size: 20px; font-weight: 700; letter-spacing: .05em; }
.language-picker { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #38566e; background: rgba(255,255,255,.9); border: 1px solid rgba(0,157,209,.18); border-radius: 999px; box-shadow: 0 5px 18px rgba(44,95,140,.07); }
.language-picker svg { width: 16px; height: 16px; color: #168fc2; }
.language-picker select { max-width: 128px; color: inherit; background: transparent; border: 0; outline: 0; cursor: pointer; font-family: var(--font-header); font-size: 11px; font-weight: 600; }

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23,130,206,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,130,206,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.ambient span { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .26; animation: orbFloat 12s ease-in-out infinite; }
.ambient span:nth-child(1) { width: 510px; height: 510px; right: -180px; top: 30px; background: radial-gradient(circle, #7be6ff 0%, rgba(90,196,255,.18) 46%, transparent 72%); }
.ambient span:nth-child(2) { width: 460px; height: 460px; left: -220px; top: 610px; background: radial-gradient(circle, #d4c6ff 0%, rgba(135,104,255,.14) 48%, transparent 72%); animation-delay: -5s; }
.ambient span:nth-child(3) { display: none; }

.page-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); margin: 10px auto 0; }
.workspace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(490px, 1.08fr); gap: clamp(32px, 4.2vw, 64px); align-items: center; }
.intro-pane { min-width: 0; padding: 9px 0 5px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.eyebrow > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(35,202,239,.13); animation: pulseDot 2.3s ease-out infinite; }
h1 { margin: 0; color: #172743; font-size: clamp(52px, 6.1vw, 84px); line-height: .9; letter-spacing: -.075em; font-weight: 900; }
h1 span { color: var(--blue); }
.lead { max-width: 530px; margin: 15px 0 6px; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.55; font-weight: 800; letter-spacing: -.025em; }
.intro-copy { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.hero-visual { position: relative; width: min(100%, 520px); height: 226px; margin: 10px auto 0; }
.privacy-globe { --globe-scale: 1; position: absolute; left: 50%; top: 0; width: 420px; height: 200px; transform: translateX(-50%) scale(var(--globe-scale)); transform-origin: center; }
.globe-grid { position: absolute; z-index: 0; left: 50%; top: 49%; width: 260px; height: 150px; border: 1px solid rgba(38,126,237,.15); border-radius: 50%; transform: translate(-50%, -50%); }
.globe-grid::before, .globe-grid::after { content: ""; position: absolute; inset: 0; border: inherit; border-radius: inherit; }
.globe-grid::before { transform: scaleX(.46); }
.globe-grid::after { transform: scaleY(.46); }
.orbit-track { position: absolute; z-index: 1; left: 50%; top: 49%; width: 375px; height: 128px; border: 1px solid rgba(38,126,237,.21); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-track.orbit-tilted { width: 330px; height: 104px; border-style: dashed; border-color: rgba(92,102,232,.2); transform: translate(-50%, -50%) rotate(28deg); }
.orbiter { --orbit-time: 16s; --orbit-delay: 0s; position: absolute; left: 0; top: 0; z-index: 6; width: 1px; height: 1px; offset-path: ellipse(44.5% 30% at 50% 49%); offset-rotate: 0deg; animation: orbitData var(--orbit-time) linear var(--orbit-delay) infinite, orbitDepth var(--orbit-time) linear var(--orbit-delay) infinite; will-change: offset-distance, transform, opacity; backface-visibility: hidden; }
.orbit-xmp { --orbit-delay: -8s; }
.orbit-id { --orbit-delay: -4s; }
.orbit-url { --orbit-delay: -12s; }
.orbit-exif, .orbit-author { --orbit-time: 19s; offset-path: path("M342.4 168.4 C328.9 193.7 258.7 182.8 185.6 143.9 C112.5 105 64.1 52.9 77.6 27.6 C91.1 2.3 161.3 13.2 234.4 52.1 C307.5 91 355.9 143.1 342.4 168.4 Z"); }
.orbit-exif { --orbit-delay: -3s; }
.orbit-author { --orbit-delay: -12.5s; }
.data-chip { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 7px 10px; color: #43617e; background: rgba(255,255,255,.94); border: 1px solid rgba(194,218,244,.92); border-radius: 10px; box-shadow: 0 9px 24px rgba(54,93,143,.12); backdrop-filter: blur(8px); font-size: 9px; font-weight: 850; letter-spacing: .08em; animation: chipClean 3.2s ease-in-out infinite; transform: translate(-50%, -50%); }
.eraser { width: 16px; height: 16px; animation: eraseSweep 1.55s ease-in-out infinite; }
.eraser-shell { fill: #4f8df7; stroke: #1769d5; stroke-width: 1.4; }
.eraser-rubber { fill: #fff; stroke: #9fb6ca; stroke-width: 1.2; }
.eraser-line { fill: none; stroke: #416f9c; stroke-width: 1.45; stroke-linecap: round; }
.core { position: absolute; z-index: 4; left: 50%; top: 49%; width: 116px; height: 116px; padding: 14px; border-radius: 36%; transform: translate(-50%, -50%) rotate(7deg); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(227,242,255,.9)); box-shadow: 0 20px 55px rgba(26,103,205,.22), inset 0 0 0 1px rgba(255,255,255,.95); animation: coreBreath 3.4s ease-in-out infinite; }
.core img { display: block; width: 100%; height: 100%; object-fit: contain; transform: rotate(-7deg); }
.format-badge { position: absolute; z-index: 7; left: 50%; bottom: -14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; color: #587087; background: rgba(255,255,255,.92); border: 1px solid rgba(194,218,244,.85); border-radius: 999px; box-shadow: 0 8px 22px rgba(54,93,143,.08); transform: translateX(-50%); white-space: nowrap; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.format-badge b { color: var(--mint); font-size: 12px; }
.trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 13px 0 0; padding: 0; list-style: none; color: #455d7d; font-size: 11px; font-weight: 750; }
.trust-list li { display: flex; align-items: center; gap: 5px; }
.trust-list svg { width: 16px; height: 16px; color: var(--blue); }

.tool-card { min-width: 0; padding: clamp(22px, 2.6vw, 34px); background: var(--surface); border: 1px solid rgba(210,225,243,.88); border-radius: 25px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.tool-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.tool-heading h2 { margin: 7px 0 0; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25; letter-spacing: -.035em; }
.local-badge { display: inline-flex; align-items: center; gap: 7px; color: #22806e; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.local-badge i { width: 7px; height: 7px; background: #24c99f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(36,201,159,.12); }
.output-note { margin: 7px 0 0; color: #728198; font-size: 10px; line-height: 1.5; text-align: center; }
.button { border: 0; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .drop-zone:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(22,119,255,.25); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.drop-zone { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px 13px; min-height: 105px; padding: 17px; border: 1.5px dashed #a9cbed; border-radius: 16px; background: linear-gradient(135deg, rgba(244,250,255,.84), rgba(250,253,255,.94)); cursor: pointer; transition: border .18s ease, background .18s ease, transform .18s ease; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--blue); background: #eef7ff; transform: translateY(-1px); }
.drop-icon { display: grid; place-items: center; grid-row: span 2; width: 43px; height: 43px; color: var(--blue); background: #e3f1ff; border-radius: 13px; }
.drop-icon svg { width: 23px; height: 23px; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { margin-bottom: 3px; font-size: 13px; }
.drop-zone span { color: var(--muted); font-size: 10px; }
.drop-zone small { grid-column: 2; color: #8190a5; font-size: 9px; }
.queue-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 7px; font-size: 11px; }
.queue-head b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; color: #fff; background: var(--blue); border-radius: 999px; font-size: 9px; }
.text-button { padding: 3px; color: #6d7b91; background: transparent; border: 0; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.file-queue { display: grid; gap: 6px; max-height: 162px; overflow: auto; scrollbar-width: thin; }
.file-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 53px; padding: 5px 8px 5px 5px; background: #f8fbff; border: 1px solid #e4edf7; border-radius: 11px; }
.thumb { position: relative; width: 52px; height: 42px; overflow: hidden; background: #dae8f7; border-radius: 8px; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(16,29,54,.26); text-shadow: 0 1px 5px rgba(0,0,0,.4); font-size: 13px; }
.thumb.audio::after { content: "♪"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(16,74,128,.2); text-shadow: 0 1px 5px rgba(0,0,0,.35); font-size: 18px; }
.file-info { min-width: 0; }
.file-info strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-info small { display: block; margin-top: 3px; color: #748298; font-size: 9px; }
.status-pill { max-width: 96px; overflow: hidden; padding: 4px 7px; color: #4b6685; background: #e9f2fb; border-radius: 999px; font-size: 8px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.status-pill.done { color: #167a64; background: #dff7ef; }
.status-pill.error { color: #b7485b; background: #ffe8ec; }
.remove-file { display: grid; place-items: center; width: 25px; height: 25px; margin-left: 2px; color: #7e8da2; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 17px; }
.remove-file:hover { color: #d14d65; background: #ffedf0; }
.progress-panel { margin: 12px 0 0; padding: 10px 12px; background: #f3f8fe; border-radius: 11px; }
.progress-panel > div:first-child { display: flex; justify-content: space-between; font-size: 10px; }
.progress-track { height: 5px; margin: 7px 0 5px; overflow: hidden; background: #dce8f5; border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .2s ease; }
.progress-panel small { display: block; overflow: hidden; color: #77869b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tool-actions { display: flex; gap: 8px; margin-top: 13px; }
.button-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 11px 18px; color: #fff; background: linear-gradient(115deg, #126ef1, #1d8cff); border-radius: 12px; box-shadow: 0 10px 26px rgba(22,119,255,.25); font-size: 12px; font-weight: 900; }
.button-primary svg { width: 18px; height: 18px; }
.button-cancel { flex: 0 0 auto; padding: 0 15px; color: #a94356; background: #ffedf0; border-radius: 12px; font-size: 10px; font-weight: 800; }

.privacy-section { padding: 62px 0 20px; }
.section-heading { margin-bottom: 22px; }
.section-heading > span { color: #4c86a8; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.privacy-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.privacy-card { position: relative; overflow: hidden; min-height: 292px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.83); box-shadow: 0 12px 36px rgba(42,91,142,.09); }
.privacy-card::before { content: ""; position: absolute; inset: auto -30% -65% 25%; height: 75%; border-radius: 50%; filter: blur(10px); opacity: .17; }
.privacy-card.remove::before { background: #00cae8; }
.privacy-card.keep::before { background: #00cf91; }
.privacy-card.limit::before { background: #8066f3; }
.card-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg,#00bee0,#247fff); border-radius: 14px; box-shadow: 0 12px 24px rgba(38,126,224,.2); }
.keep .card-icon { background: linear-gradient(135deg,#00c4b4,#00cb83); }
.limit .card-icon { background: linear-gradient(135deg,#537bff,#9e64e9); }
.card-icon svg { width: 25px; }
.privacy-card > span { color: #5684a3; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.privacy-card h3 { margin: 9px 0 12px; font-size: 19px; }
.privacy-card p, .privacy-card li { color: #64788a; font-size: 11px; line-height: 1.75; }
.privacy-card ul { position: relative; margin: 14px 0 0; padding-left: 17px; }
.metadata-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.metadata-tags b { padding: 5px 8px; color: #227aa4; background: #eaf8ff; border: 1px solid rgba(0,170,220,.12); border-radius: 999px; font-size: 8px; letter-spacing: .06em; }
.card-note { position: relative; margin-top: 15px !important; padding: 11px 12px; color: #665c45 !important; background: rgba(255,248,229,.9); border-radius: 11px; }
.privacy-network-note { margin: 14px 0 0; padding: 12px 15px; color: #665c45; background: rgba(255,248,229,.9); border: 1px solid rgba(201,165,83,.18); border-radius: 14px; font-size: 11px; line-height: 1.75; }
.spec-line { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; overflow: hidden; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 10px 30px rgba(42,91,142,.07); }
.spec-line > div { min-width: 0; padding: 15px 17px; border-right: 1px solid var(--line); }
.spec-line > div:last-child { border: 0; }
.spec-line b, .spec-line span { display: block; }
.spec-line b { margin-bottom: 5px; color: #3c789d; font-size: 9px; letter-spacing: .08em; }
.spec-line span { color: #657a8e; font-size: 10px; line-height: 1.55; }

.keycraft-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 22px; padding: 24px 27px; color: #fff; background: linear-gradient(120deg, #0e326a 0%, #125fb9 54%, #247ed8 100%); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; box-shadow: 0 18px 48px rgba(24,74,137,.2); }
.keycraft-icon { display: grid; place-items: center; width: 72px; height: 72px; padding: 4px; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.24); border-radius: 21px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 25px rgba(4,34,73,.22); }
.keycraft-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.keycraft-copy { min-width: 0; }
.keycraft-copy > span { color: #76e5ff; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.keycraft-copy h2 { margin: 5px 0 7px; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.03em; }
.keycraft-copy p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.7; }
.keycraft-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 8px 17px 8px 9px; color: #103667; background: linear-gradient(135deg, #fff, #eef7ff); border: 1px solid rgba(255,255,255,.75); border-radius: 15px; box-shadow: 0 10px 26px rgba(4,34,73,.22), inset 0 1px 0 #fff; text-decoration: none; white-space: nowrap; font-size: 11px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.booth-mark { display: block; flex: 0 0 auto; width: 33px; height: 33px; overflow: hidden; border-radius: 9px; box-shadow: 0 6px 13px rgba(184,38,48,.24); }
.booth-mark img { display: block; width: 100%; height: 100%; }
.keycraft-link:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(4,34,73,.28), inset 0 1px 0 #fff; }
.keycraft-link:focus-visible { outline: 3px solid rgba(121,246,209,.55); outline-offset: 3px; }

footer { position: relative; z-index: 1; margin-top: 48px; padding: 22px 24px; text-align: center; background: rgba(255,255,255,.76); border-top: 1px solid var(--line); }
.footer-inner { position: relative; width: min(1100px, 100%); min-height: 42px; margin: auto; display: flex; align-items: center; justify-content: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer-links a { color: #61758c; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .07em; transition: color .2s ease; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { display: inline-flex; align-items: baseline; gap: 4px; color: #8293a5; }
.copyright-mark { font-size: 10px; }
.footer-copy span:last-child { font-family: var(--font-header); font-size: 11.5px; font-weight: 500; letter-spacing: .055em; }
.footer-top { position: absolute; top: 50%; right: -5px; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; background: transparent; border: 0; border-radius: 50%; transform: translateY(-50%); text-decoration: none; transition: filter .18s ease, transform .18s ease; }
.footer-top img { display: block; width: 62px; height: 62px; }
.footer-top:hover { filter: saturate(1.12) brightness(1.04); transform: translateY(calc(-50% - 3px)) scale(1.035); }
.footer-top:focus-visible { outline: 3px solid rgba(8,120,255,.22); outline-offset: 3px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 22px; max-width: min(460px, calc(100% - 28px)); padding: 11px 17px; color: #fff; background: rgba(16,29,54,.94); border-radius: 11px; box-shadow: 0 12px 35px rgba(13,31,57,.2); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: .2s ease; font-size: 11px; font-weight: 700; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(172,53,73,.96); }

@keyframes brandGlow { 0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,.5); } 50% { box-shadow: 0 0 30px rgba(0,212,255,.8), 0 0 60px rgba(0,212,255,.4); } }
@keyframes pulseDot { 70%, 100% { box-shadow: 0 0 0 11px rgba(0,201,149,0), 0 0 18px rgba(0,201,149,.4); } }
@keyframes orbFloat { 50% { transform: translate3d(30px,45px,0) scale(1.08); } }
@keyframes orbitData { to { offset-distance: 100%; } }
@keyframes orbitDepth {
  0%, 40%, 100% { z-index: 6; opacity: 1; transform: scale(1); }
  25% { z-index: 6; opacity: 1; transform: scale(1.08); }
  50% { z-index: 2; opacity: .86; transform: scale(.95); }
  62.5%, 87.5% { z-index: 2; opacity: .64; transform: scale(.86); }
  75% { z-index: 2; opacity: .52; transform: scale(.8); }
  99.8% { z-index: 2; opacity: .98; transform: scale(.99); }
}
@keyframes eraseSweep { 50% { transform: translateX(2px) rotate(-10deg); } }
@keyframes chipClean { 50% { box-shadow: 0 9px 28px rgba(0,170,220,.2); border-color: rgba(0,190,220,.35); } }
@keyframes coreBreath { 50% { transform: translate(-50%, -50%) rotate(7deg) scale(1.13); } }

@media (max-width: 980px) {
  .workspace { grid-template-columns: minmax(0, .78fr) minmax(445px, 1.22fr); gap: 28px; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .privacy-card.remove { grid-row: span 2; }
  .spec-line { grid-template-columns: 1fr 1fr; }
  .spec-line > div:nth-child(2) { border-right: 0; }
  .spec-line > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .keycraft-promo { grid-template-columns: auto minmax(0, 1fr); }
  .keycraft-link { grid-column: 1 / -1; justify-self: stretch; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .header-inner { width: calc(100% - 28px); height: 58px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
  .brand-name { font-size: 16px; }
  .language-picker { padding: 5px 8px; }
  .language-picker select { max-width: 92px; font-size: 10px; }
  .page-shell { width: min(100% - 28px, 620px); margin-top: 12px; }
  .workspace { display: flex; flex-direction: column; gap: 26px; }
  .tool-card { order: -1; width: 100%; padding: 21px 16px; border-radius: 20px; }
  .intro-pane { padding: 4px 2px 0; }
  h1 { font-size: clamp(52px, 17vw, 76px); }
  .lead { margin-top: 15px; font-size: 18px; }
  .intro-copy { font-size: 12px; }
  .hero-visual { width: 100%; height: 216px; margin: 7px auto 0; }
  .privacy-globe { --globe-scale: .92; }
  .trust-list { margin-top: 10px; font-size: 9px; }
  .privacy-section { padding-top: 48px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-card.remove { grid-row: auto; }
  .keycraft-promo { grid-template-columns: 1fr; gap: 14px; padding: 21px 18px; text-align: center; }
  .keycraft-icon { justify-self: center; }
  .keycraft-link { grid-column: auto; width: 100%; }
  footer { margin-top: 32px; }
}

@media (max-width: 430px) {
  .brand-name { display: none; }
  .privacy-globe { --globe-scale: .82; }
  .drop-zone { padding: 14px 12px; gap: 9px; }
  .drop-zone small { font-size: 8px; }
  .file-row { grid-template-columns: 47px minmax(0, 1fr) auto; gap: 8px; }
  .thumb { width: 47px; height: 39px; }
  .status-pill { max-width: 74px; }
  .spec-line { grid-template-columns: 1fr; }
  .spec-line > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec-line > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .spec-line > div:last-child { border-bottom: 0; }
  .footer-links { gap: 14px 20px; }
  .footer-inner { flex-direction: column; gap: 15px; }
  .footer-top { position: static; transform: none; }
  .footer-top:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
