:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --ink: #070b12;
  --muted: #586171;
  --line: #d9e1eb;
  --blue: #0067ff;
  --teal: #1cc8bd;
  --shadow: 0 28px 70px rgba(12, 30, 56, 0.18);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(8, 12, 18, 0.94);
  color: white;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 27px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  transform: skewX(-16deg);
}

.nav-links {
  gap: clamp(18px, 4vw, 42px);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  opacity: 0.9;
}

.language-link {
  color: rgba(255, 255, 255, 0.72);
}

.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.hero {
  min-height: calc(88vh - 58px);
  padding: clamp(44px, 6vw, 76px) clamp(20px, 5vw, 84px) 34px;
  overflow: hidden;
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  min-height: auto;
  background: linear-gradient(180deg, #ffffff 0%, #edf5fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 520px;
}

.hero-copy.centered {
  max-width: 780px;
  text-align: center;
}

.app-icon {
  display: block;
  border-radius: 24%;
  box-shadow: 0 22px 45px rgba(3, 14, 30, 0.22);
}

.hero-icon {
  width: clamp(112px, 12vw, 150px);
  margin-bottom: clamp(26px, 4vw, 38px);
}

.centered .hero-icon {
  margin-left: auto;
  margin-right: auto;
}

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

h1 {
  max-width: 11ch;
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: 0.95;
  font-weight: 780;
}

.centered h1 {
  max-width: none;
}

.hero-subtitle {
  margin-top: 22px;
  max-width: 500px;
  color: #30394a;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.28;
}

.centered .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

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

.centered-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 22px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 103, 255, 0.26);
}

.button.secondary {
  background: #101820;
  color: white;
}

.text-link {
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
}

.version-note {
  color: #6a7280;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.compatibility {
  margin-top: 16px;
  color: #6a7280;
  font-size: 14px;
}

.product-stage {
  position: relative;
  min-height: auto;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.actual-ui-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.actual-ui-stage::before,
.actual-ui-stage::after {
  display: none;
}

.screenshot-demo {
  position: relative;
  width: min(330px, 100%);
  filter: drop-shadow(0 28px 48px rgba(8, 18, 31, 0.22));
}

.detail-demo {
  width: min(380px, 100%);
}

.panel-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-stage::before,
.product-stage::after {
  position: absolute;
  content: "";
}

.product-stage::before {
  inset: auto -80px 0 auto;
  width: 52%;
  height: 72%;
  background:
    linear-gradient(142deg, transparent 0 31%, rgba(255,255,255,0.16) 31% 32%, transparent 32%),
    linear-gradient(24deg, #0c3354, #1c6f96);
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
}

.product-stage::after {
  right: -40px;
  bottom: 0;
  width: 64%;
  height: 54%;
  background:
    radial-gradient(circle at 38% 22%, rgba(255,255,255,0.34), transparent 0 7%, rgba(255,255,255,0.16) 8% 10%, transparent 11%),
    linear-gradient(155deg, #769bb9, #214b68 52%, #0d2a41);
  clip-path: polygon(12% 14%, 82% 0, 100% 100%, 0 100%);
  opacity: 0.88;
}

.desktop-strip {
  display: none;
}

.desktop-strip span {
  width: 12px;
  height: 8px;
  border-radius: 3px;
  border: 1px solid currentColor;
}

.switcher-window {
  position: absolute;
  z-index: 3;
  top: 64px;
  right: clamp(-12px, 1vw, 44px);
  width: min(680px, 88vw);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(13, 18, 26, 0.94);
  color: white;
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.switcher-window.large {
  position: relative;
  top: auto;
  right: auto;
  width: min(840px, 92vw);
}

.search-line {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.search-icon {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
}

.search-icon::after {
  display: block;
  width: 8px;
  height: 2px;
  margin: 14px 0 0 14px;
  background: rgba(255,255,255,0.7);
  transform: rotate(45deg);
  content: "";
}

.query {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
}

.open-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.result-section {
  padding: 10px 12px 5px;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
}

.result-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 10px;
  color: rgba(255,255,255,0.94);
}

.result-row.selected {
  background: var(--blue);
}

.result-row small {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

kbd {
  min-width: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.result-app {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.figma { background: linear-gradient(135deg, #ff7262, #a259ff 50%, #1abcfe); }
.notes { background: linear-gradient(135deg, #ffd466, #ffffff); color: #272a30; }
.finder { background: linear-gradient(135deg, #70c7ff, #0867d8); }
.chrome { background: linear-gradient(135deg, #f44336, #ffdd33 38%, #0f9d58 68%, #4285f4); }

.shortcut-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 10px 12px 0;
  color: rgba(255,255,255,0.66);
  font-size: 12px;
}

.product-gallery,
.feature-band,
.workflow-section,
.capability-section,
.detail-grid,
.download-section {
  padding: clamp(44px, 7vw, 76px) clamp(20px, 5vw, 84px);
}

.product-gallery {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 28px;
}

.section-heading h2,
.download-section h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
}

.section-heading p,
.download-section p,
.detail-grid p,
.feature-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(12, 30, 56, 0.06);
}

.product-card.active {
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(0, 103, 255, 0.1);
}

.product-card strong {
  display: block;
  font-size: 20px;
}

.product-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.card-icon {
  width: 70px;
  box-shadow: 0 12px 28px rgba(3, 14, 30, 0.18);
}

.placeholder-icon {
  width: 70px;
  height: 70px;
  border: 1px dashed #aeb8c6;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 44%, #d8e0ea 44% 56%, transparent 56%),
    #f8fafc;
}

.card-arrow {
  color: #556070;
  font-size: 38px;
  line-height: 1;
}

.feature-band {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.workflow-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.workflow-grid article {
  min-height: 230px;
  padding: 28px;
  background: #ffffff;
}

.workflow-grid span {
  display: inline-flex;
  width: 44px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.workflow-grid h3,
.capability-list h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.workflow-grid p,
.capability-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.capability-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.capability-list article {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-item {
  padding: 24px 38px;
  border-left: 1px solid var(--line);
}

.feature-item:first-child {
  border-left: 0;
}

.feature-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow: 0 16px 35px rgba(0, 103, 255, 0.18);
}

.feature-icon::before {
  color: white;
  font-size: 32px;
  font-weight: 800;
}

.feature-icon.apps {
  background: linear-gradient(135deg, #0067ff, #21c6d2);
}

.feature-icon.apps::before {
  content: "⌘";
}

.feature-icon.privacy {
  background: linear-gradient(135deg, #21c6d2, #25b979);
}

.feature-icon.privacy::before {
  content: "✓";
}

.feature-icon.keyboard {
  background: linear-gradient(135deg, #09a5e8, #0067ff);
}

.feature-icon.keyboard::before {
  content: "⌨";
}

.feature-item h3,
.detail-grid h2 {
  font-size: 22px;
  line-height: 1.18;
}

.detail-stage {
  width: 100%;
  max-width: 980px;
  min-height: auto;
  padding: 36px;
  border-radius: var(--radius);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.detail-grid article {
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
  background: white;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #0b1118;
  color: white;
}

.download-section p {
  max-width: 680px;
  color: rgba(255,255,255,0.7);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 84px);
  background: #070b12;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.site-footer a {
  color: white;
}

@media (max-width: 980px) {
  .split-hero,
  .product-grid,
  .feature-grid,
  .workflow-grid,
  .capability-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-stage {
    min-height: 470px;
  }

  .switcher-window {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .feature-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .feature-item:first-child {
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 28px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a[aria-current="page"]::after,
  .nav-links a:hover::after {
    bottom: -8px;
  }

  .split-hero {
    padding-top: 44px;
  }

  .hero-copy {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero-subtitle {
    width: min(310px, calc(100vw - 52px));
    max-width: min(310px, calc(100vw - 52px));
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .product-stage {
    margin-left: 0;
    margin-right: 0;
  }

  .actual-ui-stage {
    justify-content: center;
    padding: 10px 0 0;
  }

  .screenshot-demo,
  .detail-demo {
    width: min(270px, calc(100vw - 48px));
  }

  .desktop-strip {
    display: none;
  }

  .switcher-window {
    top: 36px;
    width: calc(100vw - 28px);
    padding: 10px;
  }

  .result-row {
    grid-template-columns: 24px 1fr;
  }

  .result-row small,
  .result-row kbd {
    display: none;
  }

  .product-card {
    grid-template-columns: auto 1fr;
  }

  .card-arrow {
    display: none;
  }

  .detail-stage {
    padding: 24px 0;
    background: transparent;
  }

  .download-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
