:root {
  --bg: #030607;
  --bg-elevated: #0a0e10;
  --surface: #15191c;
  --surface-hover: #1a1f23;
  --line: #292f34;
  --line-strong: #3c444b;
  --text: #f5f7f7;
  --muted: #939ca2;
  --muted-strong: #bac1c5;
  --cyan: #42ded2;
  --lavender: #afa4ff;
  --coral: #ff826f;
  --page: min(1320px, calc(100vw - 64px));
  --nav-height: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(66, 222, 210, 0.055), transparent 34%),
    var(--bg);
  font-family: Bahnschrift, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  background: #fff;
  color: #050708;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(3, 6, 7, 0.9);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; }
.brand img { width: 142px; height: auto; filter: grayscale(1) brightness(3.4); }
.brand-divider { width: 1px; height: 28px; flex: 0 0 1px; background: #252a2d; }
.primary-nav { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-item { position: relative; }
.nav-link, .nav-trigger {
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #c8cdd0;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"], .current .nav-trigger { color: #fff; }
.nav-trigger > i, .language-button i:last-child { width: 15px; height: 15px; stroke-width: 2.5; transition: transform 180ms ease; }
.nav-trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.current::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lavender));
}

.nav-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: -24px;
  width: 470px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  border: 1px solid #30363a;
  border-radius: 8px;
  background: #1a1e22;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.has-menu.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a {
  min-height: 76px;
  padding: 10px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  transition: background 150ms ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: #242a2e; }
.menu-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e7e8;
  border-radius: 8px;
  color: #fff;
}
.menu-icon i { width: 21px; height: 21px; }
.menu-icon.text-icon { font-family: Georgia, serif; font-size: 17px; }
.nav-menu strong { display: block; color: #f5f6f7; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 600; }
.nav-menu small { display: block; margin-top: 4px; color: #858e94; font-size: 10px; line-height: 1.35; }
.feature-menu, .product-menu, .about-menu { width: 370px; grid-template-columns: 1fr; }
.about-menu { right: -20px; left: auto; }
.resource-menu { left: -80px; }
.lab-menu { left: -170px; }
.lab-menu a:last-child { grid-column: 1 / 2; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.language-button {
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #e6e9ea;
  font-family: Georgia, serif;
  font-size: 13px;
  cursor: pointer;
}
.language-button i:first-child { width: 20px; height: 20px; }
.try-button {
  min-width: 130px;
  height: 42px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #fff;
  color: #070a0b;
  font-family: Georgia, serif;
  font-size: 13px;
  transition: transform 160ms ease, background 160ms ease;
}
.try-button i { width: 15px; height: 15px; }
.try-button:hover { transform: translateY(-2px); background: #dffefb; }
.menu-toggle { display: none; }

main { overflow: clip; }
.hero {
  position: relative;
  width: var(--page);
  min-height: 340px;
  margin: 0 auto;
  padding: 104px 0 68px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: calc((100vw - min(1320px, calc(100vw - 64px))) / -2);
  bottom: 0;
  width: 52vw;
  max-width: 780px;
  background-image:
    linear-gradient(rgba(150, 166, 174, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 166, 174, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to left, #000 0, rgba(0, 0, 0, 0.7) 54%, transparent 100%);
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-kicker::before { content: ""; width: 30px; height: 1px; background: var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 5.1vw, 74px);
  line-height: 1;
  font-weight: 500;
}
h1 span {
  color: transparent;
  background: linear-gradient(90deg, #c8fff0, #c6bfff 88%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-copy p { margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero-mark {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 84px;
  flex: 0 0 120px;
}
.hero-mark span { position: absolute; display: block; background: #fff; opacity: 0.9; }
.hero-mark span:nth-child(1) { right: 0; top: 0; width: 1px; height: 84px; }
.hero-mark span:nth-child(2) { right: 0; top: 0; width: 120px; height: 1px; }
.hero-mark span:nth-child(3) { right: 22px; top: 22px; width: 1px; height: 62px; background: var(--cyan); }
.hero-mark span:nth-child(4) { right: 0; top: 22px; width: 64px; height: 1px; background: var(--lavender); }

.tools-section { width: var(--page); margin: 0 auto; padding: 68px 0 112px; }
.section-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-number { display: block; margin-bottom: 12px; color: #68737a; font-family: Consolas, monospace; font-size: 10px; }
.section-heading h2 { margin-bottom: 0; font-size: 28px; font-weight: 600; }
.section-heading p { margin-bottom: 3px; color: #6e787e; font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-hover); }
.card-media {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #0a0e10;
}
.card-body { flex: 1; padding: 25px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.tool-capsule {
  height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #424a4f;
  border-radius: 999px;
  color: #c5cbce;
  font-family: Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}
.tool-capsule i { width: 13px; height: 13px; color: var(--cyan); }
.capsule-accent i { color: var(--coral); }
.card-body h3 { margin: 21px 0 10px; font-size: 25px; font-weight: 580; }
.card-body p {
  min-height: 46px;
  margin-bottom: 27px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-cta {
  width: 100%;
  height: 46px;
  margin-top: auto;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 5px;
  background: #f6f8f8;
  color: #070a0b;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}
.card-cta i { width: 18px; height: 18px; transition: transform 180ms ease; }
.card-cta:hover { background: var(--cyan); }
.anime-card .card-cta:hover { background: var(--coral); color: #140603; }
.card-cta:hover i { transform: translate(2px, -2px); }

.viewer-visual {
  background-image:
    linear-gradient(rgba(119, 140, 147, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 140, 147, 0.1) 1px, transparent 1px),
    linear-gradient(145deg, #10191a, #07090b 72%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  perspective: 900px;
}
.viewer-visual img {
  position: absolute;
  z-index: 2;
  bottom: -58px;
  left: 50%;
  width: 260px;
  height: 335px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.6));
  transition: transform 450ms cubic-bezier(.2,.8,.2,1);
}
.viewer-card:hover .viewer-visual img { transform: translateX(-50%) rotateY(-8deg) translateY(-5px); }
.visual-toolbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 16px;
  padding: 4px;
  display: flex;
  gap: 3px;
  border: 1px solid #30373b;
  border-radius: 6px;
  background: rgba(16, 20, 22, 0.82);
  backdrop-filter: blur(8px);
}
.visual-toolbar span { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 4px; color: #69747a; }
.visual-toolbar span i { width: 14px; height: 14px; }
.visual-toolbar .toolbar-selected { background: #e8edee; color: #111516; }
.axis { position: absolute; z-index: 4; right: 21px; top: 23px; width: 47px; height: 47px; }
.axis::before, .axis::after { content: ""; position: absolute; left: 23px; bottom: 8px; width: 1px; height: 30px; transform-origin: bottom; }
.axis::before { background: #5de979; transform: rotate(0); }
.axis::after { background: #ff5e68; transform: rotate(68deg); }
.axis b { position: absolute; font-family: Consolas, monospace; font-size: 8px; }
.axis-x { right: 0; bottom: 13px; color: #ff5e68; }
.axis-y { top: 0; left: 21px; color: #5de979; }
.axis-z { bottom: 0; left: 1px; color: #6997ff; }
.orbit { position: absolute; z-index: 1; left: 50%; top: 56%; border: 1px solid rgba(92, 230, 218, 0.25); border-radius: 50%; }
.orbit-one { width: 292px; height: 105px; transform: translate(-50%, -50%) rotate(-8deg); }
.orbit-two { width: 176px; height: 176px; transform: translate(-50%, -50%) rotate(76deg); }
.format-readout { position: absolute; z-index: 4; right: 15px; bottom: 14px; color: #839096; font-family: Consolas, monospace; font-size: 9px; }

.converter-visual { background: linear-gradient(140deg, #111217, #080a0c 78%); }
.converter-grid { position: absolute; inset: 0; background-image: radial-gradient(#454b52 0.7px, transparent 0.7px); background-size: 18px 18px; opacity: 0.4; }
.file-stack {
  position: absolute;
  z-index: 2;
  top: 70px;
  width: 118px;
  height: 144px;
  padding: 22px 16px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #434b51;
  border-radius: 7px;
  background: #1c2226;
  box-shadow: 12px 15px 0 rgba(255, 255, 255, 0.025);
  transition: transform 250ms ease;
}
.file-source { left: 34px; transform: rotate(-4deg); }
.file-output { right: 34px; transform: rotate(4deg); border-color: rgba(66, 222, 210, 0.52); background: #142323; }
.converter-card:hover .file-source { transform: rotate(-6deg) translateX(-3px); }
.converter-card:hover .file-output { transform: rotate(6deg) translateX(3px); }
.file-stack > i { position: absolute; top: 22px; left: 16px; width: 25px; height: 25px; color: #7f8990; }
.file-output > i { color: var(--cyan); }
.file-stack strong { font-size: 25px; font-weight: 600; }
.file-stack small { margin-top: 5px; color: #788187; font-family: Consolas, monospace; font-size: 9px; }
.file-fold { position: absolute; top: -1px; right: -1px; width: 34px; height: 34px; border-bottom: 1px solid #434b51; border-left: 1px solid #434b51; background: #111619; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.conversion-track { position: absolute; z-index: 3; top: 124px; left: 50%; width: 100px; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); color: var(--cyan); }
.conversion-track span { flex: 1; height: 1px; background: rgba(66, 222, 210, 0.34); }
.conversion-track i { width: 22px; height: 22px; padding: 5px; border: 1px solid rgba(66, 222, 210, 0.4); border-radius: 50%; background: #10191a; }
.format-pills { position: absolute; bottom: 22px; left: 50%; display: flex; gap: 7px; transform: translateX(-50%); }
.format-pills span { padding: 5px 8px; border: 1px solid #333a3f; border-radius: 999px; color: #737e84; font-family: Consolas, monospace; font-size: 8px; }

.anime-visual { background: #0d0e13; }
.anime-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 45%, rgba(255, 130, 111, 0.12) 45.2%, transparent 45.5%),
    linear-gradient(150deg, rgba(175, 164, 255, 0.2), transparent 47%);
}
.anime-backdrop::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(204, 201, 255, 0.12); }
.anime-visual img {
  position: absolute;
  z-index: 2;
  top: -60px;
  left: 50%;
  width: 330px;
  max-width: none;
  filter: sepia(0.12) saturate(1.2) hue-rotate(185deg) contrast(1.03);
  transform: translateX(-50%);
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 420ms ease;
}
.anime-card:hover .anime-visual img { transform: translateX(-50%) scale(1.035); filter: sepia(0.08) saturate(1.35) hue-rotate(185deg) contrast(1.04); }
.anime-chip {
  position: absolute;
  z-index: 4;
  min-height: 29px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(12, 13, 17, 0.72);
  color: #d8d5e8;
  font-family: Consolas, monospace;
  font-size: 8px;
  backdrop-filter: blur(7px);
}
.anime-chip i { width: 12px; height: 12px; color: var(--coral); }
.chip-one { left: 16px; bottom: 20px; }
.chip-two { right: 16px; top: 18px; }
.pose-line { position: absolute; z-index: 3; width: 1px; background: rgba(255, 130, 111, 0.5); }
.pose-a { right: 54px; top: 83px; height: 75px; transform: rotate(24deg); }
.pose-b { right: 85px; top: 137px; height: 55px; transform: rotate(-37deg); }

.lab-note {
  width: var(--page);
  min-height: 108px;
  margin: 0 auto 96px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.lab-note-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); }
.lab-note-mark i { width: 20px; color: var(--cyan); }
.lab-note span { display: block; margin-bottom: 4px; color: #dfe3e5; font-size: 13px; font-weight: 650; }
.lab-note p { margin-bottom: 0; color: #737d83; font-size: 12px; }
.lab-note a { display: inline-flex; align-items: center; gap: 9px; color: #d8dddf; font-size: 12px; }
.lab-note a:hover { color: var(--cyan); }
.lab-note a i { width: 16px; }

.site-footer {
  width: var(--page);
  min-height: 120px;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #626c72;
  font-size: 10px;
}
.footer-brand img { width: 115px; filter: grayscale(1) brightness(2.4); opacity: 0.75; }
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 20px; }
.site-footer a:hover { color: #fff; }

.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.8,.2,1); }
.tool-card:nth-child(2).visible { transition-delay: 80ms; }
.tool-card:nth-child(3).visible { transition-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  :root { --page: min(100% - 40px, 1080px); }
  .nav-shell { gap: 18px; }
  .primary-nav { gap: 16px; }
  .nav-link, .nav-trigger { font-size: 13px; }
  .language-button span, .language-button i:last-child { display: none; }
  .try-button { min-width: 112px; }
  .card-media { height: 260px; }
  .file-stack { width: 100px; }
  .file-source { left: 23px; }
  .file-output { right: 23px; }
}

@media (max-width: 960px) {
  :root { --nav-height: 68px; }
  .brand img { width: 126px; }
  .brand-divider, .nav-actions .language-button { display: none; }
  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #101416;
    cursor: pointer;
  }
  .menu-toggle i { width: 19px; }
  .nav-actions { margin-left: 0; }
  .try-button { height: 40px; }
  .primary-nav {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--nav-height));
    padding: 18px 20px 28px;
    display: none;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: #080b0d;
  }
  .primary-nav.mobile-open { display: block; }
  .nav-item, .nav-link { width: 100%; }
  .nav-link, .nav-trigger { width: 100%; min-height: 48px; justify-content: space-between; border-bottom: 1px solid #1d2326; }
  .current::after { display: none; }
  .nav-menu, .feature-menu, .product-menu, .resource-menu, .lab-menu, .about-menu {
    position: static;
    width: 100%;
    margin: 7px 0 12px;
    padding: 9px;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
  .has-menu.open .nav-menu { display: grid; }
  .lab-menu a:last-child { grid-column: auto; }
  .nav-menu a { min-height: 62px; }
  .hero { min-height: 300px; padding: 82px 0 54px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card:last-child { grid-column: 1 / -1; }
  .anime-card .card-media { height: 340px; }
  .anime-visual img { top: -150px; width: 470px; }
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 28px); }
  .nav-shell { width: calc(100% - 28px); }
  .nav-actions { display: none; }
  .brand { margin-right: auto; }
  .hero { min-height: 315px; padding: 76px 0 46px; align-items: flex-end; }
  .hero::before { right: -14px; width: 76vw; }
  .hero-mark { display: none; }
  h1 { font-size: 44px; line-height: 1.04; }
  .hero-copy p { font-size: 14px; line-height: 1.6; }
  .tools-section { padding: 48px 0 76px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { display: none; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card:last-child { grid-column: auto; }
  .card-media, .anime-card .card-media { height: 270px; }
  .anime-visual img { top: -78px; width: 350px; }
  .card-body { padding: 22px 20px 20px; }
  .card-body h3 { font-size: 23px; }
  .lab-note { margin-bottom: 60px; padding: 22px 0; grid-template-columns: 46px 1fr; }
  .lab-note a { grid-column: 1 / -1; margin-top: 5px; }
  .site-footer { min-height: 160px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; }
}

@media (max-width: 380px) {
  h1 { font-size: 39px; }
  .card-media { height: 250px; }
  .file-stack { width: 96px; height: 136px; }
  .file-source { left: 18px; }
  .file-output { right: 18px; }
}
