:root {
  color-scheme: light;
  --ink: #1b2a2e;
  --muted: #4d5b5f;
  --accent: #0f766e;
  --accent-2: #f59e0b;
  --card: rgba(255, 255, 255, 0.78);
  --border: rgba(27, 42, 46, 0.12);
  --shadow: 0 20px 50px rgba(27, 42, 46, 0.15);
  --radius: 20px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: radial-gradient(circle at 20% 20%, #f9f3e8, #e9f5f1 45%, #f4f7fb 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0.35;
  z-index: -1;
}

body::before {
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  top: -160px;
  left: -120px;
}

body::after {
  background: radial-gradient(circle, #0f766e 0%, transparent 70%);
  bottom: -180px;
  right: -120px;
}

body.theme-vendor {
  --accent: #b45309;
}

body.theme-delivery {
  --accent: #1d4ed8;
}

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

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.4px;
}

.home-link {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  margin: 0;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(27, 42, 46, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
}

.button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.card .button {
  margin-top: auto;
  width: fit-content;
}

.app-card {
  max-width: 620px;
  margin-top: 54px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.app-card h1 {
  margin: 10px 0 12px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.app-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.status {
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 12px;
}

.footer {
  margin-top: 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

.animate {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 620ms ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .app-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .card:hover {
    transform: none;
  }
}
