:root {
  color-scheme: light;
  --ink: #15191d;
  --muted: #5d6872;
  --soft: #eef1f3;
  --paper: #faf8f3;
  --surface: #ffffff;
  --line: #d7dde2;
  --teal: #15a979;
  --cyan: #36b8e6;
  --amber: #d9932c;
  --charcoal: #111417;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(17, 20, 23, 0.2);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #f7fbff;
  background: rgba(17, 20, 23, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.95rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(860px, 92vh);
  padding: 118px clamp(22px, 5vw, 72px) 64px;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 23, 0.94) 0%, rgba(17, 20, 23, 0.8) 36%, rgba(17, 20, 23, 0.34) 72%, rgba(17, 20, 23, 0.68) 100%),
    linear-gradient(0deg, rgba(17, 20, 23, 0.52), rgba(17, 20, 23, 0.18)),
    url("assets/StoreImage2.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 24px 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.06rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.store-link,
.waitlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.store-link:hover,
.waitlist-button:hover {
  transform: translateY(-1px);
}

.store-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-link small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.72;
}

.store-link.primary,
.waitlist-button.primary {
  padding: 12px 20px;
  color: #07110d;
  background: linear-gradient(135deg, #50d995, #36b8e6);
  box-shadow: 0 14px 36px rgba(54, 184, 230, 0.28);
}

.store-link.compact,
.waitlist-button.compact {
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.macos-only {
  display: none;
}

body.is-macos .windows-only,
body.is-macos .windows-copy {
  display: none;
}

body.is-macos .waitlist-button.macos-only {
  display: inline-flex;
}

body.is-macos .macos-copy.macos-only {
  display: block;
}

body.is-macos .macos-cta.macos-only {
  display: flex;
}

.macos-cta {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.macos-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 750;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 54px 0 0;
}

.hero-stats div {
  padding: 18px 16px;
  border: 1px solid #454b52;
  border-radius: var(--radius);
  background: #252a2f;
}

.hero-stats dt {
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: #c3cbd3;
}

.features-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 36px;
}

.section-heading .eyebrow,
.download-section .eyebrow {
  color: var(--teal);
}

.feature-grid,
.download-section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card p,
.download-section p {
  color: var(--muted);
  line-height: 1.65;
}

.features-section {
  background: #f3f7f7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: var(--teal);
  background: #e4f6ed;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px) clamp(22px, 5vw, 56px);
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.download-section img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
}

.download-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.download-section > div {
  display: grid;
  gap: 14px;
}

.download-section .eyebrow,
.download-section h2,
.download-section p {
  margin: 0;
}

.download-section .macos-cta p {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 20, 23, 0.72);
  backdrop-filter: blur(10px);
}

.waitlist-modal {
  position: relative;
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.waitlist-modal .eyebrow {
  margin-top: 0;
  color: var(--teal);
}

.waitlist-modal h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.waitlist-modal p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: #eef1f3;
  cursor: pointer;
}

.modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

#waitlist-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

#waitlist-form label {
  font-size: 0.92rem;
  font-weight: 800;
}

#waitlist-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

#waitlist-form input:focus {
  outline: 3px solid rgba(54, 184, 230, 0.28);
  border-color: var(--cyan);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: var(--charcoal);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .feature-grid,
  .download-section {
    grid-template-columns: 1fr;
  }

  .download-section {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .store-link.compact,
  .waitlist-button.compact {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 94vh;
    padding-top: 98px;
  }

  .hero-backdrop {
    background:
      linear-gradient(0deg, rgba(17, 20, 23, 0.96) 0%, rgba(17, 20, 23, 0.72) 52%, rgba(17, 20, 23, 0.5) 100%),
      url("assets/StoreImage2.png") center / cover no-repeat;
  }

  .hero-actions {
    align-items: stretch;
  }

  .store-link.primary,
  .waitlist-button.primary {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .feature-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-link {
    transition: none;
  }
}
