:root {
  --ink: #05070d;
  --ink-soft: #080d17;
  --surface: rgba(12, 18, 30, 0.82);
  --surface-solid: #0d1422;
  --surface-raised: #121b2c;
  --gold-deep: #8f6118;
  --gold: #d4a84f;
  --gold-bright: #f6dc91;
  --gold-pale: #fff1bd;
  --cyan: #52d7d2;
  --green: #35d69f;
  --red: #ff6379;
  --amber: #f6ba55;
  --text: #f4f6fb;
  --text-soft: #c4cada;
  --muted: #7f8ba3;
  --line: rgba(210, 222, 247, 0.11);
  --line-gold: rgba(225, 184, 95, 0.28);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.44);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -5%, rgba(212, 168, 79, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(82, 215, 210, 0.07), transparent 31rem),
    linear-gradient(180deg, #05070d 0%, #080c15 48%, #05070d 100%);
  font-family:
    Manrope,
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

::selection {
  color: #171006;
  background: var(--gold-bright);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' 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='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-one {
  width: 32rem;
  height: 32rem;
  top: -17rem;
  left: -10rem;
  background: rgba(205, 157, 61, 0.17);
}

.ambient-two {
  width: 38rem;
  height: 38rem;
  top: 34%;
  right: -22rem;
  background: rgba(49, 176, 178, 0.11);
}

.ambient-three {
  width: 28rem;
  height: 28rem;
  bottom: -15rem;
  left: 30%;
  background: rgba(152, 107, 33, 0.1);
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.76);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(230, 186, 94, 0.15),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 9px 25px rgba(0, 0, 0, 0.3);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(246, 220, 145, 0.09);
  border-radius: 10px;
}

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

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy em {
  color: var(--gold-bright);
  font-style: normal;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.privacy-chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.privacy-dot,
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.privacy-dot {
  background: var(--cyan);
  box-shadow:
    0 0 0 4px rgba(82, 215, 210, 0.09),
    0 0 14px rgba(82, 215, 210, 0.55);
}

.status.loading {
  color: #f3cf7b;
  border-color: rgba(246, 186, 85, 0.22);
}

.status.loading .status-dot {
  background: var(--amber);
  animation: pulse 1.25s ease-in-out infinite;
}

.status.ready {
  color: #8ce8c7;
  border-color: rgba(53, 214, 159, 0.23);
  background: rgba(53, 214, 159, 0.055);
}

.status.ready .status-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(53, 214, 159, 0.65);
}

.status.error {
  color: #ff9aaa;
  border-color: rgba(255, 99, 121, 0.24);
  background: rgba(255, 99, 121, 0.055);
}

.status.error .status-dot {
  background: var(--red);
}

.page-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 1.5rem 0 4.5rem;
}

.hero-copy-block {
  animation: riseIn 0.8s var(--ease) both;
}

.eyebrow,
.section-kicker,
.section-label {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  max-width: 850px;
  margin: 1rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 6.7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.gold-text {
  color: transparent;
  background: linear-gradient(
    105deg,
    #b27b20 0%,
    #f8dc91 42%,
    #fff2bd 55%,
    #bc8124 100%
  );
  background-size: 180% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldFlow 6s linear infinite;
}

.hero-copy {
  max-width: 750px;
  margin: 1.55rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.3rem;
}

.hero-trust-row div {
  display: grid;
  gap: 0.12rem;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.hero-trust-row div:last-child {
  border-right: 0;
}

.hero-trust-row strong {
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.hero-trust-row span {
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-console {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(22, 31, 47, 0.88), rgba(7, 11, 19, 0.94)),
    radial-gradient(circle at top, rgba(212, 168, 79, 0.18), transparent 55%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: riseIn 0.8s 0.12s var(--ease) both;
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 255, 255, 0.055) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: consoleSheen 7s 1.2s ease-in-out infinite;
}

.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #91e8c9;
  letter-spacing: 0;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(53, 214, 159, 0.75);
}

.risk-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 1rem auto;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224, 185, 100, 0.18);
}

.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  left: -4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 16px rgba(246, 220, 145, 0.75);
}

.orbit-one {
  inset: 9px;
  animation: orbitSpin 9s linear infinite;
}

.orbit-two {
  inset: 30px;
  border-style: dashed;
  animation: orbitSpin 13s linear infinite reverse;
}

.core-shield {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(236, 196, 111, 0.32);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(212, 168, 79, 0.16),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 50px rgba(181, 125, 34, 0.12);
}

.core-shield svg {
  width: 48px;
  height: 48px;
}

.console-details {
  display: grid;
  gap: 0.55rem;
}

.console-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.console-details span {
  color: var(--muted);
  font-size: 0.68rem;
}

.console-details strong {
  max-width: 62%;
  color: var(--text-soft);
  font-size: 0.69rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-footnote {
  margin: 0.8rem 0 0;
  color: #69758d;
  font-size: 0.64rem;
  text-align: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-bottom: 6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.metric-strip article {
  position: relative;
  min-height: 130px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.025),
    transparent
  );
  transition: background 0.3s ease;
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip article:hover {
  background: rgba(212, 168, 79, 0.045);
}

.metric-index {
  color: rgba(246, 220, 145, 0.4);
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
}

.metric-strip article div {
  display: grid;
}

.metric-strip small {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.metric-strip strong {
  margin: 0.25rem 0 0.05rem;
  color: var(--text);
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.metric-strip article div span {
  color: var(--muted);
  font-size: 0.67rem;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.section-intro h2 {
  margin: 0.35rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.section-intro > p {
  max-width: 430px;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(330px, 0.78fr);
  gap: 1.2rem;
  align-items: start;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    rgba(18, 27, 44, 0.86),
    rgba(7, 11, 19, 0.88)
  );
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.panel-accent {
  position: absolute;
  inset: 0 14% auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 220, 145, 0.48),
    transparent
  );
}

.input-panel,
.result-panel,
.batch-panel {
  padding: clamp(1.25rem, 2.7vw, 2rem);
}

.panel-heading,
.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-icon,
.secure-mark {
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  background: rgba(212, 168, 79, 0.07);
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

.secure-mark {
  width: 35px;
  height: 35px;
  border-radius: 11px;
}

.secure-mark svg {
  width: 17px;
  height: 17px;
}

h3 {
  margin: 0.18rem 0 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.button {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.67rem 0.95rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.button.primary {
  color: #1b1408;
  background: linear-gradient(
    110deg,
    #ad7827,
    #f1cd76 42%,
    #ffe9a8 58%,
    #b87920
  );
  box-shadow:
    0 12px 25px rgba(174, 119, 36, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.46),
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.button.primary:hover:not(:disabled)::before {
  transform: translateX(120%);
}

.button.primary > * {
  position: relative;
  z-index: 1;
}

.button.secondary {
  color: #cfd6e6;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.button.secondary:hover:not(:disabled) {
  border-color: rgba(82, 215, 210, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button.warning {
  color: #ffb4bf;
  border-color: rgba(255, 99, 121, 0.2);
  background: rgba(255, 99, 121, 0.055);
}

.button.warning:hover:not(:disabled) {
  border-color: rgba(255, 99, 121, 0.4);
}

.button.ghost {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.button.wide {
  width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  border-radius: 14px;
  font-size: 0.82rem;
}

.button.wide svg {
  width: 19px;
  height: 19px;
}

.button-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.safe-dot {
  background: var(--green);
  box-shadow: 0 0 10px rgba(53, 214, 159, 0.6);
}

.danger-dot {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 99, 121, 0.6);
}

.sample-zone {
  margin: 1.35rem 0 1rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.sample-zone > div:first-child {
  display: grid;
  gap: 0.15rem;
}

.sample-zone strong {
  font-size: 0.78rem;
}

.sample-zone > div:first-child span {
  color: var(--muted);
  font-size: 0.67rem;
}

.sample-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.information-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(82, 215, 210, 0.12);
  border-radius: 12px;
  color: #91a5bf;
  background: rgba(82, 215, 210, 0.025);
}

.information-banner svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--cyan);
}

.information-banner p {
  margin: 0;
  font-size: 0.69rem;
}

.information-banner strong {
  color: #bdcbdc;
}

.feature-grid {
  margin-top: 1rem;
  padding: 0.2rem 0.3rem 0.2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.72rem;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-color: rgba(212, 168, 79, 0.35) transparent;
  scrollbar-width: thin;
}

.feature-field {
  display: grid;
  gap: 0.35rem;
}

.feature-field label {
  padding-left: 0.15rem;
  color: #9aa6bc;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-field input {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(2, 5, 10, 0.38);
  font-size: 0.76rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.feature-field input:hover {
  border-color: rgba(210, 222, 247, 0.2);
}

.feature-field input:focus {
  border-color: rgba(230, 190, 104, 0.62);
  background: rgba(6, 9, 15, 0.72);
  box-shadow:
    0 0 0 3px rgba(212, 168, 79, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.result-panel {
  position: sticky;
  top: 96px;
}

.result-placeholder,
.result-content {
  padding: 2.2rem 0 1.25rem;
  text-align: center;
}

.result-placeholder h4 {
  margin: 0.8rem 0 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.result-placeholder p {
  max-width: 290px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.shield {
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px 28px 36px 36px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.placeholder-shield {
  color: #59657a;
}

.placeholder-shield svg {
  width: 42px;
  height: 42px;
}

.result-content.safe .shield {
  color: #7ce5c0;
  border-color: rgba(53, 214, 159, 0.32);
  background: radial-gradient(
    circle,
    rgba(53, 214, 159, 0.16),
    rgba(53, 214, 159, 0.035)
  );
  box-shadow: 0 0 38px rgba(53, 214, 159, 0.09);
}

.result-content.danger .shield {
  color: #ff91a1;
  border-color: rgba(255, 99, 121, 0.34);
  background: radial-gradient(
    circle,
    rgba(255, 99, 121, 0.17),
    rgba(255, 99, 121, 0.035)
  );
  box-shadow: 0 0 38px rgba(255, 99, 121, 0.1);
}

.prediction-label {
  margin: 0.25rem 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.score-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.14);
}

.probability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.probability-row strong {
  color: var(--text);
  font-size: 1.18rem;
}

.meter {
  height: 7px;
  margin: 0.75rem 0 0.4rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.meter div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  box-shadow: 0 0 15px currentColor;
  transition: width 0.8s var(--ease);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  color: #657187;
  font-size: 0.56rem;
}

.prediction-details {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  text-align: left;
}

.prediction-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.prediction-details div:last-child {
  border-bottom: 0;
}

.prediction-details dt {
  color: var(--muted);
  font-size: 0.66rem;
}

.prediction-details dd {
  max-width: 63%;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.result-message {
  margin: 0.85rem 0 0;
  padding: 0.75rem;
  border-radius: 11px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.69rem;
}

.cost-note {
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.cost-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  color: var(--gold-bright);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cost-heading i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

.cost-note p {
  margin: 0.55rem 0;
  display: grid;
  gap: 0.08rem;
}

.cost-note strong {
  color: #bac3d3;
  font-size: 0.68rem;
}

.cost-note p span {
  color: var(--muted);
  font-size: 0.63rem;
}

.batch-panel {
  margin-top: 1.2rem;
}

.batch-heading {
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  font-size: 0.69rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.text-link:hover {
  color: var(--gold-pale);
}

.batch-upload-card {
  margin-top: 1.25rem;
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border: 1px dashed rgba(221, 185, 106, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(
    110deg,
    rgba(212, 168, 79, 0.04),
    rgba(255, 255, 255, 0.015)
  );
}

.upload-copy {
  display: grid;
  gap: 0.2rem;
}

.upload-copy strong {
  font-size: 0.8rem;
}

.upload-copy span {
  color: var(--muted);
  font-size: 0.66rem;
}

.upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.file-picker {
  max-width: 230px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  color: var(--gold-bright);
  background: rgba(212, 168, 79, 0.045);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.file-picker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-message {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: #9fabc0;
  font-size: 0.72rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

th,
td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
}

.badge.safe {
  color: #83e4c2;
  background: rgba(53, 214, 159, 0.08);
  border: 1px solid rgba(53, 214, 159, 0.18);
}

.badge.danger {
  color: #ff9eac;
  background: rgba(255, 99, 121, 0.08);
  border: 1px solid rgba(255, 99, 121, 0.18);
}

.methodology-intro {
  margin-top: 6rem;
}

.explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.info-card {
  min-height: 305px;
  padding: 1.5rem;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 184, 95, 0.25);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.32);
}

.card-number {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: rgba(246, 220, 145, 0.25);
  font-family: "Playfair Display", serif;
  font-size: 1rem;
}

.info-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  color: var(--gold-bright);
  background: linear-gradient(
    145deg,
    rgba(212, 168, 79, 0.1),
    rgba(255, 255, 255, 0.018)
  );
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.accuracy-icon {
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
}

.info-card h3 {
  margin: 0.55rem 0 0.7rem;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.info-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.disclaimer {
  margin-top: 1.2rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid rgba(246, 186, 85, 0.16);
  border-radius: var(--radius-md);
  background: rgba(246, 186, 85, 0.035);
}

.disclaimer-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber);
  border: 1px solid rgba(246, 186, 85, 0.18);
  border-radius: 10px;
  background: rgba(246, 186, 85, 0.05);
}

.disclaimer-icon svg {
  width: 18px;
  height: 18px;
}

.disclaimer strong {
  color: #e5c77f;
  font-size: 0.74rem;
}

.disclaimer p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.premium-footer {
  position: relative;
  overflow: hidden;
  padding: 3rem max(1rem, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.97), #05070d);
  text-align: center;
}

.footer-glow {
  position: absolute;
  width: 34rem;
  height: 10rem;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(212, 168, 79, 0.18);
  filter: blur(65px);
  pointer-events: none;
}

.footer-branding {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.kgroup-gold {
  color: transparent;
  background: linear-gradient(
    90deg,
    #9c6a1e,
    #f3d486,
    #fff0b5,
    #b67a20
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow: 0 0 22px rgba(230, 183, 86, 0.14);
  animation: goldFlow 6s linear infinite;
}

.footer-divider {
  color: var(--gold);
}

.developer-badge {
  padding: 0.46rem 0.95rem;
  border: 1px solid rgba(255, 230, 160, 0.56);
  border-radius: 999px;
  color: #1c1408;
  background: linear-gradient(
    120deg,
    #9f6c20,
    #e7bd65 40%,
    #ffedae 58%,
    #af741d
  );
  box-shadow:
    0 9px 28px rgba(166, 111, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 800;
}

.developer-role {
  margin-top: 0.8rem;
  color: #818da3;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: #606b80;
  font-size: 0.6rem;
}

.interface-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 30;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(10, 15, 25, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}

.interface-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes goldFlow {
  to {
    background-position: 200% center;
  }
}

@keyframes consoleSheen {
  0%,
  65% {
    transform: translateX(-130%);
  }

  90%,
  100% {
    transform: translateX(130%);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
  }

  .hero-trust-row {
    gap: 1rem;
  }

  .hero-trust-row div {
    padding-right: 1rem;
  }

  .workspace {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  }

  .sample-zone,
  .batch-upload-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
  }

  .privacy-chip {
    display: none;
  }

  .page-shell {
    padding-top: 3.2rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 3.5rem;
  }

  .hero-console {
    width: min(100%, 480px);
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 4.5rem;
  }

  .metric-strip article:nth-child(2) {
    border-right: 0;
  }

  .metric-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .explanation-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }

  .methodology-intro {
    margin-top: 4.5rem;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 1rem, 1240px);
  }

  .site-header {
    padding: 0 0.75rem;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .status {
    padding: 0.47rem 0.62rem;
  }

  .status > span:last-child {
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-copy {
    font-size: 0.9rem;
  }

  .hero-trust-row div {
    width: calc(50% - 0.5rem);
    border-right: 0;
  }

  .hero-console {
    padding: 1rem;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip article {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .section-intro > p {
    text-align: left;
  }

  .input-panel,
  .result-panel,
  .batch-panel {
    padding: 1rem;
  }

  .panel-heading,
  .batch-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading > .button {
    align-self: stretch;
  }

  .sample-buttons,
  .upload-row {
    width: 100%;
  }

  .sample-buttons .button,
  .upload-row .button,
  .file-picker {
    width: 100%;
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .footer-branding {
    flex-direction: column;
  }

  .footer-divider {
    display: none;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
  }
}

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