:root {
  --cream: #fff8ee;
  --cream-deep: #f4e6d5;
  --ivory: #fffdf8;
  --burgundy: #8f1838;
  --burgundy-dark: #521323;
  --burgundy-soft: #b74a5c;
  --rose: #f5dfdd;
  --gold: #e3aa6e;
  --ink: #2a1718;
  --muted: #7c6262;
  --line: #ead8ca;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 26px 70px rgba(82, 19, 35, 0.16);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--burgundy-dark);
  background: rgba(255, 248, 238, 0.84);
  border: 1px solid rgba(143, 24, 56, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(82, 19, 35, 0.08);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.app-header.is-scrolled {
  background: rgba(255, 248, 238, 0.97);
  border-color: rgba(143, 24, 56, 0.3);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 900;
}

.app-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(82, 19, 35, 0.13);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(82, 19, 35, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease;
}

.app-nav a:hover,
.app-nav a:focus-visible {
  color: var(--burgundy);
  background: rgba(143, 24, 56, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(143, 24, 56, 0.18);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--burgundy-dark);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.app-hero,
.section {
  position: relative;
  overflow: hidden;
  padding: 112px 24px;
}

.app-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 138px;
  background:
    linear-gradient(90deg, rgba(255, 248, 238, 0.98), rgba(255, 248, 238, 0.82)),
    url("../assets/AsmarLoka%20Spalsh%20screen.png") right center / auto 100% no-repeat,
    var(--cream);
}

.soft-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.soft-orbit span {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(143, 24, 56, 0.16);
  border-radius: 50%;
}

.soft-orbit span:nth-child(1) {
  width: 420px;
  right: 5%;
  top: 16%;
}

.soft-orbit span:nth-child(2) {
  width: 170px;
  left: 8%;
  bottom: 13%;
  border-color: rgba(227, 170, 110, 0.28);
}

.soft-orbit span:nth-child(3) {
  width: 92px;
  right: 44%;
  top: 21%;
  border-color: rgba(143, 24, 56, 0.2);
}

.hero-inner,
.section-heading,
.feature-grid,
.screens-layout,
.contact-panel {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.78fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin-bottom: 24px;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.5rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text,
.hero-summary p,
.section-heading p,
.feature-card p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  max-width: 630px;
  margin-bottom: 24px;
  font-size: 1.14rem;
}

.hero-summary {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-summary p {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--burgundy);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--burgundy-dark);
}

.button.secondary {
  color: var(--burgundy-dark);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(143, 24, 56, 0.2);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(143, 24, 56, 0.38);
  background: var(--white);
}

.phone-stage {
  position: relative;
  min-height: 640px;
  animation: float-phone 5.5s ease-in-out infinite;
}

.phone-halo {
  position: absolute;
  right: 18px;
  bottom: 40px;
  width: 330px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(143, 24, 56, 0.16), transparent 68%);
  border-radius: 50%;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  background: var(--burgundy-dark);
  border: 10px solid var(--burgundy-dark);
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-front {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 320px;
  height: 610px;
}

.phone-back {
  top: 26px;
  left: 0;
  width: 245px;
  height: 520px;
  border-color: #f6dfd6;
  opacity: 0.94;
  transform: rotate(-4deg);
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.cream-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 248, 238, 0)),
    var(--ivory);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 42px;
}

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

.feature-card {
  min-height: 286px;
  padding: 26px;
  color: inherit;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(82, 19, 35, 0.07);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible,
.feature-card.is-active {
  border-color: rgba(143, 24, 56, 0.45);
  box-shadow: 0 24px 64px rgba(82, 19, 35, 0.13);
  transform: translateY(-3px);
  outline: none;
}

.feature-card span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3 {
  color: var(--burgundy-dark);
}

.feature-card p {
  margin-bottom: 0;
}

.screens-section {
  background:
    linear-gradient(180deg, rgba(143, 24, 56, 0.06), rgba(255, 248, 238, 0)),
    var(--cream);
}

.screens-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.screen-preview {
  position: sticky;
  top: 120px;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.screen-phone {
  position: relative;
  width: 315px;
  height: 620px;
}

.screen-phone img {
  transition: opacity 160ms ease, transform 160ms ease;
}

.screen-phone img.is-changing {
  opacity: 0.42;
  transform: scale(0.985);
}

.screen-preview p {
  width: min(100%, 315px);
  margin: 0;
  padding: 14px 16px;
  color: var(--burgundy-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
}

.screens-layout .section-heading {
  margin-bottom: 0;
}

.screens-layout .section-heading p:not(.eyebrow) {
  max-width: 680px;
}

.screen-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.screen-option {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 10px;
  color: var(--burgundy-dark);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.screen-option:hover,
.screen-option:focus-visible,
.screen-option.is-active {
  border-color: rgba(143, 24, 56, 0.45);
  box-shadow: 0 18px 44px rgba(82, 19, 35, 0.11);
  transform: translateY(-2px);
  outline: none;
}

.screen-option img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.screen-option span {
  font-size: 0.88rem;
  font-weight: 900;
}

.overview-link {
  margin-top: 24px;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(82, 19, 35, 0.98), rgba(108, 21, 42, 0.98)),
    var(--burgundy-dark);
}

.contact-panel {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.contact-panel img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.contact-panel h2 {
  max-width: 720px;
  color: var(--white);
}

.contact-panel p {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel .eyebrow {
  color: var(--gold);
}

.overview-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  background: var(--burgundy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(82, 19, 35, 0.22);
  font-size: 0.9rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.overview-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.overview-fab:hover,
.overview-fab:focus-visible {
  background: var(--burgundy-dark);
  outline: none;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 26px max(24px, calc((100vw - var(--max-width)) / 2)) 34px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--burgundy-dark);
  font-size: 0.92rem;
}

.app-footer p {
  margin: 0;
}

.app-footer a {
  color: var(--white);
  font-weight: 900;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease;
}

.policy-links a:hover,
.policy-links a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  opacity: 0.86;
}

.policy-page {
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.96), rgba(245, 223, 221, 0.72)),
    var(--cream);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 138px 24px 112px;
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  content: "";
  aspect-ratio: 1;
  border: 1px solid rgba(143, 24, 56, 0.14);
  border-radius: 50%;
}

.legal-hero::before {
  width: 360px;
  top: 120px;
  right: 7%;
}

.legal-hero::after {
  width: 150px;
  left: 8%;
  bottom: 12%;
  border-color: rgba(227, 170, 110, 0.28);
}

.legal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.legal-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(82, 19, 35, 0.08);
}

.legal-nav .eyebrow {
  margin-bottom: 8px;
}

.legal-nav a {
  padding: 10px 12px;
  color: var(--burgundy-dark);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(143, 24, 56, 0.1);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: var(--white);
  border-color: rgba(143, 24, 56, 0.28);
  outline: none;
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: 840px;
  font-size: 4.2rem;
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a {
  color: var(--burgundy);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.legal-meta {
  color: var(--burgundy-soft);
  font-weight: 900;
}

.notice-box {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 20px;
  background: var(--cream);
  border: 1px solid rgba(143, 24, 56, 0.18);
  border-radius: var(--radius);
}

.notice-box p {
  margin: 0;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 8px;
}

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

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

@media (max-width: 1020px) {
  .hero-inner,
  .screens-layout,
  .contact-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.9rem;
  }

  .phone-stage {
    width: min(100%, 520px);
    min-height: 600px;
  }

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

  .screen-preview {
    position: relative;
    top: auto;
    width: min(100%, 420px);
  }

  .screen-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel .button {
    justify-self: start;
  }

  .legal-nav {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .app-nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 248, 238, 0.98);
    border: 1px solid rgba(143, 24, 56, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(82, 19, 35, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .app-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .app-nav a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .app-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .app-hero,
  .section,
  .legal-hero {
    padding: 82px 18px;
  }

  .app-hero {
    min-height: auto;
    padding-top: 118px;
    background:
      linear-gradient(180deg, rgba(255, 248, 238, 0.97), rgba(255, 248, 238, 0.9)),
      url("../assets/AsmarLoka%20Spalsh%20screen.png") center top / cover no-repeat,
      var(--cream);
  }

  .legal-hero {
    padding-top: 118px;
  }

  .soft-orbit span:nth-child(1) {
    width: 260px;
    right: -90px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-text,
  .hero-summary p,
  .section-heading p,
  .feature-card p,
  .contact-panel p {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .wordmark {
    max-width: 310px;
  }

  .phone-stage {
    min-height: 545px;
  }

  .phone-front {
    width: 272px;
    height: 520px;
  }

  .phone-back {
    width: 205px;
    height: 438px;
  }

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

  .feature-card {
    min-height: 240px;
  }

  .screen-phone {
    width: 278px;
    height: 548px;
  }

  .screen-selector {
    grid-template-columns: 1fr;
  }

  .screen-option {
    grid-template-columns: 84px 1fr;
    align-items: center;
    min-height: 98px;
  }

  .screen-option img {
    height: 76px;
  }

  .contact-panel {
    padding: 24px;
  }

  .legal-card {
    padding: 24px;
  }

  .legal-card h1 {
    font-size: 2.75rem;
  }

  .policy-actions,
  .policy-links {
    align-items: stretch;
    flex-direction: column;
  }

  .overview-fab {
    right: 14px;
    bottom: 14px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 18px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .app-brand span {
    display: none;
  }

  h1 {
    font-size: 2.62rem;
  }

  h2 {
    font-size: 2rem;
  }

  .legal-card h1 {
    font-size: 2.35rem;
  }

  .phone-stage {
    min-height: 492px;
  }

  .phone-front {
    width: 238px;
    height: 458px;
  }

  .phone-back {
    width: 184px;
    height: 392px;
  }

  .screen-phone {
    width: 246px;
    height: 486px;
  }
}

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

  .phone-stage,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
