:root {
  --bg: #030914;
  --bg-2: #06111F;
  --surface: rgba(9, 24, 40, .82);
  --surface-strong: rgba(11, 30, 51, .96);
  --blue: #2EA9FF;
  --cyan: #63E6FF;
  --gold: #FFD95A;
  --gold-2: #FFC400;
  --text: #F8FBFF;
  --muted: #B9C7D9;
  --soft: #7F9AB4;
  --success: #52D98C;
  --danger: #EF6D78;
  --border: rgba(99, 230, 255, .22);
  --border-gold: rgba(255, 217, 90, .32);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(46, 169, 255, .13), transparent 34rem),
    radial-gradient(circle at 90% 15%, rgba(255, 217, 90, .09), transparent 28rem),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--cyan);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: #020914;
  background: var(--gold);
  border-radius: .6rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 9, 20, .88);
  backdrop-filter: blur(18px);
}

.topbar__content,
.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .04em;
}

.brand strong {
  color: var(--gold);
}

.brand img {
  border-radius: 12px;
}

.portal-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem 1rem;
  overflow: hidden;
  color: var(--cyan);
  border-radius: 999px;
  background: rgba(4, 20, 37, .94);
  box-shadow:
    inset 0 0 0 1px rgba(47, 204, 255, .24),
    0 0 16px rgba(24, 179, 255, .08);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-decoration: none !important;
  text-underline-offset: 0;
  transition:
    color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

.portal-link::before {
  content: "";
  position: absolute;
  inset: -115%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    transparent 0 68%,
    rgba(28, 181, 255, .08) 75%,
    #18b9ff 84%,
    #78efff 89%,
    transparent 96% 100%
  );
  animation: portal-border-orbit 3.4s linear infinite;
}

.portal-link::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(5, 28, 50, .98), rgba(2, 13, 27, .98));
}

.portal-link:hover,
.portal-link:focus-visible {
  color: #a8f5ff;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(92, 228, 255, .38),
    0 0 24px rgba(24, 185, 255, .28),
    0 0 46px rgba(24, 185, 255, .12);
}

@keyframes portal-border-orbit {
  to {
    transform: rotate(1turn);
  }
}

.official-badge {
  padding: .45rem .8rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}

h1 span {
  color: var(--gold);
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.hero__lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.25rem;
  color: #06111F;
  background: linear-gradient(135deg, var(--gold), #fff1a8, var(--cyan));
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(46, 169, 255, .16);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button--secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.button--disabled,
.button:disabled {
  color: var(--soft);
  background: #0B1728;
  border: 1px solid var(--border);
  box-shadow: none;
  cursor: not-allowed;
}

.release-status {
  color: var(--soft);
  font-size: .9rem;
}

.unsigned-note {
  max-width: 680px;
  color: var(--muted);
  font-size: .9rem;
}

.section-intro {
  max-width: 760px;
  color: var(--muted);
}

.section--trust {
  border-block: 1px solid var(--border-gold);
  background: rgba(255, 217, 90, .035);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.trust-card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(13, 32, 54, .92), rgba(6, 17, 31, .82));
  box-shadow: var(--shadow);
}

.trust-card--success {
  border-color: rgba(82, 217, 140, .5);
}

.trust-card--wide {
  grid-column: 1 / -1;
}

.trust-card__status {
  display: inline-block;
  margin-bottom: .9rem;
  color: var(--success);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.trust-card h3 {
  margin-bottom: .55rem;
  font-size: 1.35rem;
}

.trust-card p {
  color: var(--muted);
}

.trust-card code {
  display: block;
  padding: 1rem;
  overflow-wrap: anywhere;
  color: var(--cyan);
  background: rgba(3, 9, 20, .72);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
}

.copy-button {
  margin-top: 1rem;
  padding: .7rem 1rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.copy-status {
  margin-left: .8rem;
  color: var(--success);
  font-size: .88rem;
}

.release-panel {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13, 32, 54, .88), rgba(6, 17, 31, .78));
}

.release-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 2rem;
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.product-card,
.feature,
.verifier-card,
.security-panel,
.legal-grid article {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(13, 32, 54, .88), rgba(6, 17, 31, .78));
  box-shadow: var(--shadow);
}

.product-card,
.feature,
.trust-card,
.verifier-card,
.security-panel,
.legal-grid article,
.release-panel,
.document-card,
.feedback-card {
  transition:
    transform .36s cubic-bezier(.22, 1, .36, 1),
    border-color .32s ease,
    box-shadow .32s ease,
    background .32s ease;
}

.product-card:hover,
.product-card:focus-within,
.feature:hover,
.feature:focus-within,
.trust-card:hover,
.trust-card:focus-within,
.verifier-card:hover,
.verifier-card:focus-within,
.security-panel:hover,
.security-panel:focus-within,
.legal-grid article:hover,
.legal-grid article:focus-within,
.release-panel:hover,
.release-panel:focus-within,
.document-card:hover,
.document-card:focus-within,
.feedback-card:hover,
.feedback-card:focus-within {
  transform: translateY(-9px) scale(1.012) !important;
  border-color: rgba(102, 231, 255, .92) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 179, 255, .12), transparent 34%),
    linear-gradient(145deg, rgba(17, 47, 77, .98), rgba(6, 20, 38, .94)) !important;
  box-shadow:
    0 0 0 1px rgba(91, 223, 255, .26),
    0 0 22px rgba(39, 207, 255, .38),
    0 0 56px rgba(30, 149, 255, .25),
    0 0 92px rgba(25, 92, 255, .13),
    0 32px 78px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 0 38px rgba(38, 194, 255, .10) !important;
  animation: lia-box-electric-glow 1.65s ease-in-out infinite alternate;
}

.product-card:hover h2,
.product-card:focus-within h2,
.feature:hover h3,
.feature:focus-within h3,
.trust-card:hover h3,
.trust-card:focus-within h3,
.verifier-card:hover h2,
.verifier-card:focus-within h2,
.security-panel:hover h2,
.security-panel:focus-within h2,
.legal-grid article:hover h3,
.legal-grid article:focus-within h3,
.release-panel:hover h2,
.release-panel:focus-within h2,
.document-card:hover strong,
.document-card:focus-within strong,
.feedback-card:hover h2,
.feedback-card:focus-within h2 {
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(104, 232, 255, .42),
    0 0 30px rgba(44, 161, 255, .20);
}

@keyframes lia-box-electric-glow {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.075);
  }
}

.trust-card--success:hover,
.trust-card--success:focus-within {
  border-color: rgba(92, 239, 160, .90) !important;
  box-shadow:
    0 0 0 1px rgba(82, 225, 147, .20),
    0 0 24px rgba(65, 226, 144, .32),
    0 0 58px rgba(34, 173, 255, .18),
    0 30px 76px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 255, 255, .14) !important;
}

.product-card:hover img,
.product-card:focus-within img {
  filter: drop-shadow(0 0 18px rgba(69, 216, 255, .34));
}

.product-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
}

.product-card img {
  border-radius: 24px;
  box-shadow: 0 0 45px rgba(46, 169, 255, .28);
}

.product-card h2 {
  margin: 1.2rem 0 .4rem;
  font-size: 1.8rem;
}

.product-card p,
.product-card li {
  color: var(--muted);
}

.product-card ul {
  padding-left: 1.2rem;
}

.glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
}

.glow--blue {
  left: -12rem;
  top: 8rem;
  background: var(--blue);
}

.glow--gold {
  right: -12rem;
  bottom: 2rem;
  background: var(--gold);
}

.section {
  padding: 6.5rem 0;
}

.section--security {
  background: rgba(6, 17, 31, .72);
  border-block: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.feature span {
  color: var(--gold);
  font-weight: 800;
}

.feature h3 {
  margin: .8rem 0 .4rem;
}

.feature p,
.verifier-layout p,
.security-copy,
.legal-grid p {
  color: var(--muted);
}

.verifier-layout,
.security-panel,
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.verifier-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.file-label {
  font-weight: 800;
}

input[type="file"] {
  width: 100%;
  padding: 1rem;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

select,
textarea {
  width: 100%;
  padding: .9rem 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

textarea {
  resize: vertical;
}

select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.result {
  min-height: 58px;
  padding: 1rem;
  color: var(--muted);
  background: rgba(3, 9, 20, .72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.result--checking {
  color: var(--gold);
  border-color: var(--border-gold);
}

.result--official {
  color: var(--success);
  border-color: var(--success);
}

.result--invalid {
  color: var(--danger);
  border-color: var(--danger);
}

.privacy-note {
  padding-left: 1rem;
  border-left: 3px solid var(--cyan);
}

.security-panel {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.legal-grid {
  align-items: stretch;
}

.legal-grid article {
  padding: 2rem;
  border-radius: var(--radius-md);
}

.document-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem;
  color: var(--text);
  background: linear-gradient(145deg, rgba(13, 32, 54, .92), rgba(6, 17, 31, .82));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.document-card:hover,
.document-card:focus-within {
  transform: translateY(-7px) scale(1.008);
  border-color: rgba(88, 222, 255, .68);
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 179, 255, .12), transparent 34%),
    linear-gradient(145deg, rgba(15, 40, 66, .96), rgba(6, 18, 34, .88));
  box-shadow:
    0 0 0 1px rgba(72, 205, 255, .10),
    0 0 30px rgba(38, 187, 255, .20),
    0 0 68px rgba(32, 116, 255, .12),
    0 28px 72px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .11);
}

.document-card--featured {
  grid-column: 1 / -1;
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(255, 217, 90, .1), rgba(13, 32, 54, .96));
}

.document-card img {
  flex: 0 0 auto;
  border-radius: 8px;
}

.document-card span,
.document-card small {
  display: block;
}

.document-card strong {
  color: var(--cyan);
}

.document-card small {
  margin-top: .15rem;
  color: var(--muted);
}

.inline-action {
  display: inline-flex;
  margin-top: .5rem;
  padding: .7rem 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
}

.document-hero {
  padding: 4.5rem 0 2.5rem;
}

.document-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.document-hero__brand img {
  border-radius: 16px;
  box-shadow: 0 0 36px rgba(46, 169, 255, .25);
}

.document-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.document-nav a {
  padding: .65rem .85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
}

.document-section {
  scroll-margin-top: 100px;
  margin-bottom: 1.2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(13, 32, 54, .88), rgba(6, 17, 31, .78));
}

.document-section p,
.document-section li {
  color: var(--muted);
}

.hash-display {
  display: block;
  padding: 1rem;
  overflow-wrap: anywhere;
  color: var(--cyan);
  background: rgba(3, 9, 20, .72);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.feedback-card {
  display: grid;
  gap: .8rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(13, 32, 54, .92), rgba(6, 17, 31, .82));
}

.feedback-card label {
  font-weight: 800;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .4rem;
}

.footer__institutional span,
.footer__institutional small {
  display: block;
}

.footer__institutional small {
  color: var(--soft);
  font-size: .78rem;
}

.manual-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 2rem 0;
}

.manual-index a {
  padding: .8rem 1rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
}

.manual-step {
  scroll-margin-top: 100px;
  margin-bottom: 1rem;
  padding: 1.6rem;
  border-left: 3px solid var(--cyan);
  background: rgba(9, 24, 40, .72);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.manual-step p,
.manual-step li {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--soft);
  background: #02060D;
}

@media (max-width: 900px) {
  .hero__grid,
  .verifier-layout,
  .security-panel,
  .legal-grid,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .release-list {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  .official-badge {
    display: none;
  }

  .portal-link {
    font-size: .76rem;
    letter-spacing: .12em;
    padding-inline: .8rem;
  }

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

  .document-links {
    grid-template-columns: 1fr;
  }

  .manual-index {
    grid-template-columns: 1fr;
  }

  .section,
  .hero {
    padding: 4rem 0;
  }

  .product-card,
  .verifier-card,
  .security-panel {
    padding: 1.35rem;
  }

  .footer__content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .feature,
  .trust-card,
  .verifier-card,
  .security-panel,
  .legal-grid article,
  .release-panel,
  .document-card,
  .feedback-card {
    animation: none !important;
    transition: none;
  }

  .portal-link::before {
    animation: none;
    background: linear-gradient(90deg, #18b9ff, #78efff);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
