/* Página inicial da Natsuki.
   Fundo (céu, aurora, grade e cursor) igual ao do Yumis Forge. */
:root {
  --void: #01010a;
  --deep: #070b1f;
  --panel: rgba(9, 14, 31, 0.82);
  --panel-strong: rgba(5, 9, 22, 0.94);
  --line: rgba(157, 195, 255, 0.2);
  --line-strong: rgba(157, 195, 255, 0.36);
  --blue: #5f9dff;
  --violet: #a78bfa;
  --pink: #ff75d1;
  --cream: #ffeeb8;
  --ink: #eef3ff;
  --ink-2: #c6d1ee;
  --muted: #8f9cc0;
  --danger: #ff8aa5;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; background: var(--void); }
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: rgba(120, 160, 255, 0.12);
  border: 1px solid rgba(157, 195, 255, 0.16);
  color: var(--cream);
  white-space: nowrap;
}
.is-hidden { display: none !important; }

/* ===================== Ambiente (Yumis Forge) ===================== */
.natsuki-environment, .natsuki-environment > * { pointer-events: none; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; background: var(--void); }
#aurora-veil { position: fixed; inset: -10% -20% auto; height: 130vh; z-index: 1; opacity: .48; mix-blend-mode: screen; }
#aurora-veil i { position: absolute; top: -20%; width: 22vw; min-width: 180px; height: 150%; filter: blur(58px); transform-origin: 50% 0; animation: natsuki-veil-sway 26s ease-in-out infinite alternate; }
#aurora-veil i:nth-child(1) { left: 4%; background: linear-gradient(180deg, rgba(77,216,255,.34), transparent 72%); animation-duration: 24s; }
#aurora-veil i:nth-child(2) { left: 34%; background: linear-gradient(180deg, rgba(167,139,250,.3), transparent 70%); animation-duration: 31s; animation-delay: -6s; }
#aurora-veil i:nth-child(3) { right: 20%; background: linear-gradient(180deg, rgba(255,95,210,.26), transparent 68%); animation-duration: 28s; animation-delay: -13s; }
#aurora-veil i:nth-child(4) { right: -2%; background: linear-gradient(180deg, rgba(94,242,192,.2), transparent 66%); animation-duration: 36s; animation-delay: -20s; }
@keyframes natsuki-veil-sway {
  from { transform: translateX(-6vw) skewX(-9deg) scaleY(.9); opacity: .45; }
  to { transform: translateX(7vw) skewX(11deg) scaleY(1.15); opacity: .95; }
}
#grid-horizon {
  position: fixed; left: -25%; right: -25%; bottom: -2vh; height: 46vh; z-index: 1; opacity: .32;
  perspective: 260px; perspective-origin: 50% 0;
  mask-image: linear-gradient(180deg, transparent, #000 45%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000 82%, transparent);
}
#grid-horizon::before {
  content: ''; position: absolute; inset: -60% 0 -20%; transform: rotateX(72deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(90,190,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(140,120,255,.22) 1px, transparent 1px);
  background-size: 100% 46px, 52px 100%;
  animation: natsuki-grid-run 9s linear infinite;
}
@keyframes natsuki-grid-run { from { background-position: 0 0, 0 0; } to { background-position: 0 46px, 0 0; } }
#vignette { position: fixed; inset: 0; z-index: 2; background: radial-gradient(120% 85% at 50% 8%, transparent 42%, rgba(0,0,8,.55) 100%), repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px); }
#cursor-glow { position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 3; opacity: 0; background: radial-gradient(circle, rgba(120,200,255,.12) 0%, rgba(167,139,250,.07) 34%, transparent 66%); transition: opacity .6s ease; }
#cursor-ring { position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 150; opacity: 0; border-radius: 50%; border: 1px solid rgba(150,215,255,.7); box-shadow: 0 0 14px rgba(90,190,255,.5), inset 0 0 10px rgba(90,190,255,.22); transition: opacity .35s ease, width .28s ease, height .28s ease, margin .28s ease, border-color .28s ease, background .28s ease; }
body.has-pointer #cursor-glow, body.has-pointer #cursor-ring { opacity: 1; }
body.cursor-hot #cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: rgba(255,120,210,.85); background: rgba(255,95,210,.07); }
#scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 170; background: rgba(120,180,255,.09); }
#scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(115deg, #4dd8ff, #a78bfa 38%, #ff5fd2 72%, #ffd479); box-shadow: 0 0 16px rgba(120,200,255,.9); transition: width .1s linear; }

.top, main, .foot, .skip { position: relative; z-index: 5; }

/* ===================== Botões e campos ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #12091f;
  background: linear-gradient(115deg, #9de9ff, #b9a4ff 45%, #ff9fe0);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.35), 0 1px 0 rgba(255,255,255,.5) inset;
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(255, 117, 209, 0.38), 0 1px 0 rgba(255,255,255,.5) inset; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { color: var(--ink); background: rgba(17, 26, 55, 0.55); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(190, 215, 255, 0.6); background: rgba(30, 44, 88, 0.6); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible { border-radius: 999px; }

.field { display: grid; gap: 6px; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 46px; padding: 0 14px;
  font: 500 15.5px var(--font-body); color: var(--ink);
  background: rgba(3, 6, 18, 0.7); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:hover { border-color: rgba(190, 215, 255, 0.5); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25); }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 86px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 34px; padding: 0 12px; border-radius: 9px; border: 0; cursor: pointer;
  font: 600 13px var(--font-body); color: var(--ink-2); background: rgba(120, 160, 255, 0.12);
}
.pass-toggle:hover { color: var(--ink); background: rgba(120, 160, 255, 0.2); }
.form-error { min-height: 1.4em; font-size: 14px; color: var(--danger); }
.form-error:empty { min-height: 0; }

/* ===================== Topo ===================== */
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--panel-strong); border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }
.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(1, 1, 10, 0.86), rgba(1, 1, 10, 0));
  backdrop-filter: blur(6px);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-face, .login-face {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: url("/assets/bot-avatar.png") 100% 6% / 190% auto no-repeat, linear-gradient(160deg, #3c4f74, #22304d);
  box-shadow: 0 0 0 2px rgba(255, 238, 184, 0.35), 0 0 22px rgba(167, 139, 250, 0.45);
}
.mark-face.small { width: 28px; height: 28px; }
.mark-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 6px 2px; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 238, 184, 0.5); text-underline-offset: 6px; }

/* ===================== Hero ===================== */
main { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  min-height: calc(100svh - 72px); padding: clamp(28px, 6vh, 72px) 0 clamp(48px, 9vh, 110px);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  max-width: 13ch;
  text-wrap: balance;
  background: linear-gradient(170deg, #ffffff 30%, #d9d2ff 70%, #ffd7f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-hint { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

.login {
  padding: 28px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(14, 22, 50, 0.9), rgba(6, 9, 24, 0.94));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 0 60px rgba(95, 157, 255, 0.12);
  display: grid; gap: 20px;
}
.login-head { display: flex; gap: 14px; align-items: flex-start; }
.login-face { width: 52px; height: 52px; }
.login-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.login-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.login-form { display: grid; gap: 14px; }
.login-known { display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }
.login-known-actions { display: grid; gap: 8px; }
.login-foot { font-size: 13.5px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.login-foot a { color: var(--cream); text-underline-offset: 3px; }

/* ===================== Conversa ===================== */
.section-title {
  font-family: var(--font-display); font-weight: 420;
  font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
.section-lede { margin-top: 14px; max-width: 52ch; color: var(--ink-2); font-size: 17px; }
.talk { padding: clamp(40px, 8vh, 96px) 0; }
.talk-intro { max-width: 640px; }
.talk-stage { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.phone {
  border-radius: 30px; overflow: hidden;
  background: #0b141a;
  border: 1px solid rgba(157, 195, 255, 0.24);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(167, 139, 250, 0.18);
}
.phone-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #1f2c34; }
.phone-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #2a3942; font-size: 20px; }
.phone-title { display: grid; line-height: 1.25; }
.phone-title strong { font-size: 15.5px; font-weight: 600; }
.phone-title span { font-size: 12.5px; color: #8696a0; }
.chat {
  list-style: none; padding: 16px 14px 20px; display: grid; gap: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 157, 255, 0.06), transparent 40%),
    #0b141a;
  min-height: 520px; align-content: start;
}
.msg {
  max-width: 86%; padding: 7px 10px 8px; border-radius: 10px;
  font-size: 14px; line-height: 1.45; white-space: pre-line; word-wrap: break-word;
  background: #202c33; color: #e9edef; justify-self: start;
  border-top-left-radius: 3px;
}
.msg .who { display: block; font-size: 12.5px; font-weight: 700; color: var(--c, #53bdeb); margin-bottom: 2px; }
.msg.bot .who { color: #ffb2e6; }
.msg .dim { color: #8696a0; font-size: 12.5px; }
.msg em { font-style: normal; color: var(--cream); }
.msg.alert { background: #3a1d2b; box-shadow: 0 0 0 1px rgba(255, 117, 209, 0.3) inset; }
.msg .tags { color: #53bdeb; }

.js .msg { opacity: 0; transform: translateY(10px); }
.js .talk.is-playing .msg { animation: msg-in .45s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 0.9s); }
@keyframes msg-in { to { opacity: 1; transform: none; } }

.talk-notes { list-style: none; padding: 0; display: grid; gap: 34px; padding-top: 18px; }
.talk-notes li { padding-left: 22px; border-left: 2px solid rgba(167, 139, 250, 0.45); max-width: 46ch; }
.talk-notes h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.talk-notes p { margin-top: 6px; color: var(--ink-2); }
.js .talk-notes li { opacity: .25; transition: opacity .5s ease, border-color .5s ease; }
.js .talk.is-playing .talk-notes li { animation: note-on .5s ease forwards; animation-delay: calc(var(--i) * 0.9s + .2s); }
@keyframes note-on { to { opacity: 1; border-left-color: var(--pink); } }

/* ===================== Recursos ===================== */
.features { padding: clamp(40px, 8vh, 96px) 0; }
.feature-list {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.feature { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.feature p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 40ch; }

/* ===================== Começar ===================== */
.start { padding: clamp(40px, 8vh, 96px) 0 clamp(64px, 12vh, 140px); }
.steps { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 26px 24px 26px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 18px;
  font-family: var(--font-display); font-size: 44px; font-weight: 300; line-height: 1;
  color: var(--cream); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.steps a { color: var(--cream); text-underline-offset: 3px; }
.vip {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 20px;
  background: linear-gradient(110deg, rgba(95, 157, 255, 0.14), rgba(255, 117, 209, 0.14));
  border: 1px solid var(--line-strong);
}
.vip h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.vip p { margin-top: 4px; color: var(--ink-2); }

/* ===================== Rodapé ===================== */
.foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 28px 0 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot p { flex: 1; min-width: 220px; }
.foot a { color: var(--ink-2); }

/* ===================== Telas menores ===================== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 16ch; }
  .login { max-width: 520px; }
  .talk-stage { grid-template-columns: 1fr; }
  .phone { max-width: 460px; }
  .talk-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 24px 22px 26px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .talk-notes { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .login { padding: 22px; border-radius: 22px; }
  .chat { min-height: 0; }
  #aurora-veil { opacity: .3; }
  #grid-horizon { opacity: .2; }
  #cursor-glow, #cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #aurora-veil i, #grid-horizon::before { animation: none !important; }
  .js .msg, .js .talk-notes li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn { transition: none; }
}
