:root {
  color-scheme: light;
  --bg: #fff8f6;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #24191b;
  --muted: #78676b;
  --muted-2: #a39397;
  --line: rgba(60, 32, 38, 0.12);
  --brand: #ff385c;
  --brand-dark: #c4163b;
  --brand-soft: #ffe0e7;
  --gold: #ffb347;
  --mint: #1fbf92;
  --warning: #ffb020;
  --danger: #ff385c;
  --violet: #7c5cff;
  --blue: #2878ff;
  --shadow-sm: 0 8px 30px rgba(36, 25, 27, 0.08);
  --shadow-md: 0 20px 80px rgba(36, 25, 27, 0.13);
  --shadow-lg: 0 34px 120px rgba(36, 25, 27, 0.18);
  --radius-xs: 14px;
  --radius-sm: 20px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #151012;
    --surface: rgba(30, 24, 27, 0.72);
    --surface-strong: rgba(35, 28, 31, 0.92);
    --text: #fff4f5;
    --muted: #c7b8bc;
    --muted-2: #8b7a7f;
    --line: rgba(255, 239, 242, 0.12);
    --brand-soft: rgba(255, 56, 92, 0.18);
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 20px 80px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 34px 120px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 56, 92, 0.20), transparent 26rem),
    radial-gradient(circle at 82% 8%, rgba(124, 92, 255, 0.14), transparent 30rem),
    linear-gradient(135deg, var(--bg), #fff 48%, #fff0f4);
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 12% 10%, rgba(255, 56, 92, 0.18), transparent 26rem),
      radial-gradient(circle at 82% 8%, rgba(124, 92, 255, 0.18), transparent 30rem),
      linear-gradient(135deg, #151012, #21181c 48%, #120f12);
  }
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

::selection {
  color: white;
  background: var(--brand);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  translate: 0 -140%;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transition: translate 0.2s ease;
}

.skip-link:focus {
  translate: 0 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.ambient {
  pointer-events: none;
  position: fixed;
  z-index: -2;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.45;
  animation: floaty 14s ease-in-out infinite alternate;
}

.ambient-one {
  left: -14rem;
  top: 18rem;
  background: rgba(255, 56, 92, 0.24);
}

.ambient-two {
  right: -18rem;
  bottom: 12rem;
  background: rgba(40, 120, 255, 0.16);
  animation-delay: -4s;
}

@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4rem, -2rem, 0) scale(1.08); }
}

[data-glass] {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-soft);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  letter-spacing: -0.03em;
}

.brand small {
  max-width: 38vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--brand), #ff6b88);
  box-shadow: 0 12px 32px rgba(255, 56, 92, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(0) scale(0.99);
}

.primary-button.small,
.ghost-button.small,
.secondary-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.primary-button.danger {
  background: linear-gradient(135deg, #1c1114, var(--brand));
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.ghost-button {
  color: var(--text);
  border: 1px solid transparent;
  background: transparent;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(31, 191, 146, 0.12);
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.16);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: 70px 0 42px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 830px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
}

.hero-lede {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.morph-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 420px;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 56px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 56, 92, 0.18), transparent 17rem),
    radial-gradient(circle at 80% 78%, rgba(124, 92, 255, 0.16), transparent 15rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(26px) saturate(1.22);
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
}

.file-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  width: min(100%, 176px);
  aspect-ratio: 0.75;
  margin: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 30px;
  color: white;
  background: linear-gradient(145deg, var(--brand), #ff8aa0);
  box-shadow: 0 26px 72px rgba(255, 56, 92, 0.32);
  transform-style: preserve-3d;
  animation: fileHover 4s ease-in-out infinite;
}

.file-card-target {
  background: linear-gradient(145deg, var(--violet), #19c5ff);
  box-shadow: 0 26px 72px rgba(124, 92, 255, 0.28);
  animation-delay: -1.1s;
}

@keyframes fileHover {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateX(4deg) rotateY(-5deg); }
}

.file-fold {
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 0 30px 0 18px;
  background: rgba(255, 255, 255, 0.34);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.file-glyph {
  font-size: 3.2rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.file-ext {
  width: max-content;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.morph-lane {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 10px rgba(255, 56, 92, 0.12);
}

.pulse-line {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--blue));
  overflow: hidden;
}

.pulse-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), transparent);
  translate: -100% 0;
  animation: lanePulse 1.7s ease-in-out infinite;
}

@keyframes lanePulse {
  to { translate: 100% 0; }
}

.orbit-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  animation: floatCard 5s ease-in-out infinite;
}

.orbit-card span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.orbit-card strong {
  letter-spacing: -0.03em;
}

.orbit-card-one { left: -18px; top: 64px; }
.orbit-card-two { right: -10px; top: 26px; animation-delay: -1.7s; }
.orbit-card-three { right: 60px; bottom: 22px; animation-delay: -3.1s; }

@keyframes floatCard {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 88px;
}

.trust-strip article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.workspace,
.capability-section {
  padding: 44px 0 78px;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.section-heading.narrow {
  max-width: 680px;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
}

.panel-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h3,
.capability-card h3,
.conversion-card h4 {
  margin: 0;
  letter-spacing: -0.05em;
}

.panel h3 {
  font-size: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: rgba(255,255,255,.42);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.privacy-pill.local {
  color: #0b7d5e;
  border-color: rgba(31, 191, 146, 0.24);
  background: rgba(31, 191, 146, 0.12);
}

.privacy-pill.online {
  color: #916100;
  border-color: rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.14);
}

.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 230px;
  padding: 24px;
  border: 1.5px dashed rgba(255, 56, 92, 0.38);
  border-radius: 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 56, 92, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.36);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragging {
  transform: translateY(-3px);
  border-color: var(--brand);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 56, 92, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.54);
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 26px;
  color: var(--brand);
  background: var(--brand-soft);
}

.drop-icon svg {
  width: 50px;
  height: 50px;
}

.drop-zone strong {
  display: block;
  font-size: 1.24rem;
  letter-spacing: -0.04em;
}

.drop-zone small {
  max-width: 330px;
  color: var(--muted);
  line-height: 1.4;
}

.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.44);
}

.meta-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--violet));
  font-weight: 950;
}

.meta-card strong,
.meta-card small {
  display: block;
}

.meta-card small {
  color: var(--muted);
  line-height: 1.35;
}

.textarea-label {
  display: inline-block;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
  outline: none;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  border-color: rgba(255, 56, 92, 0.55);
  box-shadow: 0 0 0 5px rgba(255, 56, 92, 0.12);
}

.input-actions,
.output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.format-button {
  position: relative;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  color: var(--text);
  background: rgba(255,255,255,.48);
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.format-button::before {
  content: "";
  position: absolute;
  inset: auto -20% -42% -20%;
  height: 72px;
  border-radius: 999px 999px 0 0;
  background: var(--format-color, var(--brand));
  opacity: 0.12;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.format-button:hover,
.format-button[aria-checked="true"] {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--format-color, var(--brand)) 55%, transparent);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.format-button[aria-checked="true"]::before {
  transform: translateY(-12px);
  opacity: 0.2;
}

.format-button strong,
.format-button small,
.format-button span {
  position: relative;
  z-index: 1;
  display: block;
}

.format-button span {
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  color: white;
  background: var(--format-color, var(--brand));
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.format-button strong {
  margin-bottom: 4px;
  letter-spacing: -0.04em;
}

.format-button small {
  color: var(--muted);
  line-height: 1.3;
}

.conversion-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 150px;
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 56, 92, 0.12), transparent 12rem),
    var(--surface-strong);
  overflow: hidden;
}

.conversion-card h4 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.conversion-card p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.conversion-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--format-color, var(--brand)), var(--violet));
  box-shadow: 0 20px 42px color-mix(in srgb, var(--format-color, var(--brand)) 26%, transparent);
}

.conversion-orbit::after {
  content: attr(data-ext);
  color: white;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.conversion-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.76);
  transform-origin: 0 0;
  animation: orbit 2.4s linear infinite;
}

.conversion-orbit span:nth-child(1) { translate: 0 -48px; }
.conversion-orbit span:nth-child(2) { translate: 42px 24px; animation-delay: -.8s; }
.conversion-orbit span:nth-child(3) { translate: -42px 24px; animation-delay: -1.6s; }

@keyframes orbit {
  to { rotate: 360deg; }
}

.output-shell {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #171214;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: #fff3f4;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(90deg, rgba(255,56,92,.18), rgba(124,92,255,.14));
}

.output-header span {
  color: rgba(255,255,255,.62);
  font-family: var(--mono);
  font-size: 0.8rem;
}

pre {
  min-height: 278px;
  max-height: 440px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #f8eef1;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.capability-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 30px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--violet));
  font-weight: 950;
}

.capability-card h3 {
  font-size: 1.38rem;
}

.capability-card p {
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: var(--surface);
}

.site-footer strong {
  color: var(--text);
}

.modal {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 34px;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(20, 13, 15, 0.54);
  backdrop-filter: blur(8px);
}

.modal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 22px;
  background: rgba(255,176,32,.16);
  font-size: 1.8rem;
}

.modal h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.98;
  font-size: clamp(2rem, 5vw, 3rem);
}

.modal p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.25s ease both;
}

.toast strong,
.toast span {
  display: block;
}

.toast span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

[data-format="txt"] { --format-color: #ff385c; }
[data-format="md"] { --format-color: #7c5cff; }
[data-format="html"] { --format-color: #ff8a00; }
[data-format="doc"] { --format-color: #2f66ff; }
[data-format="docx"] { --format-color: #1457d9; }
[data-format="base64"] { --format-color: #06a77d; }
[data-format="binary"] { --format-color: #111827; }
[data-format="hex"] { --format-color: #7a2cff; }
[data-format="json"] { --format-color: #e11d48; }
[data-format="dataurl"] { --format-color: #008cba; }

.morph-stage[data-format="base64"] .file-card-target,
.conversion-card[data-format="base64"] .conversion-orbit { animation-name: b64Pulse; }

.morph-stage[data-format="binary"] .file-card-target { animation-name: binaryShake; }
.morph-stage[data-format="hex"] .file-card-target { animation-name: hexTilt; }
.morph-stage[data-format="html"] .file-card-target { animation-name: htmlPop; }

@keyframes b64Pulse {
  0%,100% { filter: saturate(1); transform: translateY(0) scale(1); }
  50% { filter: saturate(1.5); transform: translateY(-10px) scale(1.03); }
}

@keyframes binaryShake {
  0%,100% { transform: translateY(0) rotateZ(0); }
  25% { transform: translateY(-6px) rotateZ(-1deg); }
  75% { transform: translateY(-6px) rotateZ(1deg); }
}

@keyframes hexTilt {
  0%,100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(12deg); }
}

@keyframes htmlPop {
  0%,100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-10px) rotateX(9deg); }
}

@media (max-width: 1040px) {
  .hero,
  .app-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 58px;
  }
  .hero-showcase {
    min-height: 460px;
  }
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    border-radius: 28px;
  }
  .header-actions {
    gap: 6px;
  }
  .ghost-button,
  .primary-button.small {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
  .brand small {
    display: none;
  }
  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }
  .morph-stage {
    grid-template-columns: 1fr;
    min-height: 560px;
  }
  .morph-lane {
    width: 120px;
    margin: auto;
    rotate: 90deg;
  }
  .trust-strip,
  .format-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }
  .panel-topline,
  .site-footer {
    flex-direction: column;
  }
  .output-actions .primary-button,
  .output-actions .secondary-button,
  .input-actions .secondary-button {
    width: 100%;
  }
}

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