:root {
  --blue-light: #5cadff;
  --blue-dark: #0d45c7;
  --blue-shadow: rgba(13, 69, 199, 0.35);
  --green-light: #4dc780;
  --green-dark: #1a8c52;
  /* Sky gradient — sampled from startup-animation.mp4 */
  --sky-top: #afd7f0;
  --sky-mid: #edf5ff;
  --sky-bottom: #eef4f6;
  --sky-glow: rgba(92, 173, 255, 0.35);
  --bg-top: var(--sky-top);
  --bg-bottom: var(--sky-bottom);
  --text: #1a1f2e;
  --text-muted: #5c6578;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.95);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(13, 69, 199, 0.12);
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.startup-open {
  overflow: hidden;
}

.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, var(--sky-glow), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%);
  cursor: pointer;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.startup-overlay.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-stage {
  position: relative;
  width: min(100vw, calc(100vh * 853 / 1844));
  height: min(100vh, calc(100vw * 1844 / 853));
  max-height: 100vh;
}

.startup-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.startup-headline {
  position: absolute;
  top: 10.5%;
  left: 7%;
  right: 7%;
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.08rem, 4.8vw, 1.58rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  -webkit-text-stroke: 0.45px rgba(13, 69, 199, 0.42);
  paint-order: stroke fill;
  text-shadow:
    -1px -1px 0 rgba(13, 69, 199, 0.38),
    1px -1px 0 rgba(13, 69, 199, 0.38),
    -1px 1px 0 rgba(13, 69, 199, 0.38),
    1px 1px 0 rgba(13, 69, 199, 0.38),
    0 3px 16px rgba(13, 69, 199, 0.32);
  pointer-events: none;
}

.startup-phone-label {
  position: absolute;
  top: 28.5%;
  left: 21%;
  right: 21%;
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(0.82rem, 3.4vw, 1.08rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}

@media (max-width: 640px) {
  .startup-headline {
    top: 9.5%;
    left: 5%;
    right: 5%;
    font-size: clamp(1rem, 5.2vw, 1.28rem);
  }

  .startup-phone-label {
    top: 27.5%;
    left: 18%;
    right: 18%;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, var(--sky-glow), transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.72);
  border-bottom: 1px solid rgba(13, 69, 199, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  box-shadow: 0 12px 28px var(--blue-shadow);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(180deg, #fff, #eceff4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

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

.icon-showcase {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.icon-showcase-glow {
  position: absolute;
  inset: 8%;
  border-radius: 32%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 220, 100, 0.45), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(255, 80, 160, 0.35), transparent 45%),
    radial-gradient(circle, rgba(92, 173, 255, 0.28), transparent 68%);
  filter: blur(18px);
}

.icon-showcase-image {
  position: relative;
  width: 72%;
  height: auto;
  border-radius: 22%;
  box-shadow:
    0 32px 64px rgba(13, 69, 199, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.icon-screen {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(92, 173, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #eef5ff, #f8fbff);
}

.icon-in-phone {
  width: 52%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 12px 28px rgba(13, 69, 199, 0.2);
  object-fit: contain;
}

.phone-screen img:not(.icon-in-phone),
.phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.screenshot-card .phone-screen img,
.screenshot-card .phone-screen video {
  image-rendering: -webkit-optimize-contrast;
}

.phone-frame {
  width: min(290px, 100%);
  aspect-ratio: 402 / 874;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2f3a, #0f1117);
  box-shadow:
    0 40px 80px rgba(13, 69, 199, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 24px;
  border-radius: 999px;
  background: #0f1117;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
}

.section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header.align-left {
  text-align: left;
  margin: 0 0 24px;
}

.contact-cta {
  margin-top: 24px;
}

.btn.full-width {
  width: 100%;
}

.legal-summary {
  padding-top: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.legal-block h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.legal-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.disclaimer {
  padding-top: 18px;
  border-top: 1px solid rgba(13, 69, 199, 0.08);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-page {
  padding: 48px 0 56px;
}

.legal-document h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal-document h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-document h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.legal-document p,
.legal-document li {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.legal-document ul {
  padding-left: 1.25rem;
  margin-bottom: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--blue-dark);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.featured-video {
  display: flex;
  justify-content: center;
  padding: 0 0 48px;
  max-width: 960px;
  margin: 0 auto;
}

.featured-video .phone-frame {
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
}

.featured-video .phone-frame::before {
  content: none;
}

.featured-video .phone-screen {
  border-radius: 32px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.screenshot-card {
  width: 100%;
  max-width: 402px;
  text-align: center;
}

.screenshot-card .phone-frame {
  width: 100%;
  margin: 0 auto;
  padding: 12px;
  border-radius: 42px;
}

.screenshot-card .phone-frame::before {
  content: none;
}

.screenshot-card .phone-screen {
  border-radius: 32px;
}

.screenshot-card figcaption {
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Center the lone last card when the grid has an odd count. */
.screenshot-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* CSS mock screens */
.mock-ui {
  height: 100%;
  padding: 46px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 10px;
}

.mock-title {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.mock-subtitle {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.mock-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(13, 69, 199, 0.08);
}

.mock-photo-area {
  position: relative;
  flex: 1;
  min-height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("assets/landscapes.jpg") center / cover;
  box-shadow: inset 0 0 0 2px #000;
}

.mock-crop-frame {
  position: absolute;
  inset: 22% 18%;
  border: 2px solid white;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.42);
}

.mock-crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
}

.mock-crop-handle.tl { top: -5px; left: -5px; }
.mock-crop-handle.tr { top: -5px; right: -5px; }
.mock-crop-handle.bl { bottom: -5px; left: -5px; }
.mock-crop-handle.br { bottom: -5px; right: -5px; }

.mock-arrows {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mock-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}

.mock-arrow.dim {
  background: linear-gradient(180deg, #fff, #eceff4);
  color: var(--text);
}

.mock-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.mock-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  color: white;
  font-size: 9px;
}

.mock-btn.cancel {
  color: var(--text);
  background: linear-gradient(180deg, #fff, #eceff4);
}

.mock-btn.confirm {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
}

.mock-dither-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.mock-pill {
  padding: 6px 2px;
  border-radius: 10px;
  text-align: center;
  font-size: 7px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #eceff4);
}

.mock-pill.active {
  color: white;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
}

.mock-slider {
  height: 4px;
  border-radius: 999px;
  background: #d8e2f2;
  position: relative;
  margin: 8px 0;
}

.mock-slider::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.mock-led-preview {
  aspect-ratio: 96 / 36;
  width: 100%;
  background:
    url("assets/landscapes.jpg") center / cover;
  image-rendering: pixelated;
  filter: contrast(1.15) saturate(0.9);
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 4px #8a8a8a;
}

.mock-badge {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: #d97706;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(13, 69, 199, 0.08);
  margin-top: 14px;
  padding-top: 14px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(92, 173, 255, 0.18), rgba(13, 69, 199, 0.12));
  font-size: 1.1rem;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
}

.contact-list span,
.contact-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(13, 69, 199, 0.08);
}

@media (max-width: 980px) {
  .hero,
  .support-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    max-width: 100%;
    gap: 32px;
  }

  .screenshot-card,
  .featured-video .phone-frame {
    max-width: min(402px, 100%);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 42px;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card,
  .featured-video .phone-frame {
    max-width: min(360px, 100%);
  }
}
