:root {
  --ink: #182033;
  --muted: #697286;
  --paper: #fffaf5;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(24, 32, 51, 0.12);
  --rose: #ffb4c8;
  --peach: #ffd6a5;
  --blue: #bde0fe;
  --green: #caffbf;
  --shadow: 0 28px 80px rgba(24, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 180, 200, 0.75), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(189, 224, 254, 0.72), transparent 28%),
    radial-gradient(circle at 70% 90%, rgba(255, 214, 165, 0.74), transparent 30%),
    linear-gradient(135deg, #fffaf5 0%, #f5f0ff 100%);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 46% 54% 61% 39%;
  filter: blur(2px);
  opacity: 0.22;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-a {
  left: -70px;
  top: 40%;
  background: var(--rose);
}

.ambient-b {
  right: -90px;
  top: 22%;
  background: var(--blue);
  animation-delay: -5s;
}

.site-header {
  width: min(1120px, calc(100vw - 36px));
  margin: 24px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #14213d;
  color: #fffaf5;
  font-weight: 800;
  letter-spacing: -0.08em;
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.12);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.button {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 14px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease;
}

nav a:hover,
.button:hover {
  transform: translateY(-2px);
  background: white;
}

main {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #7f4f5f;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button.primary {
  background: #14213d;
  color: white;
}

.invoice-card,
.tile,
.timeline,
.table-card,
.status-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.invoice-card {
  position: relative;
  min-height: 420px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.float-card {
  animation: float 5s ease-in-out infinite;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.card-head strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green);
}

.rows {
  margin-top: 42px;
  display: grid;
  gap: 18px;
}

.rows span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 33, 61, 0.18), rgba(20, 33, 61, 0.04));
}

.rows span:nth-child(2) {
  width: 72%;
}

.rows span:nth-child(3) {
  width: 86%;
}

.rows span:nth-child(4) {
  width: 56%;
}

.stamp {
  position: absolute;
  right: 26px;
  bottom: 28px;
  padding: 18px 24px;
  border: 3px solid rgba(127, 79, 95, 0.3);
  border-radius: 18px;
  color: #7f4f5f;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transform: rotate(-7deg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.tile,
.timeline,
.table-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(24, 32, 51, 0.08);
  padding: 26px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--peach);
  font-weight: 800;
}

.tile h2,
.timeline h2 {
  margin: 18px 0 8px;
}

.tile p,
.timeline li,
.status-card p,
.faq p {
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  margin-bottom: 56px;
}

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.timeline li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.timeline span {
  color: #7f4f5f;
  font-weight: 800;
}

.page {
  padding-bottom: 64px;
}

.table-card {
  display: grid;
  gap: 4px;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 0.7fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.head {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 720px;
}

.pulse {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 rgba(110, 231, 183, 0.5);
  animation: pulse 1.8s infinite;
}

.faq {
  max-width: 780px;
  display: grid;
  gap: 12px;
}

details {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

footer {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes drift {
  to { transform: translate3d(40px, -30px, 0) rotate(18deg); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(110, 231, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .grid,
  footer {
    grid-template-columns: 1fr;
  }

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

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 56px 0;
    min-height: auto;
  }

  .invoice-card {
    min-height: 320px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}
