/* NovaKeys homepage: centered landing + interactive walkthrough. Palette follows the existing pink/violet theme. */
.home-landing-page { position:relative; isolation:isolate; overflow:clip; }
.home-hero-wrap { position:relative; padding:clamp(84px,11vh,138px) 0 clamp(64px,8vw,98px); }
.home-hero-wrap::before { content:""; position:absolute; z-index:-1; width:min(1000px,100vw); height:640px; left:50%; top:-120px; transform:translateX(-50%); pointer-events:none; background:radial-gradient(ellipse at center,rgba(120,74,236,.20),rgba(208,55,204,.08) 42%,transparent 72%); }
.home-hero-container { width:min(1240px,calc(100% - 48px)); }
.home-hero-content { display:flex; align-items:center; flex-direction:column; text-align:center; }
.home-hero-badges { justify-content:center; flex-wrap:wrap; gap:9px; }
.home-centered-intro { width:100%; max-width:1180px; display:flex; flex-direction:column; align-items:center; margin:28px 0 26px; }
.home-centered-intro .eyebrow { justify-content:center; margin-bottom:20px; }
.home-centered-intro h1 { width:100%; max-width:1160px; margin:0 auto 24px; font-family:var(--font-display,var(--font-body)); font-size:clamp(3.35rem,7.4vw,6.6rem); line-height:.96; letter-spacing:-.075em; font-weight:800; text-wrap:balance; }
.home-centered-intro h1 .grad { display:inline-block; }
.home-centered-intro .lead { max-width:760px; margin:0 auto; line-height:1.8; }
.home-centered-actions { justify-content:center; flex-wrap:wrap; gap:12px; }
.home-centered-trust { justify-content:center; flex-wrap:wrap; gap:22px; margin-top:24px; }

.nk-tutorial-section { position:relative; padding:clamp(58px,7vw,92px) 0 clamp(58px,7vw,94px); border-top:1px solid rgba(224,188,255,.075); background:linear-gradient(180deg,rgba(16,9,27,.44),rgba(8,5,14,.18)); scroll-margin-top:90px; }
.nk-tutorial-container { width:min(1120px,calc(100% - 48px)); }
.nk-tutorial-heading { max-width:800px; margin:0 auto 34px; text-align:center; }
.nk-tutorial-heading .eyebrow { justify-content:center; }
.nk-tutorial-heading h2 { margin:0 auto 14px; font-size:clamp(2.15rem,4.6vw,3.45rem); line-height:1.05; letter-spacing:-.065em; text-wrap:balance; }
.nk-tutorial-heading p { max-width:680px; margin:0 auto; color:#a99cb9; font-size:.98rem; line-height:1.8; }
.nk-tutorial-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(270px,.78fr); align-items:stretch; gap:18px; }
.tutorial-player { min-width:0; overflow:hidden; border:1px solid rgba(222,190,255,.15); border-radius:20px; background:linear-gradient(145deg,rgba(25,16,39,.94),rgba(13,9,22,.96)); box-shadow:0 28px 90px -56px rgba(0,0,0,.92),inset 0 1px 0 rgba(255,255,255,.045); }
.tutorial-player-top { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 20px; border-bottom:1px solid rgba(222,190,255,.1); background:rgba(255,255,255,.018); }
.tutorial-player-brand { display:flex; align-items:center; gap:10px; min-width:0; color:#f7f1ff; font-size:.87rem; font-weight:700; }
.tutorial-brand-mark { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; }
.tutorial-brand-mark img { width:100%; height:100%; object-fit:contain; }
.tutorial-player-brand small { display:block; margin-top:2px; color:#897a9e; font:600 .58rem/1.2 var(--font-mono); letter-spacing:.12em; }
.tutorial-count { flex:0 0 auto; color:#c0a7ee; font:600 .72rem var(--font-mono); letter-spacing:.08em; }
.tutorial-stage { min-height:326px; padding:clamp(22px,3.5vw,38px); display:flex; align-items:flex-start; flex-direction:column; background:radial-gradient(ellipse at 88% 10%,rgba(139,75,232,.11),transparent 50%); }
.tutorial-frame { width:100%; animation:tutorialFrameIn .28s ease both; }
.tutorial-frame[aria-hidden="true"] { display:none; }
.tutorial-stage-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(180,144,255,.22); background:linear-gradient(145deg,rgba(148,92,255,.18),rgba(221,69,193,.08)); color:#d4b8ff; border-radius:15px; margin-bottom:20px; }
.tutorial-stage-icon .i { width:22px; height:22px; }
.tutorial-stage-kicker { display:block; color:#a995d9; font:600 .65rem/1.5 var(--font-mono); letter-spacing:.12em; margin-bottom:10px; }
.tutorial-frame h3 { margin:0 0 10px; max-width:580px; font-size:clamp(1.35rem,2.8vw,1.85rem); line-height:1.14; letter-spacing:-.05em; }
.tutorial-frame p { max-width:590px; margin:0 0 22px; color:#a99db9; font-size:.9rem; line-height:1.78; }
.tutorial-checklist { display:grid; gap:10px; width:100%; margin-top:auto; padding:15px 16px; border:1px solid rgba(224,188,255,.09); border-radius:13px; background:rgba(5,4,11,.26); }
.tutorial-checklist span { display:flex; align-items:center; gap:9px; color:#d1c8dc; font-size:.81rem; }
.tutorial-checklist .i { color:#9ddec2; width:16px; height:16px; }
.tutorial-mock-form { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:14px; border:1px solid rgba(224,188,255,.10); border-radius:14px; background:rgba(5,4,11,.32); }
.tutorial-mock-key { min-width:0; display:flex; align-items:center; gap:8px; color:#cfc0e2; font:500 .74rem var(--font-mono); overflow-wrap:anywhere; }
.tutorial-mock-key .i { width:16px; height:16px; color:#b6a0fa; }
.tutorial-demo-pill { border:1px solid rgba(153,128,255,.2); border-radius:999px; padding:5px 8px; color:#beaaf4; background:rgba(133,91,239,.08); font:600 .56rem var(--font-mono); letter-spacing:.06em; }
.tutorial-mock-button { grid-column:1/-1; display:flex; justify-content:center; align-items:center; gap:8px; min-height:38px; border:1px solid rgba(169,123,255,.22); border-radius:10px; color:#eee5ff; background:rgba(129,84,230,.15); font-size:.79rem; font-weight:650; }
.tutorial-delivery-preview { width:100%; display:flex; align-items:center; gap:12px; padding:15px; background:rgba(6,5,13,.28); border:1px solid rgba(224,188,255,.1); border-radius:14px; }
.tutorial-delivery-icon { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; color:#a3e3c6; background:rgba(79,196,145,.1); border:1px solid rgba(79,196,145,.15); border-radius:10px; }
.tutorial-delivery-preview > span:nth-child(2) { display:grid; gap:3px; min-width:0; }
.tutorial-delivery-preview b { color:#e8e0f0; font-size:.81rem; }
.tutorial-delivery-preview small { color:#92869e; font-size:.69rem; }
.tutorial-delivery-private { margin-left:auto; flex:0 0 auto; color:#a995d9; font:600 .58rem var(--font-mono); letter-spacing:.1em; }
.tutorial-player-bottom { padding:0 20px 18px; }
.tutorial-progress-track { height:3px; margin:0 0 17px; overflow:hidden; border-radius:99px; background:rgba(224,188,255,.09); }
.tutorial-progress-fill { display:block; width:33.333%; height:100%; background:linear-gradient(90deg,#975bff,#dc62d1); border-radius:99px; transition:width .3s ease; }
.tutorial-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:9px; }
.tutorial-controls .btn { min-height:36px; padding-inline:12px; font-size:.78rem; }
.tutorial-controls .btn .i { width:14px; height:14px; }
.tutorial-controls #tutorial-play { min-width:165px; }
.tutorial-step-list { display:flex; flex-direction:column; gap:9px; min-width:0; }
.tutorial-step { display:grid; grid-template-columns:38px minmax(0,1fr) 18px; align-items:center; gap:12px; text-align:left; width:100%; min-height:88px; padding:15px 16px; border:1px solid rgba(224,188,255,.1); border-radius:15px; color:#eee7f6; background:rgba(20,13,31,.52); cursor:pointer; transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.tutorial-step:hover { transform:translateY(-2px); border-color:rgba(198,153,255,.25); background:rgba(30,18,48,.68); }
.tutorial-step.active { border-color:rgba(171,126,255,.32); background:linear-gradient(125deg,rgba(136,85,236,.15),rgba(214,77,192,.055)); box-shadow:inset 0 0 0 1px rgba(171,126,255,.055); }
.tutorial-step-number { display:grid; place-items:center; width:35px; height:35px; border-radius:11px; border:1px solid rgba(224,188,255,.12); background:rgba(255,255,255,.025); color:#aa95d2; font:600 .69rem var(--font-mono); }
.tutorial-step.active .tutorial-step-number { color:#fff; border-color:rgba(177,139,255,.28); background:rgba(139,92,246,.2); }
.tutorial-step-copy { display:grid; gap:5px; min-width:0; }
.tutorial-step-copy b { font-size:.86rem; font-weight:650; }
.tutorial-step-copy small { color:#9d91ad; font-size:.74rem; line-height:1.5; }
.tutorial-step-arrow { color:#78678f; transition:transform .18s ease,color .18s ease; }
.tutorial-step.active .tutorial-step-arrow,.tutorial-step:hover .tutorial-step-arrow { transform:translate(2px,-2px); color:#d2b2ff; }
.tutorial-guide-link { min-height:49px; display:flex; align-items:center; gap:9px; padding:12px 3px; color:#bea5ef; font-size:.79rem; font-weight:650; }
.tutorial-guide-link > span { margin-left:auto; }
.tutorial-guide-link .i { width:16px; height:16px; }
.nk-terms-warning { display:flex; align-items:center; gap:15px; margin-top:24px; padding:19px 20px; border:1px solid rgba(226,176,95,.19); border-radius:16px; background:linear-gradient(105deg,rgba(109,73,33,.10),rgba(27,18,34,.48)); }
.nk-terms-warning-icon { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; color:#f3c983; border:1px solid rgba(226,176,95,.19); border-radius:12px; background:rgba(226,176,95,.07); }
.nk-terms-warning-icon .i { width:20px; height:20px; }
.nk-terms-warning-copy { min-width:0; flex:1; }
.nk-terms-warning-copy b { display:block; margin-bottom:5px; font-size:.86rem; font-weight:700; color:#f1e8f2; }
.nk-terms-warning-copy p { margin:0; color:#ad9fb6; font-size:.76rem; line-height:1.7; }
.nk-terms-warning > a { flex:0 0 auto; }
@keyframes tutorialFrameIn { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 900px) {
  .home-hero-wrap { padding-top:82px; }
  .home-centered-intro h1 { font-size:clamp(3.05rem,8.5vw,5.3rem); }
  .nk-tutorial-layout { grid-template-columns:1fr; }
  .tutorial-step-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .tutorial-step { grid-template-columns:34px minmax(0,1fr); align-items:start; min-height:120px; padding:13px; }
  .tutorial-step-arrow { display:none; }
  .tutorial-step-number { width:31px; height:31px; }
  .tutorial-guide-link { grid-column:1/-1; }
}
@media (max-width: 620px) {
  .home-hero-container,.nk-tutorial-container { width:calc(100% - 32px); }
  .home-hero-wrap { padding:64px 0 58px; }
  .home-hero-badges { max-width:360px; }
  .home-centered-intro { margin:23px 0 25px; }
  .home-centered-intro h1 { font-size:clamp(2.65rem,11vw,4.3rem); line-height:1; letter-spacing:-.07em; }
  .home-centered-intro .lead { font-size:.98rem; line-height:1.7; }
  .home-centered-actions { width:100%; }
  .home-centered-actions .btn { width:100%; }
  .home-centered-trust { gap:11px 16px; font-size:.75rem; }
  .nk-tutorial-section { padding:54px 0 64px; }
  .nk-tutorial-heading h2 { font-size:clamp(2rem,8.5vw,2.7rem); }
  .tutorial-player { border-radius:16px; }
  .tutorial-player-top { padding-inline:14px; }
  .tutorial-stage { padding:23px 18px; min-height:350px; }
  .tutorial-frame h3 { font-size:1.42rem; }
  .tutorial-frame p { font-size:.83rem; }
  .tutorial-mock-form { grid-template-columns:1fr; }
  .tutorial-demo-pill { justify-self:start; }
  .tutorial-mock-button { grid-column:auto; }
  .tutorial-player-bottom { padding-inline:13px; }
  .tutorial-controls { display:grid; grid-template-columns:1fr 1.5fr; }
  .tutorial-controls #tutorial-play { grid-row:1; grid-column:1/-1; width:100%; }
  .tutorial-controls .btn { width:100%; }
  .tutorial-step-list { grid-template-columns:1fr; }
  .tutorial-step { grid-template-columns:38px minmax(0,1fr) 18px; min-height:78px; padding:13px 15px; }
  .tutorial-step-arrow { display:block; }
  .tutorial-guide-link { grid-column:auto; }
  .nk-terms-warning { align-items:flex-start; flex-wrap:wrap; padding:16px; gap:12px; }
  .nk-terms-warning-icon { width:34px; height:34px; flex-basis:34px; }
  .nk-terms-warning-copy { width:calc(100% - 48px); flex:1 1 calc(100% - 48px); }
  .nk-terms-warning > a { margin-left:46px; }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-frame { animation:none; }
  .tutorial-step,.tutorial-progress-fill { transition:none; }
}
