/* The landing page at shiftdex.app/ (public/landing.html). Purple Night colors, matching the app. */
:root {
  --bg: #0b0a10;
  --card: #1a1a1e;
  --border: #2a2a31;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #7c3aed;
  --accent-soft: #a78bfa;
  --radius: 16px;
  --side: 24px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Inter, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--side);
}

/* --- navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--side);
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(11, 10, 16, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

/* --- buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  background: #8b4cf2;
}

.button:active {
  transform: scale(0.97);
}

.button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.button.ghost {
  background: var(--card);
  border: 1px solid var(--border);
}

.button.ghost:hover {
  background: #232329;
}

.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

/* --- type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .bar {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.eyebrow.center {
  justify-content: center;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 900;
}

h2 {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 850;
  margin-bottom: 16px;
}

h3 {
  font-size: 19px;
  font-weight: 750;
  margin-bottom: 8px;
}

.center {
  text-align: center;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: #d4d4d8;
  max-width: 34em;
  margin: 20px 0 28px;
}

.section-text p:not(.eyebrow) {
  color: #d4d4d8;
  font-size: 18px;
  max-width: 32em;
}

.fine {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- hero */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.phones {
  position: relative;
  height: 560px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.phone {
  margin: 0;
  border-radius: 34px;
  border: 8px solid #26262d;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top; /* the screenshots are a little wider than the frame: keep their left edge (titles) */
}

.phones .phone {
  position: absolute;
  width: 62%;
  aspect-ratio: 9 / 19.5;
}

.phones .front {
  left: 0;
  bottom: 0;
  transform: rotate(-4deg);
}

.phones .back {
  right: 0;
  top: 0;
  transform: rotate(5deg);
  opacity: 0.9;
}

/* --- cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat {
  display: block;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* --- cost of ownership */
.ownership {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 72px 0;
}

.tco {
  display: grid;
  gap: 16px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tco .big {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.specs div {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.specs .stat {
  font-size: 18px;
}

.tco .example {
  font-size: 12px;
  color: #71717a;
}

/* --- features */
.features {
  padding: 72px 0;
}

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

/* --- meets */
.meets {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 72px 0;
}

.phone.single {
  width: min(300px, 80%);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
}

.meets .button {
  margin-top: 8px;
}

/* --- final call */
.final {
  text-align: center;
  padding: 88px 0 96px;
}

.final p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
}

/* --- footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px var(--side) max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer a {
  text-decoration: none;
}

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

/* --- scroll-in motion (only when landing.js adds .animate, so nothing hides without the script) */
.animate .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate .reveal.shown {
  opacity: 1;
  transform: none;
}

/* --- wider screens */
@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  :root {
    --side: 32px;
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
    padding: 88px 0 104px;
  }
  .phones {
    height: 620px;
  }
  .ownership {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .meets {
    grid-template-columns: 1fr 1.1fr;
  }
}

@media (max-width: 420px) {
  .phones {
    height: 470px;
  }
  .specs .stat {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
