:root {
  --bg: #fff1df;
  --surface: #fff7ef;
  --surface-strong: #ffffff;
  --surface-dark: #a5431a;
  --ink: #351b12;
  --muted: #765142;
  --accent: #ff9f1c;
  --accent-deep: #e85d04;
  --line: rgba(53, 27, 18, 0.13);
  --shadow: 0 24px 70px rgba(120, 52, 16, 0.14);
}

[data-theme="dark"] {
  --bg: #110906;
  --surface: #1a100c;
  --surface-strong: #20130e;
  --surface-dark: #130c09;
  --ink: #fff7f0;
  --muted: #e3c8b9;
  --accent: #ffb15c;
  --accent-deep: #ff7a1a;
  --line: rgba(89, 55, 38, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 177, 92, 0.28), transparent 28rem),
    radial-gradient(circle at left top, rgba(232, 93, 4, 0.18), transparent 24rem),
    radial-gradient(circle at 20% 95%, rgba(0, 185, 212, 0.12), transparent 22rem),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: rgba(232, 93, 4, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

table,
iframe,
video {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 247, 239, 0.9);
  border-bottom: 1px solid rgba(53, 27, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.brand-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 5vw, 44px);
  height: clamp(38px, 5vw, 44px);
  max-width: 44px;
  max-height: 44px;
  border-radius: clamp(11px, 1.6vw, 14px);
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(16, 34, 45, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
}

.top-nav a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 160ms ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.top-nav a.is-active {
  color: var(--ink);
}

.top-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(13, 48, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(13, 48, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.top-nav a:hover,
.footer-links a:hover { color: var(--accent-deep); }

[data-theme="dark"] body {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 26, 0.2), transparent 28rem),
    radial-gradient(circle at left top, rgba(255, 177, 92, 0.12), transparent 24rem),
    var(--bg);
}

[data-theme="dark"] .site-header {
  background: rgba(19, 12, 9, 0.92);
  border-bottom-color: rgba(89, 55, 38, 0.78);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .menu-toggle {
  background: rgba(32, 19, 14, 0.96);
  border-color: rgba(89, 55, 38, 0.78);
}

[data-theme="dark"] .hero-app-badge,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .journey-card,
[data-theme="dark"] .legal-card,
[data-theme="dark"] .store-button,
[data-theme="dark"] .phone-card {
  background: var(--surface-strong);
}

[data-theme="dark"] .mock-map,
[data-theme="dark"] .gallery-shot,
[data-theme="dark"] .video-placeholder {
  background: linear-gradient(135deg, rgba(71, 31, 14, 0.96), rgba(255, 122, 26, 0.9));
}

[data-theme="dark"] .mock-pill,
[data-theme="dark"] .mock-badge {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

[data-theme="dark"] .chat-bubble.light {
  background: rgba(239, 252, 255, 0.08);
}

[data-theme="dark"] .section-alt {
  background: rgba(32, 19, 14, 0.78);
}

[data-theme="dark"] .footer-links,
[data-theme="dark"] .footer-meta,
[data-theme="dark"] .logo-strip-inner {
  color: var(--muted);
}

[data-theme="dark"] .placeholder-icon {
  border-color: rgba(89, 55, 38, 0.78);
  color: var(--muted);
}

.hero { padding: 5.5rem 0 3rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-grid {
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.compact-actions {
  margin: 0;
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.stack-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stack-card strong {
  display: block;
  margin: 0.25rem 0 0.45rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

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

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: #a5431a;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-parallax-layer {
  --parallax-y: 0px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.1);
  color: #a5431a;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.light {
  background: rgba(255, 255, 255, 0.14);
  color: #c4fbff;
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .eyebrow.light {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

.hero h1,
.section-heading h2,
.cta-card h2,
.trust-grid h2,
.legal-content h1 {
  margin: 0.9rem 0;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: min(100%, 420px);
  padding: 0.8rem 1rem;
  margin: 1rem 0 0.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 48, 66, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-app-icon {
  display: block;
  width: clamp(60px, 8vw, 72px) !important;
  height: clamp(60px, 8vw, 72px) !important;
  max-width: 72px !important;
  max-height: 72px !important;
  min-width: 60px;
  min-height: 60px;
  aspect-ratio: 1;
  border-radius: clamp(18px, 2.5vw, 22px);
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(16, 34, 45, 0.18);
}

.placeholder-icon {
  display: grid;
  place-items: center;
  padding: 0.9rem;
  background:
    linear-gradient(145deg, rgba(255, 177, 92, 0.24), rgba(232, 93, 4, 0.18)),
    var(--surface-strong);
  border: 1px dashed rgba(13, 48, 66, 0.18);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

[data-theme="dark"] .hero-app-icon,
[data-theme="dark"] .hero-app-badge {
  border-color: rgba(89, 55, 38, 0.78);
}

.hero-app-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f05d00;
}

[data-theme="dark"] .hero-app-label {
  color: #ffb15c;
}

.hero-app-name {
  display: block;
  max-width: 18ch;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.trust-grid p,
.hero-note { color: var(--muted); max-width: 60ch; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.store-button {
  min-width: 196px;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 126, 34, 0.35);
}

.store-button.is-disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.store-button.is-disabled:hover {
  transform: none;
  border-color: var(--line);
}

.store-button.primary {
  background: linear-gradient(135deg, #e85d04, #ff9f1c);
  color: white;
}

[data-theme="dark"] .store-button.primary {
  background: linear-gradient(135deg, #ff7a1a, #ffb15c);
}

.store-label { font-size: 0.78rem; opacity: 0.78; }

.hero-visual { position: relative; min-height: 520px; }

.phone-card {
  position: absolute;
  width: min(100%, 290px);
  background: var(--surface-strong);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(16, 34, 45, 0.14);
  border: 1px solid rgba(16, 34, 45, 0.06);
  overflow: hidden;
}

.phone-card.tall { left: 0; top: 0; }
.phone-card.offset { right: 0; top: 5rem; }
.phone-status { height: 28px; background: linear-gradient(90deg, #e85d04, #ff9f1c); }
.phone-content { padding: 1.2rem; }

[data-theme="dark"] .phone-status {
  background: linear-gradient(90deg, #ff7a1a, #ffb15c);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.hero {
  position: relative;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: 8%;
  top: 2rem;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.24), transparent 70%);
  animation: pulseGlow 7s ease-in-out infinite;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(255, 177, 92, 0.18), transparent 70%);
}

.hero::after {
  width: 180px;
  height: 180px;
  left: 3%;
  bottom: 1rem;
  background: radial-gradient(circle, rgba(255, 159, 28, 0.24), transparent 70%);
  animation: pulseGlow 8s ease-in-out infinite reverse;
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2), transparent 70%);
}

.mock-pill,
.mock-badge {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff0d8;
  color: #d65f00;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-map,
.gallery-shot,
.video-placeholder {
  border-radius: 22px;
  background: linear-gradient(135deg, #ff9f1c, #fff4a6);
}

.mock-map { height: 140px; margin: 1rem 0; }
.mock-list { display: grid; gap: 0.75rem; }

.mock-row,
.chart-bar,
.chart-bar.small {
  height: 14px;
  border-radius: 999px;
  background: rgba(16, 34, 45, 0.1);
}

.mock-row.short { width: 72%; }

.chat-bubble {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.chat-bubble.dark { background: #a5431a; color: white; }
[data-theme="dark"] .chat-bubble.dark { background: #471f0e; color: #ffe0c0; }
.chat-bubble.light { background: #effcff; }
.chart-bar { margin-top: 1rem; }
.chart-bar.small { width: 55%; margin-top: 0.65rem; }

.mock-map,
.gallery-shot,
.video-placeholder,
.cta-card,
.trust-card,
.feature-card,
.journey-card,
.gallery-card {
  position: relative;
  overflow: hidden;
}

.mock-map::after,
.gallery-shot::after,
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 30%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shimmerSweep 6.5s ease-in-out infinite;
}

.logo-strip { padding: 1rem 0 0; }

.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  text-align: center;
  color: #3e5663;
  font-weight: 600;
}

.section { padding: 5rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.62); }
.section-dark { background: linear-gradient(135deg, #a5431a, #e85d04); color: white; }
[data-theme="dark"] .section-dark {
  background: linear-gradient(135deg, #130c09, #471f0e);
  color: var(--ink);
}
.section-heading { margin-bottom: 2rem; }

.feature-grid,
.gallery-grid,
.journey-grid { display: grid; gap: 1rem; }

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

.feature-card,
.gallery-card,
.journey-card,
.trust-card,
.legal-card {
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.gallery-shot { height: 280px; }
.gradient-one { background: linear-gradient(160deg, #a5431a, #ffb100); }
.gradient-two { background: linear-gradient(160deg, #fff28d, #ff9f1c); }
.gradient-three { background: linear-gradient(160deg, #ff9f1c, #fff7ef); }
.video-card { background: linear-gradient(160deg, rgba(232, 93, 4, 0.08), rgba(255, 152, 0, 0.12)); }

[data-theme="dark"] .gradient-one { background: linear-gradient(160deg, #471f0e, #ff7a1a); }
[data-theme="dark"] .gradient-two { background: linear-gradient(160deg, #2a160d, #471f0e); }
[data-theme="dark"] .gradient-three { background: linear-gradient(160deg, #471f0e, #ffe0c0); }
[data-theme="dark"] .video-card {
  background: linear-gradient(160deg, rgba(18, 49, 74, 0.34), rgba(169, 184, 255, 0.16));
}

.video-placeholder {
  height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.play-button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  background: #e85d04;
  color: white;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .play-button {
  background: #ff7a1a;
  color: #fff7f0;
}

.journey-card ol { margin: 1rem 0 0; padding-left: 1.2rem; }
.journey-card li + li { margin-top: 0.65rem; }

.check-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-deep);
}

.compact-list {
  gap: 0.65rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.trust-cards { display: grid; gap: 1rem; }

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.cta-section { padding-top: 0; }

.cta-card {
  padding: 2rem;
  border-radius: 32px;
  background: linear-gradient(145deg, #e85d04, #a5431a);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

[data-theme="dark"] .cta-card {
  background: linear-gradient(145deg, #130c09, #471f0e);
  color: var(--ink);
}

[data-theme="dark"] .stack-card {
  background: var(--surface-strong);
}

[data-theme="dark"] .status-chip {
  background: rgba(255, 177, 92, 0.16);
  color: #ffe0c0;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(16, 34, 45, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
  gap: 1.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.footer-meta { margin-top: 1.5rem; color: var(--muted); }

.legal-shell { min-height: 100vh; }
.legal-main { padding: 4rem 0; }
.legal-card { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--muted); }

.js-reveal-ready .reveal-target {
  opacity: 0;
  transform: translate3d(0, calc(26px + var(--parallax-y, 0px)), 0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js-reveal-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

.delayed-float {
  animation-delay: 1.2s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes shimmerSweep {
  0%,
  70%,
  100% {
    transform: translateX(-120%);
  }
  85% {
    transform: translateX(120%);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .js-reveal-ready .reveal-target,
  .js-reveal-ready .reveal-target.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 1051px) {
  .happy-people-card {
    animation: fadeInScale 0.9s ease-out forwards;
  }
  
  .js-reveal-ready .happy-people-card {
    opacity: 0;
    animation: fadeInScale 0.9s ease-out forwards;
    animation-delay: var(--reveal-delay, 0ms);
  }
  
  .js-reveal-ready .happy-people-card.is-visible {
    animation: fadeInScale 0.9s ease-out forwards;
    animation-delay: 0ms;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .trust-grid,
  .footer-grid,
  .cta-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 640px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .top-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 48, 66, 0.08);
    box-shadow: var(--shadow);
  }
  .top-nav.is-open {
    display: flex;
  }
  .top-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: rgba(232, 93, 4, 0.06);
  }
  .top-nav a::after {
    display: none;
  }
  [data-theme="dark"] .top-nav {
    background: rgba(17, 17, 19, 0.98);
    border-color: rgba(42, 52, 64, 0.92);
  }
  [data-theme="dark"] .top-nav a {
    background: rgba(255, 255, 255, 0.04);
  }
  .hero { padding-top: 3.5rem; }
  .hero-grid,
  .journey-grid,
  .feature-grid,
  .gallery-grid,
  .logo-strip-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 760px; }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .store-button {
    flex: 1 1 100%;
  }
  .phone-card {
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  .phone-card.offset,
  .phone-card.tall {
    left: auto;
    right: auto;
    top: auto;
    margin-top: 1rem;
  }
  .download-actions.compact { width: 100%; }
  .store-button { flex: 1 1 100%; }
  .hero-app-badge {
    width: 100%;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - max(1rem, env(safe-area-inset-left) + env(safe-area-inset-right)), 1120px); }
  .header-inner {
    gap: 0.55rem;
    min-height: 64px;
  }
  .brand {
    font-size: 1.08rem;
    letter-spacing: 0.015em;
  }
  .brand-with-mark { gap: 0.5rem; }
  .brand-mark {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 11px;
  }
  .theme-toggle {
    padding: 0.7rem;
    justify-content: center;
  }
  .theme-toggle span:last-child {
    display: none;
  }
  .hero {
    padding-top: 2.75rem;
  }
  .hero h1 {
    max-width: 100%;
  }
  .hero-app-badge {
    padding: 0.7rem;
    border-radius: 20px;
  }
  .hero-app-icon {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    min-width: 58px;
    min-height: 58px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  body { font-size: 0.96rem; }

  .store-buttons,
  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .store-button,
  .primary-button,
  .secondary-button {
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 10px;
  }
  .hero-app-icon {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    min-width: 52px;
    min-height: 52px;
    border-radius: 16px;
  }
  .menu-toggle,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ===== GALLERY STYLES (moved from inline <style>) ===== */
.zanzibar-gallery-section {
  position: relative;
  overflow: hidden;
}
.zanzibar-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(39, 214, 226, 0.14), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 183, 77, 0.12), transparent 28%);
}
.zanzibar-gallery-intro {
  max-width: 760px;
}
.zanzibar-gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.zanzibar-place-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
}
.zanzibar-place-card:nth-child(2),
.zanzibar-place-card:nth-child(5),
.zanzibar-place-card:nth-child(7) {
  min-height: 430px;
}
.zanzibar-place-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 650ms ease, filter 650ms ease;
}
.zanzibar-place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 20, 0.04) 0%, rgba(5, 12, 20, 0.32) 42%, rgba(5, 12, 20, 0.92) 100%);
}
.zanzibar-place-card:hover img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.04);
}
.zanzibar-place-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
  color: #ffffff;
}
.zanzibar-place-copy span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.zanzibar-place-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
}
.zanzibar-place-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
  font-size: 0.95rem;
}
@media (max-width: 1050px) {
  .zanzibar-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .zanzibar-gallery-grid {
    grid-template-columns: 1fr;
  }
  .zanzibar-place-card,
  .zanzibar-place-card:nth-child(2),
  .zanzibar-place-card:nth-child(5),
  .zanzibar-place-card:nth-child(7) {
    min-height: 340px;
  }
}

.top-cta-strip {
    position: fixed;
    top: 72px; 
    left: 0;
    right: 0;
    z-index: 19;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    padding: 0.6rem 1rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.top-cta-strip-inner {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
}
.top-cta-strip-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.top-cta-strip a {
    padding: 0.4rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: white;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Class to hide the strip when reaching Hotels section */
.top-cta-strip.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}