:root {
  --brand: #176166;
  --brand-bright: #298580;
  --brand-soft: rgba(23, 97, 102, 0.13);
  --gold: #b88c42;
  --ink: #1c2426;
  --ink-soft: #4a5558;
  --muted: #6b7678;
  --line: rgba(23, 97, 102, 0.14);
  --white: #ffffff;
  --max: 1120px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #e7eef0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
}

.alpine {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.alpine picture,
.alpine picture img,
.alpine > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.alpine-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.38) 48%,
    rgba(255, 255, 255, 0.58) 100%
  );
}
.alpine-mark {
  position: absolute;
  right: 8px;
  bottom: 72px;
  width: 168px;
  height: 168px;
  opacity: 0.14;
}

@media (min-width: 860px) {
  .alpine-veil {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.58) 50%,
      rgba(255, 255, 255, 0.78) 100%
    );
  }
  .alpine-mark {
    right: 28px;
    bottom: 36px;
    width: 220px;
    height: 220px;
    opacity: 0.10;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand);
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}
.nav-brand strong {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}
.nav-brand span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-cta {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 8px 18px rgba(23, 97, 102, 0.28);
}

.hero {
  padding: 48px 0 0;
  overflow: clip;
}
.hero-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
}
.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.16));
}
.brand-hero {
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--brand);
  margin-bottom: 18px;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0 auto 14px;
}
.hero-lead {
  max-width: 38rem;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.14rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 10px 22px rgba(23, 97, 102, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 97, 102, 0.34);
}
.btn-ghost {
  color: var(--brand);
  background: var(--brand-soft);
}
.btn-ghost:hover { background: rgba(23, 97, 102, 0.2); }
.price-note {
  width: 100%;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.hero-visual {
  position: relative;
  width: 100%;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}
.hero-shot {
  width: 100%;
  max-height: min(70vh, 780px);
  object-fit: cover;
  object-position: top center;
  border-top: 1px solid var(--line);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-devices {
  padding-top: 0;
}
.section-head {
  max-width: 38rem;
  margin-bottom: 36px;
}
.section-head h2,
.band h2 {
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 97, 102, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.icon-well {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.icon-well svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.feature p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.devices {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: end;
}
.device-mac img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(12, 18, 34, 0.12);
}
.phone-shell {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  background: #142022;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(12, 18, 34, 0.16);
}
.phone-shell img { width: 100%; border-radius: 26px; }
.device-caption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18));
}
.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.band p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.points {
  list-style: none;
  display: grid;
  gap: 14px;
}
.points li {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}
.points strong {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.closing { text-align: center; padding-bottom: 40px; }
.closing .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.disclaimer {
  max-width: 36rem;
  margin: 28px auto 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 8px 18px; }

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal .back {
  display: inline-flex;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
  margin-bottom: 28px;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal p, .legal li { margin-bottom: 12px; color: var(--ink-soft); }
.legal ul { padding-left: 1.25rem; margin-bottom: 16px; }
.legal footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.oauth-card {
  max-width: 36rem;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 97, 102, 0.1);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}
.oauth-card h1 { font-size: 1.5rem; margin-bottom: 10px; color: var(--brand); }
.oauth-card code {
  display: block;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(23, 97, 102, 0.07);
  border-radius: 10px;
  word-break: break-all;
}
.oauth-card .hint { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .features,
  .devices,
  .band-inner { grid-template-columns: 1fr; }
  .phone-shell { margin: 0 auto; max-width: 240px; }
  .device-phone .device-caption { text-align: center; }
  .hero { padding-top: 28px; }
  .section { padding: 56px 24px; }
  .hero-shot { max-height: 48vh; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 12px 16px; }
  .nav-brand span { display: none; }
  .hero-copy,
  .section,
  .band-inner,
  .site-footer,
  .legal { padding-left: 16px; padding-right: 16px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
}
