:root {
  --bg: #111113;
  --bg-elevated: #17171a;
  --bg-card: #1c1c20;
  --bg-control: #242429;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #71717a;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-active: #0066cc;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

/* Container */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  min-height: 44px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn:hover {
  background-color: var(--bg-control);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn:active {
  background-color: var(--bg-elevated);
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  }
  .btn:active {
    transform: translateY(1px);
  }
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  background-color: var(--accent-active);
}

.btn svg {
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  padding-block: 56px 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.eyebrow-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Hero Interactive Window */
.app-window {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.window-bar {
  height: 40px;
  padding-inline: 14px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #36363c;
}

.window-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.window-spacer {
  width: 44px;
}

.window-stage {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background-color: var(--bg-elevated);
}

.stage-preview {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    animation: heroEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-enter-delay {
    animation: heroEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
  @keyframes heroEnter {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .stage-preview img {
    transition: opacity 0.18s ease, transform 0.22s ease;
  }
  .stage-preview img.is-switching {
    opacity: 0.35;
    transform: scale(0.985);
  }
}

.mode-switch {
  display: inline-flex;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.mode-switch-btn {
  min-height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-switch-btn:hover {
  color: var(--text);
}

.mode-switch-btn[aria-selected="true"] {
  background-color: var(--bg-control);
  color: var(--text);
}

/* Sections */
.section {
  padding-block: 96px;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background-color: var(--bg-elevated);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Modes 3-column Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mode-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.18s ease;
}

.mode-card:hover {
  border-color: var(--border-strong);
}

@media (prefers-reduced-motion: no-preference) {
  .mode-card {
    transition: border-color 0.18s ease, transform 0.2s ease;
  }
  .mode-card:hover {
    transform: translateY(-2px);
  }
}

.mode-visual {
  aspect-ratio: 4 / 3;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.mode-visual img {
  width: 78%;
  height: auto;
}

.mode-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.mode-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Finder Preview Section */
.finder-shell {
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}

.finder-toolbar {
  min-height: 52px;
  padding: 8px 18px;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.finder-path {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.finder-body {
  padding: 40px 28px;
  background-color: var(--bg);
}

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

.finder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.finder-icon-box {
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finder-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finder-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Compare Section */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.compare-card-featured {
  border-color: var(--border-strong);
  background-color: #1f1f24;
}

.compare-card h2,
.compare-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.compare-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-secondary);
}

/* Closing Section */
.close-section {
  padding-block: 104px;
  text-align: center;
}

.close-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.close-inner h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.close-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.close-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    min-height: auto;
    padding-block: 48px 64px;
  }
  .modes-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .header-actions .btn-secondary-hide {
    display: none;
  }
  .section {
    padding-block: 64px;
  }
  .close-section {
    padding-block: 72px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-inline: 16px;
  }
  .hero-actions,
  .close-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .btn,
  .close-actions .btn {
    width: 100%;
  }
  .finder-icon-box {
    width: 112px;
    height: 112px;
  }
  .compare-card {
    padding: 24px;
  }
}
