:root {
  color-scheme: dark;
  --bg: #080b14;
  --bg-soft: #0e1423;
  --panel: rgba(17, 24, 40, 0.78);
  --panel-strong: #131d31;
  --line: rgba(162, 185, 232, 0.15);
  --line-strong: rgba(126, 196, 255, 0.33);
  --text: #eef4ff;
  --muted: #92a0ba;
  --faint: #63708b;
  --cyan: #62dcff;
  --blue: #78a7ff;
  --purple: #a883ff;
  --green: #75e7bd;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 12%, rgba(82, 105, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 10% 25%, rgba(33, 205, 234, 0.07), transparent 25rem),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(162, 185, 232, 0.1);
}

.brand, .home-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(98, 220, 255, 0.52);
  border-radius: 12px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 0 22px rgba(98, 220, 255, .15);
}
.brand strong, .home-link span { display: block; font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.brand small, .home-link small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.home-link { gap: 8px; text-align: right; transition: color .2s ease; }
.home-link:hover { color: var(--cyan); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 40px;
  min-height: 590px;
  padding-top: 54px;
  padding-bottom: 68px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.08;
}
h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan), var(--blue) 48%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lede { max-width: 510px; margin-bottom: 32px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .36; }
.button-primary { gap: 11px; background: linear-gradient(110deg, #399fd1, #7060d7); box-shadow: 0 10px 28px rgba(62, 145, 221, .22); }
.button-primary:hover { box-shadow: 0 14px 34px rgba(62, 145, 221, .34); }
.button-secondary { border-color: var(--line-strong); background: rgba(69, 117, 178, .11); }
.button-secondary:hover:not(:disabled), .button-quiet:hover { border-color: rgba(98, 220, 255, .5); background: rgba(98, 220, 255, .08); }
.button-quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.text-link { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.text-link:hover { color: var(--cyan); }

.hero-orbit { position: relative; min-height: 380px; isolation: isolate; }
.hero-orbit::before { position: absolute; inset: 20% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(92, 112, 255, .22), transparent 65%); content: ""; filter: blur(18px); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(111, 188, 255, .24); border-radius: 50%; transform: translate(-50%, -50%) rotate(-20deg); }
.orbit-one { width: 260px; height: 190px; }
.orbit-two { width: 350px; height: 260px; transform: translate(-50%, -50%) rotate(52deg); border-color: rgba(171, 133, 255, .25); }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; width: 116px; height: 116px; place-items: center; border: 1px solid rgba(102, 221, 255, .54); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(102, 221, 255, .22), rgba(31, 36, 77, .9)); box-shadow: 0 0 44px rgba(74, 166, 255, .28), inset 0 0 24px rgba(107, 93, 214, .26); transform: translate(-50%, -50%); }
.orbit-core span { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.orbit-core small { margin-top: -20px; color: var(--cyan); font-size: 7px; letter-spacing: .18em; line-height: 1.5; text-align: center; }
.orbit-dot { position: absolute; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 17px 4px rgba(98, 220, 255, .45); }
.dot-one { top: 17%; left: 24%; }
.dot-two { right: 12%; bottom: 23%; background: var(--purple); box-shadow: 0 0 17px 4px rgba(168, 131, 255, .4); }
.dot-three { top: 23%; right: 23%; width: 5px; height: 5px; background: var(--green); }

.section { padding-top: 45px; padding-bottom: 95px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2, .tool-intro h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.section-heading > p { max-width: 290px; margin-bottom: 5px; color: var(--muted); font-size: 13px; text-align: right; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { position: relative; min-height: 260px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(23, 35, 59, .83), rgba(12, 17, 31, .92)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tool-card::after { position: absolute; right: -30px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(99, 204, 255, .08); content: ""; filter: blur(15px); }
.tool-card:hover { border-color: rgba(115, 208, 255, .42); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); transform: translateY(-4px); }
.tool-card-muted { opacity: .72; }
.tool-card-muted:hover { opacity: .92; }
.card-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 24px; border: 1px solid rgba(120, 167, 255, .27); border-radius: 12px; color: var(--blue); font-size: 21px; }
.icon-order { color: var(--cyan); border-color: rgba(98, 220, 255, .38); }
.card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(117, 231, 189, .8); }
.tool-card h3 { margin-bottom: 2px; font-size: 17px; letter-spacing: -.02em; }
.english-title { margin-bottom: 13px; color: var(--cyan); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.tool-card > p:not(.english-title) { max-width: 250px; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-arrow { color: var(--cyan); font-size: 12px; font-weight: 700; }
.coming-soon { position: absolute; right: 24px; bottom: 25px; color: var(--faint); font-size: 9px; letter-spacing: .16em; }
.privacy-strip, .privacy-note { display: flex; align-items: center; gap: 15px; border: 1px solid rgba(117, 231, 189, .15); border-radius: 16px; background: rgba(117, 231, 189, .045); }
.privacy-strip { padding: 17px 20px; }
.privacy-icon { color: var(--green); font-size: 20px; }
.privacy-strip strong, .privacy-note strong { display: block; font-size: 12px; }
.privacy-strip p, .privacy-note p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.privacy-strip p span, .privacy-note p span { margin-left: 10px; color: var(--faint); }
.site-footer { display: flex; justify-content: space-between; padding-top: 25px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; letter-spacing: .04em; }
.site-footer a:hover { color: var(--cyan); }

.parser-page { padding-top: 34px; padding-bottom: 55px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; margin-bottom: 43px; color: var(--faint); font-size: 11px; }
.breadcrumb a { color: var(--cyan); }
.tool-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.tool-intro h1 { font-size: clamp(30px, 5vw, 48px); }
.tool-lede { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.privacy-badge { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 12px 14px; border: 1px solid rgba(117, 231, 189, .2); border-radius: 12px; color: var(--green); font-size: 11px; line-height: 1.4; }
.privacy-badge small { color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.parser-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 15px; align-items: start; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 20px 60px rgba(0, 0, 0, .13); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading .eyebrow { margin-bottom: 8px; }
.panel-heading h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.03em; }
textarea { display: block; width: 100%; min-height: 485px; resize: vertical; padding: 16px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: rgba(3, 7, 15, .6); color: var(--text); font-size: 13px; line-height: 1.8; transition: border-color .2s ease, box-shadow .2s ease; }
textarea::placeholder { color: var(--faint); }
textarea:focus { border-color: rgba(98, 220, 255, .58); box-shadow: 0 0 0 3px rgba(98, 220, 255, .09); }
.input-actions, .result-actions { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.helper-text { margin: 12px 0 0; color: var(--faint); font-size: 10px; }
.result-state { padding-top: 2px; color: var(--green); font-size: 10px; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 480px; align-content: start; }
.result-field { position: relative; min-width: 0; padding: 12px 45px 12px 13px; border: 1px solid rgba(162, 185, 232, .11); border-radius: 12px; background: rgba(7, 12, 23, .42); }
.result-field-items { grid-column: 1 / -1; }
.field-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.field-title span { color: var(--muted); font-size: 11px; }
.field-title small { color: var(--faint); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.field-value { overflow-wrap: anywhere; color: var(--text); font-size: 13px; line-height: 1.5; }
.is-empty { color: var(--faint) !important; }
.field-copy { position: absolute; top: 11px; right: 10px; padding: 2px 4px; border: 0; background: transparent; color: var(--cyan); font-size: 10px; }
.field-copy:hover { color: var(--text); }
.item-list { display: grid; gap: 6px; }
.item-row { display: flex; align-items: baseline; gap: 8px; overflow-wrap: anywhere; color: var(--text); font-size: 12px; }
.item-color { min-width: 35px; color: var(--cyan); }
.item-arrow { color: var(--faint); }
.copy-feedback { min-height: 17px; margin: 8px 0 0; color: var(--green); font-size: 10px; }
.privacy-note { margin-top: 16px; padding: 15px 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 76px; }
  .hero-orbit { min-height: 300px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .parser-layout { grid-template-columns: 1fr; }
  textarea { min-height: 320px; }
  .results { min-height: 0; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 30px, 1160px); }
  .site-header { min-height: 74px; }
  .hero { padding-top: 48px; padding-bottom: 44px; }
  h1 { font-size: 42px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-orbit { min-height: 250px; transform: scale(.82); transform-origin: center; }
  .section { padding-bottom: 60px; }
  .section-heading, .tool-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading > p { margin-bottom: 0; text-align: left; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 220px; }
  .privacy-strip, .privacy-note { align-items: flex-start; }
  .privacy-strip p span, .privacy-note p span { display: block; margin: 4px 0 0; }
  .site-footer { flex-direction: column; gap: 7px; }
  .parser-page { padding-top: 24px; }
  .breadcrumb { margin-bottom: 30px; }
  .panel { padding: 16px; border-radius: 17px; }
  .panel-heading { align-items: flex-start; }
  .results { grid-template-columns: 1fr; }
  .result-field-items { grid-column: auto; }
  .result-actions { flex-wrap: wrap; }
}

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