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

:root {
  --color-bg: #fff;
  --color-text: #0d0d0d;
  --color-muted: #6b7280;
  --color-subtle: #9ca3af;
  --color-accent: #4f7eff;
  --color-accent-hover: #3b6ef5;
  --color-orange: #f56322;
  --color-orange-bg: rgba(245, 99, 34, 0.12);
  --color-surface: #f4f4f6;
  --color-border: rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
}

html {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

nav {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 4px 8px;
}

.nav-brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 9999px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.nav-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

main {
  width: 100%;
  max-width: 680px;
  padding: 112px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.hero,
.shortcuts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  width: 100%;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
}

.hero p {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 400px;
}

.app-preview-wrap {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.app-preview {
  width: 100%;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.10);
  display: grid;
  overflow: hidden;
}

.slide {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.slide.active { opacity: 1; }

.slide-dots {
  display: flex;
  gap: 6px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slide-dot.active {
  background: var(--color-text);
  transform: scale(1.3);
}

.shortcuts h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.shortcuts > p {
  font-size: 16px;
  color: var(--color-muted);
}

.shortcuts-card {
  margin-top: 12px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.shortcut-row {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}

.shortcut-row.flash {
  background: rgba(79, 126, 255, 0.1);
  transform: scale(1.01);
}

.shortcut-key {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.key-plus {
  font-size: 11px;
  color: var(--color-subtle);
  font-weight: 500;
}

.shortcut-key kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--color-text);
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  min-width: 28px;
  text-align: center;
}

.shortcut-row.flash kbd {
  background: rgba(79, 126, 255, 0.15);
  border-color: rgba(79, 126, 255, 0.3);
  color: var(--color-accent);
}

.shortcut-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcut-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.shortcut-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.shortcut-desc {
  font-size: 11px;
  color: var(--color-subtle);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.icon-scene {
  perspective: 500px;
  width: 120px;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-wrapper {
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  flex-shrink: 0;
  cursor: grab;
}

.icon-wrapper.dragging { cursor: grabbing; }

.icon-layer {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.icon-sheen {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: background 0.05s linear;
}

.icon-shadow {
  width: 88px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
  flex-shrink: 0;
  margin-top: 8px;
  filter: blur(8px);
  transition: opacity 0.1s, transform 0.1s;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(79, 126, 255, 0.3);
}

.btn-download:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(79, 126, 255, 0.35);
}

.btn-download:active { transform: translateY(0); }

.platform-note {
  font-size: 13px;
  color: var(--color-muted);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-orange-bg);
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-orange:hover {
  background: rgba(245, 99, 34, 0.18);
  transform: translateY(-1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 28px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  margin: 16px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #e8e8ea;
  color: var(--color-text);
}

.modal-icon { margin-bottom: 16px; }

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.modal-body {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.modal-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79, 126, 255, 0.12);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.modal-steps strong {
  color: var(--color-text);
  font-weight: 600;
}

.kbd {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: inherit;
  color: var(--color-muted);
  vertical-align: middle;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.modal-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

footer {
  width: 100%;
  max-width: 680px;
  padding: 0 24px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--color-subtle);
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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