:root {
  --bg-top: #f8fbff;
  --bg-bottom: #eef2ff;
  --ink: #0d1b2e;
  --muted: #536079;
  --panel: rgba(255, 255, 255, 0.68);
  --border: rgba(173, 194, 226, 0.45);
  --accent: #2674ff;
  --accent-soft: rgba(38, 116, 255, 0.12);
  --green: #0ea86f;
  --orange: #d7891c;
  --info: #3d71ea;
  --shadow: 0 24px 60px rgba(41, 72, 123, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "SF Pro Text", "SF Pro Display", "Helvetica Neue",
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  width: 48rem;
  height: 48rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-a {
  background: radial-gradient(circle at 30% 30%, #9ed9ff, transparent 65%);
  top: -24rem;
  left: -10rem;
}

.glow-b {
  background: radial-gradient(circle at 70% 70%, #bdd0ff, transparent 65%);
  right: -16rem;
  bottom: -20rem;
  animation-delay: -4s;
}

.ambient-grid {
  position: absolute;
  inset: -30%;
  background-image: linear-gradient(
      to right,
      rgba(123, 146, 184, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(123, 146, 184, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(60deg);
  opacity: 0.55;
  animation: float-grid 20s linear infinite;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.topbar {
  width: min(1120px, calc(100% - 3rem));
  margin: 1.25rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(103, 129, 172, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 1rem;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #28b6ff, #2561ff);
  box-shadow: 0 0 0 5px rgba(37, 97, 255, 0.12);
}

.nav {
  display: inline-flex;
  gap: 1.15rem;
}

.nav a {
  color: #395170;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}

.btn {
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(89, 121, 172, 0.28);
  color: #274169;
  padding: 0.6rem 1rem;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #3e83ff, #2d5fff);
  box-shadow: 0 14px 28px rgba(48, 93, 212, 0.25);
  padding: 0.86rem 1.2rem;
}

.btn-soft {
  color: #2f4d77;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(97, 120, 160, 0.24);
  padding: 0.84rem 1.16rem;
}

.hero {
  padding-top: 5.6rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #3869ae;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  color: #204f9e;
}

.subtitle {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-row {
  margin-top: 2rem;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.meta {
  min-width: 120px;
}

.meta strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.meta span {
  color: #5c6d87;
  font-size: 0.84rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.invoice-canvas {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 1.65rem;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.78),
    rgba(243, 248, 255, 0.72)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 240ms ease;
}

.canvas-head {
  display: flex;
  gap: 0.55rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.33rem 0.65rem;
}

.chip-live {
  color: #057250;
  background: rgba(14, 168, 111, 0.13);
}

.chip-ai {
  color: #265dca;
  background: rgba(43, 106, 246, 0.13);
}

.invoice-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(132, 167, 220, 0.42);
  background: rgba(255, 255, 255, 0.74);
}

.invoice-block p {
  margin: 0;
  color: #5b6c87;
  font-size: 0.82rem;
  font-weight: 600;
}

.invoice-block h3 {
  margin: 0.35rem 0;
  letter-spacing: -0.02em;
}

.invoice-block span {
  color: #2b5bc6;
  font-size: 0.84rem;
  font-weight: 700;
}

.label-cloud {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  background: rgba(238, 245, 255, 0.95);
  border: 1px solid rgba(148, 176, 226, 0.6);
  color: #2f5078;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.line-item,
.line-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-item {
  padding: 0.85rem 0.2rem 0.75rem;
  border-bottom: 1px solid rgba(137, 165, 208, 0.3);
  font-size: 0.9rem;
  color: #3d5478;
}

.line-item strong {
  color: #1c3558;
}

.line-total {
  margin-top: 0.75rem;
  font-weight: 800;
  color: #163258;
  font-size: 1.02rem;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(53, 132, 255, 0.65),
    transparent
  );
  animation: scanner 5s linear infinite;
}

.features {
  margin-top: 5.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.2rem;
  box-shadow: 0 15px 35px rgba(68, 92, 138, 0.08);
}

.panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1.07rem;
}

.panel p {
  margin: 0;
  color: #526480;
  line-height: 1.58;
}

.labels,
.security,
.footer {
  margin-top: 5rem;
}

.section-header h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.label-board {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.label-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.label-card h4 {
  margin: 0.7rem 0 0.48rem;
  letter-spacing: -0.02em;
}

.label-card p {
  margin: 0;
  color: #52637f;
  line-height: 1.6;
}

.status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.54rem;
  border-radius: 999px;
}

.status-ok {
  color: #036d4a;
  background: rgba(14, 168, 111, 0.14);
}

.status-warn {
  color: #8c5f13;
  background: rgba(215, 137, 28, 0.14);
}

.status-info {
  color: #2e5dc3;
  background: rgba(61, 113, 234, 0.14);
}

.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}

.security h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  max-width: 18ch;
}

.security-grid {
  display: grid;
  gap: 0.8rem;
}

.security-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.security-item h4 {
  margin: 0;
}

.security-item p {
  margin: 0.5rem 0 0;
  color: #586987;
}

.footer {
  margin-bottom: 3rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.footer p {
  margin: 0.45rem 0 0;
  color: #586b89;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(36px, -24px, 0) scale(1.06);
  }
}

@keyframes float-grid {
  0% {
    transform: perspective(700px) rotateX(60deg) translateY(0);
  }
  100% {
    transform: perspective(700px) rotateX(60deg) translateY(-56px);
  }
}

@keyframes scanner {
  0% {
    top: 4%;
  }
  100% {
    top: 96%;
  }
}

@media (max-width: 980px) {
  .hero,
  .security {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

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

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

@media (max-width: 760px) {
  .topbar {
    border-radius: 1rem;
    padding: 0.7rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav a {
    font-size: 0.83rem;
  }

  .container,
  .topbar {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .subtitle {
    font-size: 1rem;
  }
}
