:root {
  color-scheme: dark;
  --ink: #fff6f0;
  --muted: #d9b6a6;
  --soft: rgba(255, 246, 240, 0.78);
  --line: rgba(255, 122, 69, 0.24);
  --deep: #140a12;
  --gold: #ffb84d;
  --orange: #ff7a45;
  --coral: #ff4d6d;
  --rose: #ff5fa2;
  --shadow: rgba(20, 8, 14, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 122, 69, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 18%, rgba(255, 95, 162, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(255, 184, 77, 0.16), transparent 24rem),
    linear-gradient(140deg, #140a12 0%, #1d0c15 50%, #26111c 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 122, 69, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 69, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 90%);
}

#tile-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  padding-bottom: 64px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 5vw, 80px);
  background: rgba(20, 10, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 122, 69, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #1a0a10;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange) 50%, var(--coral));
  box-shadow: 0 16px 42px rgba(255, 122, 69, 0.36);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding: 24px 0 64px;
}

.hero-copy {
  max-width: 790px;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #ffffff 0%, #ffd9b8 48%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 122, 69, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #1a0a10;
  background: linear-gradient(120deg, var(--gold), var(--orange) 52%, var(--coral));
  box-shadow: 0 18px 40px rgba(255, 122, 69, 0.42);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(255, 122, 69, 0.52);
}

/* ---------- Phone mockup ---------- */
.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: 280px;
  height: 568px;
  padding: 14px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a1320, #160a12);
  border: 1px solid rgba(255, 122, 69, 0.32);
  box-shadow:
    0 40px 120px rgba(20, 8, 14, 0.7),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  animation: float 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 116px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #140a12;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  padding: 38px 20px 18px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 95, 162, 0.4), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(255, 184, 77, 0.32), transparent 55%),
    linear-gradient(180deg, #221019, #160a12);
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
}

.app-status-icons {
  display: inline-flex;
  gap: 5px;
}

.app-status-icons i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 246, 240, 0.6);
}

.app-greeting {
  margin: 22px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 4px 0 22px;
}

.app-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.app-label {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 246, 240, 0.55);
  letter-spacing: 0.01em;
}

.app-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(20, 8, 14, 0.55);
}

.i1 { background: linear-gradient(140deg, #ffb84d, #ff7a45); }
.i2 { background: linear-gradient(140deg, #ff7a45, #ff4d6d); }
.i3 { background: linear-gradient(140deg, #ff4d6d, #ff5fa2); }
.i4 { background: linear-gradient(140deg, #ff5fa2, #ffb84d); }
.i5 { background: linear-gradient(140deg, #ff9a3d, #ff5fa2); }
.i6 { background: linear-gradient(140deg, #ff4d6d, #ffb84d); }

.app-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.app-tabbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 246, 240, 0.28);
}

.app-tabbar span.active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(20px, 5vw, 80px);
  border-top: 1px solid rgba(255, 122, 69, 0.12);
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.7;
  background: rgba(20, 10, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-sep {
  opacity: 0.4;
}

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

@media (max-width: 880px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 36px;
  }

  .phone-stage {
    margin-top: 8px;
  }
}

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

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

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