:root {
  --bg: #0f1115;
  --surface: #16181f;
  --surface-2: #1e212b;
  --text: #e2e8f0;
  --text-sec: #94a3b8;
  --accent: #2dd4bf;
  --accent-dim: #0f766e;
  --review-gold: #e0b700;
  --review-gold-dim: #d0a300;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header {
  position: relative;
  text-align: center;
  margin-bottom: 5rem;
  padding: 12rem 2rem 12rem;
  background: var(--bg)
    url("https://play-lh.googleusercontent.com/LMDs_vJP-gpUxQ6JbaKrohPrgesqFaukgXSXYJQ12qegTd7KudieOyLf1Fq3rpS2cfM=w3840-h2160-rw")
    center/cover no-repeat;
  border-radius: 0 0 32px 32px;
  /* Soft curve at bottom */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 17, 21, 0.65),
    rgba(15, 17, 21, 0.9) 60%
  );
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

h1 {
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
  font-size: clamp(4rem, 14vw, 8rem);
  font-family: "Playfair Display";
}

.tagline {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  font-size: 1.5rem;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  margin: 4rem 0 2.5rem;
  text-align: center;
}

h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: white;
  margin: 4rem 0 2.5rem;
  text-align: center;
}

h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 4rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--accent);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.app-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--surface-2);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-dim);
}

.app-content {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.app-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0 auto 1.4rem;
  display: block;
  transition: transform 0.25s ease;
}

.app-card:hover .app-logo {
  transform: scale(1.08);
}

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

.app-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.app-desc {
  font-size: 1.05rem;
  color: var(--text-sec);
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

/* Screenshots */
.app-screenshot-container {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin: 2rem auto;
  border-radius: 24px;
}

.app-screenshot-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(var(--translate-x, 0));
  width: max-content;
}

.screenshot-nav-button {
  display: flex;
  position: absolute;

  top: calc(50% - 45px);

  justify-content: center;
  align-items: center;

  background-color: var(--accent);

  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 90px;
  height: 90px;

  transition:
    transform 0.08s ease,
    background-color 0.2s ease,
    box-shadow 0.25s ease;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.screenshot-nav-button:hover {
  transform: scale(1.1);
  background-color: var(--accent-dim);

  box-shadow:
    0 8px 24px var(--accent-dim),
    0 2px 8px var(--accent-dim);
}

.screenshot-nav-button:active {
  background-color: var(--surface-2);
  box-shadow:
    0 8px 24px var(--accent),
    0 2px 8px var(--accent);
  transform: scale(0.86);
}

.app-screenshot {
  flex: 0 0 296px;
  height: 526px;
  margin-right: 16px;
  border-radius: 24px;
  overflow: hidden;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.app-screenshot:last-child {
  margin-right: 0;
}

.app-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-screenshot:hover {
  transform: scale(1.04);
}
.app-screenshot:hover {
  transform: scale(1.04);
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.06);
}

.store-badge img {
  height: 64px;
  width: auto;
}

footer {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--surface-2);
  color: var(--text-sec);
  font-size: 0.95rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #5eead4;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0 1rem;
}

.navbar a,
.navbar p {
  display: flex;
  color: white;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  padding: 0.8rem 1.2rem;
  transition: all 0.3s;
  align-items: center;
}

.navbar p {
  background: var(--bg);
}

.navbar a:hover {
  color: var(--accent);
  background: var(--surface-2);
  border-radius: 12px;
}

.navbar .logo {
  font-weight: bold;
  margin-right: 2rem;
}

/* Review cards/quote */
.review-card {
  background-color: var(--bg);
  border-radius: 32px;
  border: 3px solid var(--review-gold);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(224, 183, 0, 0.15);
  margin: 6px;
  transition:
    transform 0.2s ease,
    border-width 0.2s ease,
    background-color 0.1s ease;
}

.review-card:hover {
  transform: scale(1.06);
  border-width: 6px;
  background-color: var(--surface-2);
}

.review-card .name {
  color: var(--text-sec);
  font-size: 1.35rem;
  margin-left: 30px;
  margin-top: 8px;
  float: left;
}

.review-card .rating {
  display: flex;
  justify-content: center;
  color: #ffdf00;
  font-size: 2.4rem;
  clear: both;
}

.review-card p {
  color: #ffffff;
  margin-bottom: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.carousel-dot.active {
  width: 28px;
  background: var(--accent);

  box-shadow: 0 0 8px var(--accent-dim);
}

.carousel-dot:active {
  transform: scale(0.85);
}

@media (max-width: 768px) {
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar {
    height: 120px;
  }

  .navbar li {
    margin: 0.5rem;
  }

  header {
    padding: 8rem 1.5rem 9rem;
  }

  h1 {
    font-size: clamp(3.2rem, 11vw, 5.5rem);
  }

  .container {
    padding: 2rem 1rem 5rem;
  }

  .navbar a,
  .navbar p {
    font-size: 1.05rem;
    padding: 0.5rem 0.9rem;
  }

  .app-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
}
