:root {
  color-scheme: light;
  --bg: #f5efe8;
  --bg-accent: #f0dbc2;
  --paper: #fffdf8;
  --ink: #1f1a16;
  --muted: #685f57;
  --brand: #c58a45;
  --brand-deep: #8d5a21;
  --teal: #1a8a8a;
  --line: rgba(31, 26, 22, 0.12);
  --shadow-lg: 0 28px 60px rgba(61, 39, 19, 0.15);
  --shadow-md: 0 14px 30px rgba(61, 39, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(197, 138, 69, 0.22), transparent 34%),
    radial-gradient(circle at 85% 88%, rgba(26, 138, 138, 0.15), transparent 36%),
    linear-gradient(180deg, #fff7ec 0%, var(--bg) 58%, #efe8de 100%);
  padding: 28px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -80px;
  right: -60px;
  background: var(--brand);
}

body::after {
  left: -80px;
  bottom: -80px;
  background: var(--teal);
}

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

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

img {
  max-width: 100%;
}

.hero-panel {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-row .app-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  box-shadow: 0 12px 20px rgba(114, 69, 22, 0.2);
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-deep);
}

.brand-name {
  margin: 4px 0 0;
  font-size: 0.97rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: #57493e;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a:hover {
  color: #1d1814;
  background: rgba(197, 138, 69, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 48px 30px 34px;
  background: transparent;
}

.hero-copy,
.hero-carousel {
  min-width: 0;
}

.hero-carousel {
  position: relative;
  width: min(520px, 100%);
  min-height: 590px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  overflow: hidden;
  background: transparent;
}

.hero-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 10 / 16;
  transform-style: preserve-3d;
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.7s ease;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.hero-slide--back {
  transform: translate(-50%, -45%) scale(0.72);
  opacity: 0.55;
  z-index: 0;
}

.hero-slide--left {
  transform: translate(-110%, -50%) rotateY(-35deg) scale(0.88);
  opacity: 0.8;
  z-index: 1;
}

.hero-slide--center {
  transform: translate(-50%, -50%) scale(1.14);
  opacity: 1;
  z-index: 2;
}

.hero-slide--right {
  transform: translate(10%, -50%) rotateY(35deg) scale(0.88);
  opacity: 0.8;
  z-index: 1;
}

.hero-copy h1 {
  font-family: Sora, "Segoe UI", sans-serif;
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4.7vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 680px;
}

.hero-copy > p {
  margin: 20px 0 0;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.cta-group {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.play-badge-link {
  display: inline-flex;
  line-height: 0;
}

.play-badge {
  display: block;
  width: min(220px, 100%);
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(140deg, #d4954f, #8e5820);
  box-shadow: 0 12px 24px rgba(141, 90, 33, 0.32);
}

.button-black {
  color: #ffffff;
  background: #111111;
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button.secondary {
  color: #2f261f;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 38, 31, 0.18);
}

.hero-metrics {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-md);
}

.metric-value {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.metric-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-visual {
  display: grid;
  gap: 14px;
}

.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  background: rgba(255, 254, 250, 0.86);
}

.visual-topbar {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(24, 20, 16, 0.34);
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(30, 22, 16, 0.76);
  color: #fef8ef;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 170px;
}

.visual-overlay p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.78rem;
}

.visual-overlay strong {
  display: block;
  margin-top: 2px;
  font-size: 1.02rem;
}

.feature-pill {
  background: linear-gradient(130deg, rgba(25, 22, 18, 0.95), rgba(62, 45, 27, 0.95));
  color: #f8efe3;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.feature-pill strong {
  font-size: 1.02rem;
}

.feature-pill p {
  margin: 8px 0 0;
  color: rgba(248, 239, 227, 0.84);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 22px;
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(61, 39, 19, 0.16);
}

.feature-card h2 {
  margin: 0;
  font-size: 1.18rem;
  font-family: Sora, "Segoe UI", sans-serif;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-section {
  margin-top: 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: Sora, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.screenshots {
  margin-top: 20px;
  overflow: hidden;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.screenshots-track {
  display: flex;
  gap: 0;
  transition: transform 0.42s ease;
}

.s-item {
  flex: 0 0 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  background: transparent;
}

.s-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.s-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.s-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(35, 27, 20, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.s-dot.active {
  background: var(--brand-deep);
  transform: scale(1.22);
}

.details-panel {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.detail-card h3 {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
}

.detail-card p {
  margin: 10px 0 0;
  line-height: 1.68;
  color: var(--muted);
}

.site-footer {
  margin: 24px 0 8px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(37, 28, 20, 0.14);
  background: rgba(255, 250, 241, 0.86);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.footer-heading {
  margin: 0;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: 1.2rem;
}

.footer-text {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #45382c;
  font-weight: 700;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  background: rgba(197, 138, 69, 0.15);
}

@media (max-width: 1060px) {
  .hero-content,
  .feature-grid,
  .details-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

  .hero-copy h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 820px) {
  body {
    padding: 16px;
  }

  .topbar,
  .hero-content,
  .gallery-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .metric-card {
    padding: 12px;
  }

  .visual-card {
    min-height: 280px;
  }

  .hero-carousel {
    min-height: 460px;
    overflow: visible;
  }

  .hero-slide {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    width: 100%;
    opacity: 1 !important;
    box-shadow: var(--shadow-md);
    margin: 0 auto 20px;
  }

  .hero-slide--left,
  .hero-slide--center,
  .hero-slide--right {
    transform: none !important;
  }

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

@media (max-width: 560px) {
  body {
    padding: 10px;
  }

  .hero-panel,
  .site-footer {
    border-radius: 20px;
  }

  .topbar,
  .hero-content,
  .site-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-content {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .brand-row .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 10vw, 2.2rem);
    line-height: 1.08;
  }

  .hero-copy > p {
    font-size: 0.95rem;
  }

  .cta-group {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .feature-card,
  .detail-card {
    padding: 16px;
    border-radius: 14px;
  }

  .footer-links {
    width: auto;
    gap: 8px;
    flex-wrap: wrap;
  }

  .footer-links a {
    width: auto;
    background: rgba(255, 255, 255, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.hero-copy,
.hero-visual,
.feature-card,
.detail-card,
.gallery-section,
.site-footer {
  animation: fade-up 0.6s ease both;
}

.hero-visual {
  animation-delay: 0.08s;
}

.feature-card:nth-child(1) {
  animation-delay: 0.11s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.16s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.21s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
