:root { --bg: #0a0a0a; --bg2: #111114; --card: #151518; --card-hover: #1c1c20; --border: #2a2a30; --purple: #8b5cf6; --purple-light: #a78bfa; --purple-dim: rgba(139,92,246,0.15); --white: #ffffff; --gray: #6b7280; --gray2: #9ca3af; --text: #e5e7eb; --success: #10b981; }
* { margin: 0px; padding: 0px; box-sizing: border-box; }
html { scrollbar-gutter: stable; }
.word-input-wrap { position: relative; }
.word-suggestions { background: rgb(30, 30, 42); border: 1px solid var(--purple-light, #7c5cff); border-radius: 6px; z-index: 9999; max-height: 160px; overflow-y: auto; box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 12px; }
.word-suggestion-item { padding: 6px 10px; cursor: pointer; font-size: 13px; color: rgb(255, 255, 255); }
.word-suggestion-item:hover { background: rgba(124, 92, 255, 0.25); }
body { background: var(--bg); color: var(--white); font-family: "DM Sans", sans-serif; min-height: 100vh; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgb(42, 42, 48) transparent; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(42, 42, 48); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgb(58, 58, 66); }
.screen { display: none; min-height: 100vh; animation: 0.4s ease 0s 1 normal none running fadeIn; }
.screen.active { display: flex; }
#s2, #s3, #s4, #s5, #s6, #s8 { height: 100vh; overflow: hidden; }
@keyframes fadeIn { 
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0px); }
}
#s1 { flex-direction: column; align-items: center; justify-content: center; padding: 60px 40px; gap: 48px; }
.s1-header { text-align: center; }
.s1-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.5px; }
.s1-header h1 span { color: var(--purple-light); }
.s1-header p { margin-top: 10px; color: var(--gray2); font-size: 1rem; }
.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; width: 100%; }
.device-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 36px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; cursor: pointer; transition: 0.25s; position: relative; overflow: hidden; }
.device-card::before { content: ""; position: absolute; inset: 0px; background: radial-gradient(at center top, rgba(139, 92, 246, 0.08) 0%, transparent 70%); opacity: 0; transition: opacity 0.3s; }
.device-card:hover { border-color: var(--purple); background: var(--card-hover); }
.device-card:hover::before { opacity: 1; }
.device-img { width: 90px; height: 110px; display: flex; align-items: center; justify-content: center; }
.device-img svg { filter: drop-shadow(rgba(139, 92, 246, 0.2) 0px 0px 20px); }
.device-card span { font-weight: 600; font-size: 1rem; color: var(--white); }
#s2 { flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.connect-device-img { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.connect-label { font-size: 1.5rem; font-weight: 700; text-align: center; }
.connect-label span { color: var(--purple-light); }
.connect-sub { color: var(--gray2); font-size: 0.9rem; text-align: center; }
.spinner { width: 28px; height: 28px; border-top-style: ; border-top-width: ; border-right-color: ; border-right-style: ; border-right-width: ; border-bottom-color: ; border-bottom-style: ; border-bottom-width: ; border-left-color: ; border-left-style: ; border-left-width: ; border-image-source: ; border-image-slice: ; border-image-width: ; border-image-outset: ; border-image-repeat: ; border-top-color: var(--purple); border-radius: 50%; animation: 0.8s linear 0s infinite normal none running spin; margin: 0px auto; }
@keyframes spin { 
  100% { transform: rotate(360deg); }
}
#s3 { flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px; text-align: center; }
.ledger-logo { display: flex; align-items: center; gap: 8px; font-family: "Space Mono", monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: 3px; }
.logo-brackets { color: var(--white); font-size: 1.6rem; line-height: 1; }
.s3-text { font-size: 1.2rem; color: var(--text); max-width: 480px; line-height: 1.6; }
.s3-text span { color: var(--purple-light); font-weight: 600; }
#s4 { flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.stacked-device { width: 140px; height: 120px; position: relative; display: flex; align-items: center; justify-content: center; }
.stepper { display: flex; align-items: center; gap: 0px; margin-bottom: 32px; }
.step-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: var(--gray); transition: 0.3s; }
.step-circle.active { background: var(--purple); border-color: var(--purple); color: white; box-shadow: rgba(139, 92, 246, 0.4) 0px 0px 20px; }
.step-circle.done { background: rgba(139, 92, 246, 0.3); border-color: var(--purple-light); color: var(--purple-light); }
.step-label { font-size: 0.75rem; color: var(--gray); white-space: nowrap; }
.step-label.active { color: var(--purple-light); font-weight: 600; }
.step-line { width: 120px; height: 1px; background: var(--border); margin-bottom: 24px; transition: background 0.3s; }
.step-line.done { background: var(--purple); }
#s5, #s6, #s7, #s8 { flex-direction: column; align-items: center; justify-content: flex-start; padding: 40px 40px 60px; gap: 0px; }
.fw-header { text-align: center; margin-bottom: 48px; }
.fw-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--purple-dim); border: 2px solid var(--purple); display: flex; align-items: center; justify-content: center; margin: 0px auto 24px; box-shadow: rgba(139, 92, 246, 0.25) 0px 0px 24px; }
.fw-title { font-size: 1.6rem; font-weight: 700; text-align: center; }
.fw-title span { color: var(--purple-light); }
.fw-sub { color: var(--gray2); text-align: center; margin-top: 10px; max-width: 420px; line-height: 1.6; font-size: 0.95rem; }
.progress-wrap { width: 100%; max-width: 480px; margin-top: 32px; }
.progress-label-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; font-weight: 600; }
.progress-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-light)); border-radius: 99px; transition: width 0.5s; width: 10%; }
.progress-hint { margin-top: 16px; color: var(--gray); font-size: 0.85rem; text-align: center; }
#s9 { flex-direction: row; min-height: 100vh; }
.panel-left { width: 42%; background: linear-gradient(160deg, rgb(13, 13, 18) 0%, rgb(18, 16, 26) 100%); padding: 48px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); position: relative; overflow: hidden; }
.panel-left .slide { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; opacity: 0; transition: opacity 0.4s ease-in-out; z-index: 0; mask-image: linear-gradient(90deg, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 60%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0.4) 92%, transparent 100%); }
.panel-left .slide.active { opacity: 1; }
.panel-left::after { content: ""; position: absolute; inset: 0px; pointer-events: none; z-index: 2; background: radial-gradient(at 35% 50%, transparent 55%, rgba(0, 0, 0, 0.3) 100%); }
.video-top { position: absolute; top: 0px; left: 0px; right: 0px; z-index: 3; padding: 32px 40px 24px; display: flex; flex-direction: column; align-items: center; row-gap: 16px; }
.progress-bars { display: flex; flex-direction: row; column-gap: 4px; width: 300px; }
.pbar { height: 3px; flex: 1 1 0%; background: rgba(255, 255, 255, 0.28); border-radius: 2px; position: relative; overflow: hidden; }
.pbar::after { content: ""; position: absolute; top: 0px; left: 0px; height: 100%; background: rgb(255, 255, 255); border-radius: 2px; width: 0%; opacity: 0; transition: width var(--dur, 5s) linear; }
.pbar.full::after { width: 100%; background: rgb(255, 255, 255); opacity: 1; transition: none; }
.pbar.active::after { width: 100%; opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--grey-950); text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(rgba(0, 0, 0, 0.45) 0px 0px 6px); }
.brand-wordmark { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 0px 8px); }
.slide-title { font-size: var(--fs-heading-3); font-weight: 600; text-align: center; max-width: 600px; letter-spacing: -0.05em; color: var(--grey-950); text-shadow: rgba(0, 0, 0, 0.45) 0px 1px 6px; animation: 1s ease-in-out 0s 1 normal none running fadeInOut; margin: 0px; }
@keyframes fadeInOut { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.play-fallback { position: absolute; inset: 0px; z-index: 5; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); border-width: medium; border-style: none; border-color: currentcolor; border-image: none; cursor: pointer; color: var(--grey-950); }
.play-fallback.show { display: flex; }
.play-fallback .play-circle { width: 72px; height: 72px; border-radius: 9999px; background: var(--grey-950); color: var(--grey-050); display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.play-fallback:hover .play-circle { transform: scale(1.05); }
.play-fallback .play-label { position: absolute; bottom: 32px; font-size: var(--fs-body-2); font-weight: var(--fw-medium); opacity: 0.85; }
.wallet-3d { width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; margin: 0px auto 32px; }
.recovery-left h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.recovery-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.recovery-tab-line { height: 2px; flex: 1 1 0%; border-radius: 2px; background: var(--border); cursor: pointer; transition: background 0.2s; }
.recovery-tab-line.active { background: var(--white); }
.recovery-right { flex: 1 1 0%; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.recovery-right h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.recovery-right p { color: var(--gray2); font-size: 0.9rem; margin-bottom: 28px; line-height: 1.5; }
.word-length-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.wl-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--gray2); font-family: "DM Sans", sans-serif; font-size: 0.85rem; cursor: pointer; transition: 0.2s; }
.wl-tab.active { background: var(--purple); border-color: var(--purple); color: white; font-weight: 600; }
.wl-tab:hover:not(.active) { border-color: var(--purple-light); color: var(--white); }
.show-all-btn { margin-left: auto; display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--purple); color: var(--purple-light); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; font-family: "DM Sans", sans-serif; transition: 0.2s; }
.show-all-btn:hover { background: var(--purple-dim); }
.word-top-row { display: flex; align-items: center; margin-bottom: 24px; }
.word-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.word-input-wrap { display: flex; align-items: center; background: rgb(26, 26, 31); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.word-input-wrap:focus-within { border-color: var(--purple); }
.word-num { padding: 0px 10px; color: var(--gray); font-size: 0.8rem; min-width: 28px; border-right: 1px solid var(--border); height: 44px; display: flex; align-items: center; }
.word-input { background: transparent; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; outline: none; color: var(--white); font-family: "DM Sans", sans-serif; font-size: 0.9rem; padding: 0px 12px; height: 44px; width: 100%; }
.word-progress { color: var(--gray); font-size: 0.85rem; margin-bottom: 16px; }
.word-progress span { color: var(--purple-light); font-weight: 600; }
.btn-primary { background: var(--white); color: rgb(10, 10, 10); border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 999px; padding: 16px 48px; font-size: 1rem; font-weight: 600; font-family: "DM Sans", sans-serif; cursor: pointer; transition: 0.2s; letter-spacing: 0.2px; }
.btn-primary:hover { background: rgb(229, 231, 235); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0px); }
.btn-purple { background: var(--purple); color: white; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; border-radius: 999px; padding: 16px 48px; font-size: 1rem; font-weight: 600; font-family: "DM Sans", sans-serif; cursor: pointer; transition: 0.2s; }
.btn-purple:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-purple:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
@keyframes pulse-glow { 
  0%, 100% { box-shadow: rgba(139, 92, 246, 0.2) 0px 0px 20px; }
  50% { box-shadow: rgba(139, 92, 246, 0.5) 0px 0px 40px; }
}
.pulse { animation: 2s ease-in-out 0s infinite normal none running pulse-glow; }
.verify-row { display: flex; align-items: center; gap: 10px; color: var(--gray2); font-size: 0.9rem; }
@media (max-width: 700px) {
  .device-grid { grid-template-columns: 1fr; max-width: 400px; }
  #s9 { flex-direction: column; }
  .recovery-left { width: 100%; min-height: auto; padding: 32px 24px; margin-top: 30%; }
  .panel-left { width: 100%; }
  .recovery-right { padding: 24px; }
  .word-grid { grid-template-columns: repeat(2, 1fr); }
  .step-line { width: 60px; }
}
.check-circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(139, 92, 246, 0.15); border: 2px solid var(--purple); display: flex; align-items: center; justify-content: center; margin: 0px auto 24px; box-shadow: rgba(139, 92, 246, 0.3) 0px 0px 24px; }
@keyframes blink-dots { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.blink { animation: 1.2s ease-in-out 0s infinite normal none running blink-dots; }
.top-nav { position: absolute; top: 20px; left: 20px; }
.top-nav-logo { font-family: "Space Mono", monospace; font-size: 0.85rem; letter-spacing: 2px; border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; display: inline-block; }
.mobile-logo { display: none; align-items: center; gap: 8px; font-family: "Space Mono", monospace; font-size: 0.85rem; letter-spacing: 3px; color: var(--white); position: absolute; top: 20px; left: 20px; }
@media (max-width: 700px) {
  .mobile-logo { display: flex; }
}