:root {
  --navy: #07162f;
  --navy2: #0d2450;
  --blue: #143b7a;
  --ice: #f7fbff;
  --mist: #dbe9f8;
  --muted: #9fb6d3;
  --line: rgba(219, 233, 248, 0.18);
  --white: #ffffff;
  --gold: #c9a45c;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ice);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.16), transparent 18rem),
    radial-gradient(circle at 82% 22%, rgba(20, 59, 122, 0.72), transparent 24rem),
    linear-gradient(145deg, #030914 0%, var(--navy) 46%, #061026 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(7, 22, 47, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.navLinks,
.heroActions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brandMark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--mist);
  border-radius: 0.45rem 0.45rem 0.9rem 0.9rem;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.16);
}

.navLinks a {
  color: var(--muted);
  font-weight: 700;
}

.navLinks a:hover {
  color: var(--white);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) 0 4rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 0.85rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: 1.2rem;
}

.lead {
  max-width: 710px;
  color: var(--mist);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.primaryButton,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 900;
}

.primaryButton {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.18);
}

.primaryButton:hover {
  background: var(--mist);
}

.secondaryButton {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.secondaryButton:hover {
  background: rgba(255, 255, 255, 0.14);
}

.downloadNote {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.alphaNotice {
  max-width: 660px;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: 1rem;
}

.alphaNotice strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alphaNotice p {
  margin: 0;
  color: var(--mist);
  font-size: 0.96rem;
  line-height: 1.55;
}

.fortressCard,
.overview,
.features article,
.downloadPanel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fortressCard {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  padding: 2rem;
  border-radius: 2rem;
}

.moon {
  position: absolute;
  top: 2rem;
  right: 2.1rem;
  width: 6rem;
  height: 6rem;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 255, 255, 0.44);
  opacity: 0.95;
}

.castle {
  position: relative;
  height: 330px;
  margin: 1.6rem auto 2rem;
}

.tower,
.wall,
.gate {
  position: absolute;
  background: linear-gradient(180deg, #ffffff, #dbe9f8);
  border: 2px solid #ffffff;
  box-shadow: inset 0 -18px 34px rgba(20, 59, 122, 0.16), 0 22px 40px rgba(0, 0, 0, 0.28);
}

.tower {
  bottom: 58px;
  width: 80px;
  border-radius: 1rem 1rem 0 0;
}

.tower::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -2px;
  right: -2px;
  height: 30px;
  background: repeating-linear-gradient(90deg, #ffffff 0 16px, transparent 16px 25px);
}

.tower span {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 18px;
  height: 42px;
  background: var(--navy2);
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.tower.main {
  left: 50%;
  width: 104px;
  height: 250px;
  transform: translateX(-50%);
}

.tower.side {
  width: 78px;
  height: 170px;
}

.tower.left {
  left: 28px;
}

.tower.right {
  right: 28px;
}

.wall {
  left: 52px;
  right: 52px;
  bottom: 22px;
  height: 108px;
  border-radius: 0.8rem 0.8rem 0 0;
}

.wall::before {
  content: "";
  position: absolute;
  top: -22px;
  left: -2px;
  right: -2px;
  height: 24px;
  background: repeating-linear-gradient(90deg, #ffffff 0 18px, transparent 18px 28px);
}

.wall i {
  position: absolute;
  top: 34px;
  width: 14px;
  height: 28px;
  background: var(--navy2);
  border-radius: 999px 999px 0 0;
}

.wall i:nth-child(1) { left: 28%; }
.wall i:nth-child(2) { left: 48%; }
.wall i:nth-child(3) { left: 68%; }

.gate {
  left: 50%;
  bottom: 22px;
  z-index: 3;
  width: 64px;
  height: 78px;
  background: linear-gradient(180deg, #143b7a, #07162f);
  border-color: #dbe9f8;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.wolfWrap {
  position: absolute;
  left: 50%;
  bottom: 102px;
  z-index: 4;
  width: 218px;
  height: 168px;
  border: 15px solid rgba(7, 22, 47, 0.92);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-22deg);
}

.wolfHead {
  position: absolute;
  left: calc(50% + 92px);
  bottom: 212px;
  z-index: 5;
  width: 54px;
  height: 38px;
  background: var(--navy);
  border-radius: 48% 52% 48% 40%;
  transform: rotate(12deg);
}

.wolfHead::before,
.wolfHead::after {
  content: "";
  position: absolute;
  top: -16px;
  width: 18px;
  height: 22px;
  background: var(--navy);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.wolfHead::before { left: 8px; }
.wolfHead::after { right: 8px; }

.wolfTail {
  position: absolute;
  left: calc(50% - 124px);
  bottom: 135px;
  z-index: 5;
  width: 72px;
  height: 24px;
  background: var(--navy);
  border-radius: 999px 20px 999px 20px;
  transform: rotate(-34deg);
}

.cardTopline {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.fortressCard p {
  color: var(--mist);
  line-height: 1.65;
}

.overview,
.downloadPanel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 2rem;
}

.overview p,
.downloadPanel p {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.features article {
  min-height: 240px;
  padding: 1.4rem;
  border-radius: 1.5rem;
}

.features span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-weight: 900;
}

.features p {
  color: var(--mist);
  line-height: 1.65;
}

.screenshots {
  padding: 0 0 4.5rem;
}

.sectionIntro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  max-width: none;
  margin-bottom: 1.4rem;
}

.sectionIntro p {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.7;
}

.screenshotGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.screenshotCard {
  grid-column: span 4;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.largePreview {
  grid-column: span 8;
  grid-row: span 2;
}

.screenshotCard h3,
.screenshotCard p {
  padding-inline: 0.2rem;
}

.screenshotCard h3 {
  margin-bottom: 0.35rem;
}

.screenshotCard p {
  margin-bottom: 0;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
}

.screenshotLink {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.screenshotLink::after {
  content: "Zoom";
  position: absolute;
  right: 0.75rem;
  bottom: 1.65rem;
  padding: 0.35rem 0.55rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.screenshotLink:hover::after,
.screenshotLink:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.screenshotCard img {
  display: block;
  width: 100%;
  height: 205px;
  margin-bottom: 0.85rem;
  object-fit: cover;
  object-position: left top;
  background: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshotLink:hover img,
.screenshotLink:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.largePreview img {
  height: 452px;
}

.lightboxOpen {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.lightbox[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.lightboxBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 20, 0.82);
  backdrop-filter: blur(10px);
}

.lightboxPanel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1380px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  background: #07162f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.35rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.lightboxHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--line);
}

.lightboxHeader h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.lightboxClose {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.lightboxClose:hover,
.lightboxClose:focus-visible {
  background: var(--mist);
}

.lightboxPanel img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(92vh - 4.2rem);
  object-fit: contain;
  background: #eef3f8;
}

/* Retained for fallback preview blocks if screenshots are regenerated later. */
.mockWindow {
  overflow: hidden;
  min-height: 360px;
  margin-bottom: 1rem;
  background: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(7, 22, 47, 0.08);
}

.compactMock {
  min-height: 180px;
}

.mockBar {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  height: 2.1rem;
  padding: 0 0.8rem;
  background: #dbe9f8;
  border-bottom: 1px solid #c7d8ee;
}

.mockBar span {
  width: 0.62rem;
  height: 0.62rem;
  background: var(--blue);
  border-radius: 50%;
  opacity: 0.72;
}

.mockDashboard {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 326px;
}

.mockDashboard aside {
  background: var(--navy);
}

.mockDashboard main {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #eef5fc);
}

.mockHero,
.mockStats i,
.mockRows b,
.mockList i,
.mockInvoice i,
.mockInvoice b,
.mockDocs i {
  display: block;
  border-radius: 0.75rem;
}

.mockHero {
  height: 86px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

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

.mockStats i {
  height: 72px;
  background: #ffffff;
  border: 1px solid #dbe9f8;
}

.mockRows {
  display: grid;
  gap: 0.55rem;
}

.mockRows b {
  height: 26px;
  background: #dbe9f8;
}

.mockList,
.mockInvoice,
.mockDocs {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.mockList i {
  height: 27px;
  background: #dbe9f8;
}

.careMock .mockList i:nth-child(1),
.billingMock .mockInvoice i,
.documentMock .mockDocs i:nth-child(1) {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.mockInvoice i {
  height: 54px;
}

.mockInvoice b {
  height: 24px;
  background: #dbe9f8;
}

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

.mockDocs i {
  height: 118px;
  background: #dbe9f8;
}

.downloadPanel {
  grid-template-columns: 1fr auto;
  margin-bottom: 4rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

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

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

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

  .largePreview {
    grid-column: span 2;
    grid-row: auto;
  }

  .screenshotCard {
    grid-column: span 1;
  }

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

  .downloadPanel .primaryButton {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .siteHeader,
  footer,
  .heroActions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    align-items: flex-start;
  }

  .navLinks {
    justify-content: space-between;
  }

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

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

  .largePreview,
  .screenshotCard {
    grid-column: auto;
  }

  .largePreview img,
  .screenshotCard img {
    height: 230px;
  }

  .fortressCard {
    min-height: 520px;
  }

  .castle {
    transform: scale(0.88);
    transform-origin: center top;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
  }
}
