:root {
  --bg: #f0f4fb;
  --bg-elevated: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.22);
  --gold: #d97706;
  --gold-soft: rgba(217, 119, 6, 0.12);
  --line: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1080px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

code {
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

#main {
  padding-top: var(--header-h);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(145deg, #3b82f6, var(--accent-dark));
  color: #fff;
  border-color: rgba(30, 64, 175, 0.35);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border-color: rgba(37, 99, 235, 0.25);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #e8efff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    justify-self: center;
  }
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  background: #1e1b4b;
}

.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero__visual--motion {
  animation: hero-wrap-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__visual--motion .hero__figure {
  animation: hero-card-float 7s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.hero__visual--motion .hero__img {
  animation: hero-img-drift 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-wrap-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-card-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-0.6deg);
  }
}

@keyframes hero-img-drift {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.04) translate3d(0, -1.5%, 0);
  }
}

.section {
  padding: 64px 0;
}

.section--tight {
  padding-top: 48px;
}

.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 36px;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section__title--small {
  font-size: 1.15rem;
}

.section__intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.gallery {
  display: block;
}

.gallery__item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
  border: 1px solid var(--line);
}

.gallery__phones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.gallery__item--phone {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: min(480px, 52vh);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  animation: gallery-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery__item--phone:nth-child(1) {
  animation-delay: 0.06s;
}

.gallery__item--phone:nth-child(2) {
  animation-delay: 0.12s;
}

.gallery__item--phone:nth-child(3) {
  animation-delay: 0.18s;
}

.gallery__item--phone:nth-child(4) {
  animation-delay: 0.24s;
}

.gallery__item--phone:nth-child(5) {
  animation-delay: 0.3s;
}

.gallery__item--phone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.18);
}

@media (max-width: 900px) {
  .gallery__phones {
    display: flex;
    gap: 12px;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }

  .gallery__item--phone {
    flex: 0 0 min(28vw, 200px);
    max-height: none;
    height: min(62vh, 480px);
    scroll-snap-align: start;
  }

  .gallery__item--phone:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .gallery__item--phone {
    flex: 0 0 min(42vw, 220px);
    height: min(58vh, 440px);
    scroll-snap-align: center;
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery__item--fallback {
  position: relative;
  background: linear-gradient(160deg, #dbeafe, #bfdbfe);
}

.gallery__item--fallback img {
  display: none;
}

.gallery__item--fallback::after {
  content: "Screenshot";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .feature-grid,
  .feature-grid--pair {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.section--alt .feature-card {
  background: var(--bg);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill-list li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .split-panel {
    grid-template-columns: 1fr;
  }
}

.split-panel__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.clock-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #1e3a8a, #172554);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.clock-card__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 16px;
}

.clock-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clock-card__list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.clock-card__list li:last-child {
  border-bottom: 0;
}

.clock-card__tz {
  color: #94a3b8;
  font-size: 14px;
}

.cta-band {
  background: linear-gradient(120deg, #1e40af, #312e81);
  color: #f1f5f9;
  text-align: center;
}

.cta-band__inner {
  padding: 8px 0;
}

.cta-band__title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.cta-band__text {
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
}

.section--legal {
  padding-bottom: 80px;
}

.section--legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 720px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual--motion,
  .hero__visual--motion .hero__figure,
  .hero__visual--motion .hero__img,
  .gallery__item--phone {
    animation: none !important;
    animation-delay: 0s !important;
  }

  .hero__visual--motion .hero__figure,
  .hero__visual--motion .hero__img {
    transform: none !important;
    will-change: auto;
  }

  .gallery__item--phone {
    transition-duration: 0.01ms !important;
  }

  .gallery__item--phone:hover {
    transform: none !important;
  }
}
