:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --page-fg: #000000;
  --muted: rgba(0, 0, 0, 0.66);
  --line: rgba(0, 0, 0, 0.12);
  --card: rgba(255, 255, 255, 0.8);
  --glass: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --hero-gradient: linear-gradient(135deg, #48d597 0%, #ffd84d 28%, #8338ec 65%, #ff006e 100%);
  --kitchen-gradient: linear-gradient(135deg, #f4ff6c 0%, #ff8b3d 100%);
  --calendar-gradient: linear-gradient(135deg, #00c2ff 0%, #3a86ff 100%);
  --weather-gradient: linear-gradient(135deg, #ffe066 0%, #ff006e 100%);
  --devices-gradient: linear-gradient(135deg, #b8f2e6 0%, #3a86ff 100%);
}

html[data-theme="night"] {
  color-scheme: dark;
  --page-bg: #060606;
  --page-fg: #fcfcfc;
  --muted: rgba(252, 252, 252, 0.72);
  --line: rgba(252, 252, 252, 0.16);
  --card: rgba(16, 16, 16, 0.82);
  --glass: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

html {
  background: var(--page-bg);
  color: var(--page-fg);
  font-feature-settings: "kern";
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

a,
button {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 102, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(58, 134, 255, 0.12), transparent 26%);
  pointer-events: none;
  z-index: -1;
}

.container-wide {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand-chip {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display-title {
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.display-title--hero {
  font-size: clamp(2.4rem, 7.2vw, 4.3rem);
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.gradient-panel {
  position: relative;
  overflow: hidden;
}

.gradient-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(2rem - 1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

html[data-theme="night"] .gradient-panel::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-screenshot,
.device-shot {
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.card-surface {
  background: var(--card);
  backdrop-filter: blur(16px);
}

.cta-dark {
  background: #000000;
  color: #ffffff;
  border-radius: 999px;
}

html[data-theme="night"] .cta-dark {
  background: #fcfcfc;
  color: #060606;
}

.cta-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.cta-ghost {
  border: 1px solid var(--line);
  border-radius: 999px;
}

.badge-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
}

.badge-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.badge-image {
  height: 60px;
  width: auto;
}

.badge-image--mac {
  height: 53px;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox__button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.image-lightbox__frame {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 3rem);
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  border-radius: 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.mobile-nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--page-fg);
  flex-shrink: 0;
  cursor: pointer;
}

.mobile-nav-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  color: inherit;
  stroke: currentColor;
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none !important;
  }
}

.mobile-nav-panel[hidden] {
  display: none;
}

.mobile-nav-shell {
  width: 100%;
}

.mobile-nav-panel {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--page-bg) 92%, transparent);
  backdrop-filter: blur(18px);
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.95rem 0;
  font-size: 1.1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .mobile-nav-shell {
    display: none;
  }
}

.theme-icon-sun,
.theme-icon-moon {
  display: none;
}

html[data-theme="day"] .theme-icon-moon {
  display: block;
}

html[data-theme="night"] .theme-icon-sun {
  display: block;
}

.logo-day,
.logo-night {
  width: 3.75rem;
  height: 3.75rem;
}

.logo-night {
  display: none;
}

html[data-theme="night"] .logo-day {
  display: none;
}

html[data-theme="night"] .logo-night {
  display: block;
}

.page-hero {
  padding: 7rem 0 3rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.content-prose p,
.content-prose li {
  color: var(--muted);
}

.content-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.content-prose > * + * {
  margin-top: 1rem;
}
