:root {
  --ink: #10192a;
  --muted: #586173;
  --blue: #0879e8;
  --deep-blue: #082d66;
  --night: #07152d;
  --gold: #c79a3b;
  --pale-gold: #f2dfb5;
  --paper: #fbf7ec;
  --line: rgba(33, 58, 92, 0.16);
  --shadow: 0 24px 70px rgba(15, 31, 57, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(rgba(255, 252, 243, 0.76), rgba(250, 246, 235, 0.88)),
    url("/assets/parchment.png") center top / 1100px auto repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(8, 121, 232, 0.09), transparent 24rem),
    radial-gradient(circle at 88% 40%, rgba(199, 154, 59, 0.10), transparent 28rem);
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--night);
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(9, 48, 101, 0.16);
}

.header-action {
  padding: 11px 18px;
  color: var(--deep-blue);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(8, 45, 102, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  transition: transform 160ms ease, background 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-2px);
  background: #fff;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  padding: 74px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #7e5b17;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--night);
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

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

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 0 25px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(230, 197, 121, 0.48);
  border-radius: 14px;
  background: linear-gradient(135deg, #1397ff, #0a3e88 72%, #07275d);
  box-shadow: 0 14px 32px rgba(7, 61, 135, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(7, 61, 135, 0.32);
}

.secondary-link {
  color: var(--deep-blue);
  font-weight: 700;
  text-underline-offset: 5px;
}

.local-note {
  max-width: 580px;
  margin: 20px 0 0;
  color: #6e746f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  isolation: isolate;
}

.hero-emblem::before,
.hero-emblem::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(199, 154, 59, 0.34);
  border-radius: 50%;
}

.hero-emblem::before {
  width: 440px;
  height: 440px;
}

.hero-emblem::after {
  width: 365px;
  height: 365px;
  border-style: dashed;
}

.hero-emblem > img {
  position: relative;
  z-index: 2;
  width: min(390px, 86%);
  border-radius: 25%;
  filter: drop-shadow(0 30px 30px rgba(8, 31, 67, 0.24));
  animation: hover 5s ease-in-out infinite;
}

.emblem-glow {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(36, 149, 255, 0.18);
  filter: blur(55px);
}

.seal {
  position: absolute;
  right: 0;
  bottom: 50px;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 112px;
  height: 112px;
  color: #f8eac5;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #d9b768;
  border-radius: 50%;
  background: var(--deep-blue);
  box-shadow: 0 15px 35px rgba(7, 32, 72, 0.28);
  transform: rotate(7deg);
}

.seal span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

.seal strong {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
}

@keyframes hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.ad-section {
  width: 100%;
  min-height: 110px;
  padding: 14px clamp(12px, 3vw, 28px) 18px;
  overflow: hidden;
  border: 1px solid rgba(33, 58, 92, 0.13);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.62);
  box-shadow: 0 10px 30px rgba(31, 40, 51, 0.05);
}

.ad-label {
  display: block;
  margin-bottom: 8px;
  color: #737b87;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.feature-section {
  padding: 84px 0 100px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--night);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.section-heading > p:last-child,
.final-cta p,
.journey-copy > p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(71, 67, 51, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 14px 40px rgba(31, 40, 51, 0.07);
  backdrop-filter: blur(6px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-family: "Cinzel", serif;
  font-weight: 800;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--blue), var(--deep-blue));
  box-shadow: 0 9px 22px rgba(8, 76, 156, 0.2);
}

.feature-card h3 {
  margin: 24px 0 10px;
  font-size: 1.22rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.journey {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 8vw, 110px);
  padding: 110px clamp(28px, 5vw, 72px);
  color: #fff;
  border: 1px solid rgba(230, 197, 121, 0.28);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(25, 145, 255, 0.22), transparent 26rem),
    linear-gradient(135deg, #092c61, #07152d 75%);
  box-shadow: var(--shadow);
}

.journey h2 {
  max-width: 650px;
  color: #fff;
}

.journey-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.journey .eyebrow {
  color: #e3c77e;
}

.journey ol {
  display: grid;
  gap: 24px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.journey li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.journey li > span {
  color: #e2c16c;
  font-family: "Cinzel", serif;
  font-weight: 800;
}

.journey li strong {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
}

.journey li p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.quote-card {
  align-self: center;
  padding: 38px;
  color: var(--ink);
  border: 1px solid rgba(213, 178, 91, 0.5);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 250, 235, 0.9), rgba(248, 239, 214, 0.92)),
    url("/assets/parchment.png") center / cover;
  transform: rotate(1.4deg);
}

.quote-mark {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.6;
}

blockquote {
  margin: 18px 0 24px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.55;
}

.quote-card p {
  margin: 0;
  color: var(--deep-blue);
  font-weight: 800;
}

.final-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  margin-top: 100px;
  padding: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta img {
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(9, 48, 101, 0.16);
}

.final-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.final-cta p {
  margin: 7px 0 0;
}

.download-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #303030;
  border-radius: 14px;
  background: #050505;
  box-shadow: 0 12px 28px rgba(10, 14, 22, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  transform: translateY(-3px);
  background: #202020;
}

.app-store-button svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  fill: currentColor;
}

.app-store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.app-store-button small {
  margin-bottom: 4px;
  font-size: 0.64rem;
}

.app-store-button strong {
  font-size: 1.05rem;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 42px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--deep-blue);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-emblem {
    min-height: 390px;
  }

  .hero-emblem::before {
    width: 360px;
    height: 360px;
  }

  .hero-emblem::after {
    width: 300px;
    height: 300px;
  }

  .hero-emblem > img {
    width: 320px;
  }

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

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

  .quote-card {
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .header-action {
    padding: 9px 13px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 68px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 18px;
  }

  .primary-button {
    width: 100%;
  }

  .hero-emblem {
    min-height: 330px;
  }

  .hero-emblem::before {
    width: 295px;
    height: 295px;
  }

  .hero-emblem::after {
    width: 250px;
    height: 250px;
  }

  .hero-emblem > img {
    width: 260px;
  }

  .seal {
    right: 3px;
    bottom: 24px;
    width: 92px;
    height: 92px;
  }

  .feature-section {
    padding: 78px 0;
  }

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

  .feature-card {
    min-height: auto;
  }

  .journey {
    padding: 62px 24px;
    border-radius: 24px;
  }

  .quote-card {
    padding: 28px;
  }

  .final-cta {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 42px 18px;
    text-align: center;
  }

  .download-actions {
    width: 100%;
    flex-direction: column;
  }

  .download-actions .primary-button,
  .app-store-button {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer p {
    margin: 0;
  }

  .footer-links {
    justify-content: center;
  }
}

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

  .hero-emblem > img {
    animation: none;
  }
}
