@font-face {
  font-family: "Encode Sans Semi Expanded";
  src: url("assets/fonts/EncodeSansSemiExpanded-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050a12;
  --bg-deep: #0a1220;
  --surface: #121826;
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #e8c170;
  --accent-soft: #f0d9a0;
  --line: rgba(255, 255, 255, 0.08);
  --teal: rgba(13, 59, 54, 0.55);
  --violet: rgba(26, 18, 49, 0.4);
  --sans: "Inter", system-ui, sans-serif;
  --brand: "Encode Sans Semi Expanded", "Inter", sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --max: 1120px;
  --gutter: clamp(24px, 5vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--accent);
  color: #0a0a0a;
  padding: 8px 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px var(--gutter);
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
  font-family: var(--brand);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 2px 8px;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.lang {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 5px;
  transition: color 0.18s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--accent);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 80px var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: calc(100vh - 64px);
  background-color: #050a12;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 18, 0.62) 0%, rgba(5, 10, 18, 0.18) 32%, rgba(5, 10, 18, 0.08) 58%, rgba(5, 10, 18, 0.42) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.55) 0%, rgba(5, 10, 18, 0.22) 38%, transparent 68%),
    url("assets/hero-horizon.png");
  background-position: center, center, center bottom;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.block-head h2,
.clock-copy h2,
.watch h2,
.get h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(40px, 5.8vw, 80px);
  max-width: 14ch;
}

.hero .lede {
  max-width: 38em;
}

.lede,
.block-head p,
.clock-copy > p,
.watch p,
.get p {
  color: var(--muted);
  font-size: 17px;
  max-width: 36em;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
}

.btn-gold {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--dim);
  font-size: 13px;
}

.hero-device {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.phone {
  position: relative;
  width: min(320px, calc(100% - 88px));
  aspect-ratio: 9 / 19.4;
  padding: 11px;
  border-radius: 42px;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #05080c;
  border-radius: 12px;
  pointer-events: none;
}

.phone-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #050a12;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.phone-arrow {
  appearance: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 10, 18, 0.55);
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.phone-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.phone-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.phone-arrow-prev::before {
  transform: translate(-30%, -50%) rotate(45deg);
}

.phone-arrow-next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: none;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--accent-soft);
  background: rgba(5, 10, 18, 0.45);
  text-decoration: none;
  animation: hero-scroll-nudge 2.2s ease-in-out infinite;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  top: 46%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero-scroll:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

.slide-live {
  height: 100%;
  padding: 44px 16px 12px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d3b36 0%, #1a1231 100%);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.phone-city {
  color: var(--accent-soft);
}

.phone-kicker {
  margin: 28px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-prayer {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 600;
}

.phone-clock {
  margin: 0;
  font-family: var(--brand);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.phone-count {
  margin: 8px 0 22px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

.phone-count-label {
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
}

.phone-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.phone-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: var(--muted);
}

.phone-list li.is-next {
  color: var(--accent);
  font-weight: 600;
}

.phone-list li.is-now {
  color: var(--text);
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 8px 4px 6px;
  background: rgba(5, 10, 18, 0.45);
  border-radius: 16px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
}

.phone-tabs .is-on {
  color: var(--accent);
  font-weight: 600;
}

.slide-clock {
  height: 100%;
  padding: 72px 20px 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.55) 0%, rgba(10, 15, 30, 0.12) 42%, transparent 70%),
    #0a0f1e url("assets/standby-horizon.jpg") center bottom / cover no-repeat;
}

.slide-clock .phone-clock {
  margin-top: 36px;
}

.slide-clock .phone-prayer {
  color: var(--accent);
}

.slide-tracker {
  height: 100%;
  padding: 52px 18px 16px;
  display: flex;
  flex-direction: column;
  background: #050a12;
}

.slide-bar {
  height: 8px;
  margin: 4px 0 18px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.35);
}

.slide-bar span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

.slide-log {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-log li {
  display: flex;
  justify-content: space-between;
  padding: 14px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.slide-log .is-done {
  color: var(--text);
}

.slide-log .is-now {
  color: var(--accent);
  background: rgba(232, 193, 112, 0.12);
}

.strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.strip article {
  position: relative;
  padding: 28px 26px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.strip article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(232, 193, 112, 0) 75%);
}

.strip h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.block,
.clock,
.watch,
.get {
  scroll-margin-top: 72px;
}

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 88px;
}

.block-head h2,
.clock-copy h2,
.watch h2,
.get h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  background: var(--bg);
  padding: 28px 24px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.clock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Full-bleed wall-clock backdrop with a slow parallax pan (driven in script.js). */
.clock-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.clock-bg img {
  position: absolute;
  left: 0;
  top: -16vh;
  width: 100%;
  height: calc(100% + 32vh);
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Edge scrim darkens the area around the panel while leaving the clock clear. */
.clock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.9) 0%, rgba(5, 10, 18, 0.55) 22%, rgba(5, 10, 18, 0.18) 44%, rgba(5, 10, 18, 0) 68%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.5) 0%, rgba(5, 10, 18, 0.06) 24%, rgba(5, 10, 18, 0.12) 64%, rgba(5, 10, 18, 0.72) 100%);
}

.clock-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) var(--gutter) clamp(56px, 7vw, 96px);
}

/* Dark glass panel guarantees the copy stays readable over the photo. */
.clock-copy {
  position: relative;
  max-width: 660px;
  padding: clamp(26px, 3.6vw, 48px) clamp(24px, 4vw, 52px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(7, 12, 21, 0.88) 0%, rgba(9, 15, 26, 0.66) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.views {
  list-style: none;
  padding: 0;
  margin: 0;
}

.views li {
  display: grid;
  grid-template-columns: 140px 44px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.views span {
  color: var(--text);
  font-weight: 600;
}

.views .views-desc {
  color: var(--muted);
  font-weight: 400;
}

.views em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.horizon {
  max-width: var(--max);
  margin: 0 auto 88px;
  padding: 0 28px;
}

.horizon img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
}

.watch {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 88px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.watch figure img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.note {
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.guide-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.guide-list strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.get {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 28px 96px;
  text-align: center;
}

.get-mark {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.get h2,
.get p {
  margin-left: auto;
  margin-right: auto;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.store {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.foot {
  padding: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.brand-mini {
  display: block;
  font-family: var(--brand);
  color: var(--text);
  margin-bottom: 6px;
}

.foot p {
  margin: 0;
}

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

  .hero-scroll {
    animation: none;
  }
}

@media (min-width: 901px) {
  .hero-scroll {
    display: block;
  }
}

@media (max-width: 900px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    letter-spacing: 0.06em;
  }

  .hero,
  .watch {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 40px;
  }

  /* On narrow screens the photo becomes a backdrop; keep it lighter so the
     clock still glows around the panel. */
  .clock::after {
    background: linear-gradient(
      180deg,
      rgba(5, 10, 18, 0.55) 0%,
      rgba(5, 10, 18, 0.1) 28%,
      rgba(5, 10, 18, 0.16) 60%,
      rgba(5, 10, 18, 0.7) 100%
    );
  }

  .clock-inner {
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(48px, 7vw, 80px);
  }

  .clock-copy {
    max-width: 600px;
  }

  .hero-device {
    justify-content: center;
  }

  .strip,
  .feature-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .views li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .horizon img {
    height: 180px;
  }
}

@media (max-width: 720px) {
  .nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
  }

  .nav-links {
    display: none;
  }

  .lang-btn {
    padding: 4px;
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .brand {
    gap: 6px;
  }

  .brand span {
    display: none;
  }
}
