@font-face {
  font-family: "Midnight Minutes";
  src: url("assets/fonts/midnight-minutes-demo.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #050407;
  --bg-2: #0b0710;
  --panel: #100913;
  --panel-2: #170d1d;
  --ink: #f7f1fb;
  --muted: #b8a9c4;
  --soft: #8f7b9c;
  --purple: #a855f7;
  --violet: #6d3cf6;
  --crimson: #d9486e;
  --amber: #f2b35f;
  --line: rgba(216, 188, 255, 0.18);
  --line-strong: rgba(216, 188, 255, 0.34);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(217, 72, 110, 0.13), transparent 28%),
    linear-gradient(245deg, rgba(168, 85, 247, 0.18), transparent 44%),
    linear-gradient(180deg, #0b0710 0%, #050407 46%, #020203 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 56px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 75%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.12;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #120913;
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 88svh;
  padding: 24px 24px 34px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  top: -145px;
  right: -60px;
  z-index: 0;
  width: min(84vw, 1120px);
  aspect-ratio: 1;
  content: "";
  background: url("assets/count-sampula-crest.png") center / contain no-repeat;
  filter: brightness(1.08) saturate(1.2) drop-shadow(0 0 90px rgba(168, 85, 247, 0.66));
  opacity: 0.62;
  mask-image: radial-gradient(circle at 55% 40%, black 0 58%, rgba(0, 0, 0, 0.86) 70%, transparent 92%);
  transform: rotate(-4deg);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 4, 7, 0.9) 0%, rgba(5, 4, 7, 0.58) 34%, rgba(5, 4, 7, 0.04) 66%, rgba(5, 4, 7, 0.22) 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 4, 7, 0.28) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto 54px;
}

.brand,
.nav-links,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 204px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.34));
}

.nav-links {
  gap: 8px;
}

.nav-links a,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-cta {
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(520px, 1.24fr);
  gap: 44px;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-copy {
  animation: rise-in 680ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: #f0b6c6;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: "Midnight Minutes", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 82px;
  font-weight: 400;
  line-height: 0.86;
  max-width: 560px;
  text-shadow: 0 0 48px rgba(168, 85, 247, 0.28);
}

h2 {
  font-size: 46px;
  line-height: 1.03;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.subhead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 26px;
}

.button {
  padding: 13px 18px;
  border: 1px solid transparent;
}

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

.button-primary {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(242, 179, 95, 0.22), transparent 45%),
    linear-gradient(135deg, var(--crimson), var(--violet));
  color: white;
  box-shadow: 0 18px 48px rgba(109, 60, 246, 0.3);
}

.button-primary:hover {
  box-shadow: 0 22px 56px rgba(217, 72, 110, 0.34);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0;
}

.hero-facts div,
.step,
.feature-grid article,
.download-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 6, 14, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-facts div {
  padding: 14px;
}

.hero-facts dt {
  color: var(--ink);
  font-weight: 830;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.product-shot {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 5, 14, 0.72);
  box-shadow: var(--shadow), 0 0 70px rgba(168, 85, 247, 0.18);
  animation: rise-in 780ms 120ms ease both, image-breathe 6s ease-in-out infinite;
}

.product-shot img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.product-shot figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 3, 7, 0.78);
  color: #dacbe8;
  font-size: 13px;
  line-height: 1.35;
  backdrop-filter: blur(14px);
}

.proof-strip {
  display: flex;
  justify-content: center;
  gap: 1px;
  width: min(100% - 48px, var(--max));
  margin: -1px auto 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.proof-strip span {
  flex: 1 1 0;
  min-width: 0;
  padding: 15px 12px;
  color: #d6c4e4;
  text-align: center;
  background: rgba(12, 7, 15, 0.66);
  font-size: 14px;
  line-height: 1.25;
}

.section-shell {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: end;
  padding: 86px 0 46px;
}

.intro p,
.tester p,
.cta p,
.step p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.intro > p {
  margin: 0;
}

.section-heading {
  max-width: 720px;
}

.workflow,
.features,
.tester,
.cta {
  padding: 46px 0;
}

.workflow-grid,
.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.workflow-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 24px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--amber);
  font-weight: 850;
}

.step p {
  margin: 14px 0 0;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  padding: 24px;
}

.feature-grid h3 {
  color: #f4dcff;
}

ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

li + li {
  margin-top: 10px;
}

li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--crimson);
}

.tester {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: center;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.download-label {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.download-panel strong {
  font-size: 30px;
}

.download-panel span:not(.download-label) {
  color: var(--muted);
}

.download-panel .button {
  margin-top: 6px;
}

.cta {
  width: min(100% - 48px, 960px);
  max-width: 960px;
  margin-top: 34px;
  margin-right: auto;
  margin-bottom: 64px;
  margin-left: auto;
  padding: 54px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(217, 72, 110, 0.07)),
    rgba(11, 6, 15, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.cta p {
  max-width: 620px;
  margin: 16px auto 26px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

footer span {
  max-width: 620px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes image-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1100px) {
  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 38px;
  }

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

  .product-shot {
    max-width: 820px;
  }

  .intro,
  .tester {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(120deg, rgba(217, 72, 110, 0.12), transparent 34%),
      linear-gradient(180deg, #0b0710 0%, #050407 58%, #020203 100%);
  }

  .hero {
    min-height: auto;
    padding: 16px 16px 26px;
  }

  .hero::before {
    top: -64px;
    right: -42vw;
    width: 148vw;
    opacity: 0.52;
    transform: rotate(-7deg);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(5, 4, 7, 0.74) 0%, rgba(5, 4, 7, 0.22) 42%, rgba(5, 4, 7, 0.66) 100%),
      linear-gradient(90deg, rgba(5, 4, 7, 0.74), rgba(5, 4, 7, 0.04));
  }

  .nav {
    margin-bottom: 28px;
  }

  .nav-links {
    display: flex;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav {
    gap: 12px;
  }

  .brand-logo {
    width: 120px;
  }

  .hero-grid {
    gap: 26px;
  }

  h1 {
    font-size: 48px;
    max-width: 100%;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 20px;
  }

  .subhead {
    font-size: 18px;
  }

  .actions,
  .button,
  .hero-facts {
    width: 100%;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-shot {
    padding: 6px;
    animation: rise-in 620ms 80ms ease both;
  }

  .product-shot figcaption {
    display: none;
  }

  .proof-strip,
  .section-shell {
    width: min(100% - 32px, var(--max));
  }

  .proof-strip {
    flex-wrap: wrap;
    margin-top: 0;
    border-radius: 0;
  }

  .proof-strip span {
    flex: 1 1 50%;
    font-size: 13px;
  }

  .intro {
    gap: 22px;
    padding: 56px 0 30px;
  }

  .workflow,
  .features,
  .tester,
  .cta {
    padding: 34px 0;
  }

  .workflow-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    margin-bottom: 22px;
  }

  .download-panel strong {
    font-size: 26px;
  }

  .cta {
    width: min(100% - 32px, 960px);
    padding: 40px 18px;
  }

  footer {
    padding: 24px 16px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .proof-strip span {
    flex-basis: 100%;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 98px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero {
    padding-bottom: 18px;
  }

  .nav {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .subhead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.42;
  }

  .actions {
    margin: 20px 0 18px;
  }

  .button-secondary,
  .hero-facts {
    display: none;
  }

  .product-shot img {
    max-height: 178px;
    object-fit: cover;
    object-position: center top;
  }
}

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