@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('assets/inter-tight-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/jetbrains-mono.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* Solid canvas; typography, ink, spacing, and surface roles follow
   prototype/DESIGN_SYSTEM.md and src/styles/design-tokens.css. */
:root {
  --theme-background: #101c26;
  --ink-primary: #fff;
  --ink-secondary: rgba(255, 255, 255, .82);
  --surface-base: #102430;
  --surface-hover: rgba(255, 255, 255, .09);
  --surface-selected: rgba(255, 255, 255, .13);
  --outline-subtle: rgba(255, 255, 255, .2);
  --shadow-panel: 0 16px 48px rgba(0, 6, 14, .24);
  --motion-state: 180ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--theme-background);
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink-primary);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  background: var(--theme-background);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
[role='tabpanel']:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 4px;
}

.wrap {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  display: block;
}

.introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 32px 48px;
}

h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.intro-copy {
  max-width: 400px;
}

.intro-copy p {
  margin: 0 0 12px;
  color: var(--ink-secondary);
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.demo-link:hover {
  text-decoration-thickness: 2px;
}

.duration {
  color: var(--ink-secondary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.view-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.view-tab {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: color var(--motion-state);
}

.view-tab:hover {
  color: var(--ink-primary);
}

.view-tab[aria-selected='true'] {
  border-bottom-color: var(--ink-primary);
  color: var(--ink-primary);
  font-weight: 600;
}

.product {
  margin-bottom: 48px;
}

.product-stage {
  /* Keep the page still when switching between close-ups and the full day. */
  display: grid;
}

.product-view {
  grid-area: 1 / 1;
  display: grid;
  margin: 0;
  min-width: 0;
}

.product-view[hidden] {
  display: none;
}

.product-view > img,
.browser-frame > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 722;
  object-fit: contain;
  border-radius: 6px;
}

.browser-frame {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--outline-subtle);
  border-radius: 12px;
}

.browser-frame > img {
  border-radius: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
  background: #24333f;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9caeb9;
}

.browser-tab {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 8px;
  width: 176px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px 6px 0 0;
  background: #354754;
  color: var(--ink-primary);
  font-size: 12px;
}

.browser-tab > span {
  margin-left: auto;
}

.browser-plus {
  color: var(--ink-secondary);
  font-size: 20px;
}

.detail-view img {
  padding: 48px 16%;
}

.weather-view img {
  padding: 48px 8%;
}

.store-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 176px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--outline-subtle);
  border-radius: 6px;
  background: var(--surface-selected);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--motion-state);
}

.store-pretitle {
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 400;
}

.store-button[aria-disabled='true'] {
  cursor: default;
}

.store-button[href]:hover {
  background: var(--surface-hover);
}

.video-dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--outline-subtle);
  border-radius: 12px;
  background: var(--surface-base);
  box-shadow: var(--shadow-panel);
  color: var(--ink-primary);
}

.video-dialog::backdrop {
  background: rgba(0, 7, 16, .8);
}

.video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.video-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.close-video {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--outline-subtle);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-primary);
  font-size: 24px;
  cursor: pointer;
}

.close-video:hover {
  background: var(--surface-hover);
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: 70dvh;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 12px 16px;
  background: var(--surface-base);
}

/* Keep the skip link keyboard reachable while hiding it visually at rest. */
.skip-link:not(:focus) {
  clip-path: inset(100%);
}

@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .introduction {
    gap: 32px;
  }

  h1 {
    font-size: 48px;
  }

}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 80px;
    gap: 16px;
  }

  .introduction {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 24px 32px;
  }

  .intro-copy {
    max-width: 400px;
  }

  .view-tabs {
    gap: 24px;
  }

  .view-tab {
    font-size: 12px;
  }

  .detail-view img {
    padding: 16px 12%;
  }

  .weather-view img {
    padding: 16px 4%;
  }


  .video-dialog {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-state: 0ms;
  }
}
