:root {
  color-scheme: light;
  --paper: #f7f8f1;
  --ink: #111b17;
  --muted: #4c5c54;
  --line: #d8e1d8;
  --green: #09634b;
  --mint: #a1f4ca;
  --night: #0d1f19;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 100%;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
body { min-width: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #2a9b72;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.65rem 1rem;
  background: white;
  clip-path: inset(50%);
  transform: translateY(-150%);
}

.skip-link:focus { clip-path: none; transform: none; }

.page-width {
  width: min(100% - 4rem, 75rem);
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.6vw, 3.1rem);
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.23rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.wordmark img { border-radius: 8px; }

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.6vw, 2rem);
  font-size: 0.92rem;
  font-weight: 600;
}

nav a { text-decoration: none; }
nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.2em; }
.header-inner nav, .footer-inner nav { margin-left: auto; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.58rem;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button-outline { border-color: #b9c8be; min-height: 2.65rem; }
.button-outline:hover { background: #e8f1e9; }
.button-primary { background: var(--night); color: #fff; }
.button-primary:hover { background: var(--green); }
.button-mint { background: var(--mint); color: var(--night); }
.button-mint:hover { background: #cefae2; }

.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 78% 47%, #e0f4e5 0%, var(--paper) 69%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5.15rem);
  padding-block: clamp(3.6rem, 8vw, 7rem);
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--green);
  font: 650 0.86rem/1.5 var(--mono);
}

h1 {
  font-size: clamp(3rem, 5.85vw, 6rem);
  line-height: 0.99;
  letter-spacing: -0.067em;
  font-weight: 760;
}

h1 span { display: block; color: var(--green); }

.hero-description {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin-top: 1.65rem;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.text-link:hover { color: var(--ink); }

.demo-media {
  position: relative;
  border: 1px solid #193b33;
  border-radius: 1.05rem;
  background: #071321;
  box-shadow: 0 18px 46px #11382d28;
}

.demo video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
}

.demo-play {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.75rem;
  border: 1px solid #bff9dd;
  border-radius: 0.55rem;
  padding: 0.42rem 0.75rem;
  background: var(--mint);
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.demo-play:hover { background: #d2fae6; }
.play-mark { border: 0.36rem solid transparent; border-left: 0.58rem solid currentColor; border-right: 0; }

figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0.75rem;
}

.demo figcaption { display: flex; justify-content: space-between; gap: 0.6rem; }
.demo figcaption span:first-child { color: var(--ink); font-weight: 700; }

.section { padding-block: clamp(3.55rem, 6.15vw, 6rem); }

.section h2 {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section p, .shortcuts dd, .install-steps {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  margin-bottom: 1.9rem;
}

.section-heading p { max-width: 23rem; }
.view-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.view-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  border-radius: 1rem;
  padding: clamp(0.85rem, 2vw, 1.5rem);
}

.view-ide { color: #f0faf4; background: #172720; border: 1px solid #172720; }
.view-ide p { color: #c0d6cb; }
.view-sheet { background: #e0f0e4; border: 1px solid #c2dac8; }
.view-copy { margin-bottom: 1.3rem; max-width: 28rem; }
.view-copy h3 { margin-bottom: 0.38rem; font-size: 1.75rem; font-weight: 750; letter-spacing: -0.05em; }
.view-image { display: block; border: 1px solid #78968a66; border-radius: 0.55rem; overflow: hidden; }
.view-image img { width: 100%; height: auto; }

.privacy { background: #e9f0e8; border-block: 1px solid var(--line); }
.privacy-inner { display: grid; grid-template-columns: 1fr 1.23fr; align-items: start; gap: 2.5rem; }
.privacy-heading p { max-width: 29rem; margin-top: 0.78rem; }

.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.shortcuts > div { border-top: 1px solid #a5bbac; padding-top: 1rem; }
.shortcuts dt { margin-bottom: 0.75rem; white-space: nowrap; }
.shortcuts dt span { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

kbd {
  display: inline-block;
  border: 1px solid #afc3b5;
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  padding: 0.32rem 0.53rem;
  background: #f8fbf7;
  color: var(--ink);
  font: 650 0.94rem/1.1 var(--mono);
}

.platform-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-bottom: 1.65rem;
}

.platform-heading p { margin-top: 0.65rem; }

.platform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  text-decoration: none;
}

.platform-card:hover { border-color: #7baa94; }
.platform-card:hover strong { text-decoration: underline; text-underline-offset: 0.16em; }
.platform-card img { width: 100%; height: auto; border-bottom: 1px solid var(--line); background: #e9f0e8; }

.platform-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  padding: 0.65rem 0.8rem;
}

.platform-meta > span { color: var(--muted); font-size: 0.87rem; white-space: nowrap; }
.platform-meta small { color: var(--green); font-size: 0.77rem; margin-left: 0.25rem; }

.installation { background: var(--night); color: #f1faf5; }
.install-inner { display: grid; grid-template-columns: 0.9fr 1fr; align-items: center; gap: clamp(1.75rem, 5.5vw, 5rem); }
.install-inner p { margin-top: 0.65rem; color: #bfdbcf; }
.install-inner .button { margin-top: 1.3rem; }
.install-steps { margin: 0; padding-left: 1.5rem; color: #e3efe9; }
.install-steps li { margin-block: 0.58rem; padding-left: 0.34rem; }
.install-steps li::marker { color: var(--mint); font-weight: 700; }
.install-steps code { color: var(--mint); font: 0.88em/1.45 var(--mono); overflow-wrap: anywhere; }
.footer-inner { min-height: 4.7rem; }

@media (max-width: 55rem) {
  .page-width { width: min(100% - 2.75rem, 75rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: clamp(3.55rem, 9vw, 5.3rem); }
  .hero-description { margin-top: 1.1rem; }
  .demo { width: min(100%, 42rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .privacy-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 38rem) {
  .page-width { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { flex-wrap: wrap; min-height: auto; padding-block: 0.85rem; gap: 0.7rem; }
  .header-inner { justify-content: space-between; }
  .header-inner nav { order: 1; width: 100%; margin-left: 0; padding-block: 0.25rem; }
  .footer-inner nav { width: 100%; margin-left: 0; padding-block: 0.25rem; }
  h1 { font-size: clamp(2.75rem, 10.4vw, 4rem); }
  .view-grid, .platform-gallery, .install-inner { grid-template-columns: 1fr; }
  .demo-play { bottom: 0.45rem; right: 0.45rem; min-height: 2.4rem; }
}

@media (max-width: 23rem) {
  .shortcuts { grid-template-columns: 1fr; }
}
