:root {
  --bg: #06070d; --bg2: #0b0d18; --card: #10121f; --card2: #151829; --line: #ffffff14; --line2: #ffffff26;
  --text: #eceefb; --muted: #8e93ad; --dim: #666b84;
  --pink: #ff3df2; --violet: #7c5cff; --cyan: #22d3ee;
  --grad: linear-gradient(95deg, var(--pink), var(--violet) 52%, var(--cyan));
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, canvas, svg { display: block; }
.wrap { width: min(1360px, 100% - 64px); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line2); background: #ffffff0d; color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn:hover { background: #ffffff1c; border-color: #ffffff44; }
.btn.primary { border: 0; color: #0a0a14; background: var(--grad); box-shadow: 0 8px 30px -8px #b45cff99; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px #b45cffcc; filter: brightness(1.08); }
.btn.lg { padding: 15px 28px; font-size: 16px; }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.danger:hover { background: #ff4d5e33; border-color: #ff4d5e; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: .25s; }
.nav.scrolled { background: #06070dcc; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 16px; white-space: nowrap; }
.logo { width: 28px; height: 28px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #0a0a14; font-size: 15px; }
.nav .links { display: flex; gap: 26px; margin-left: 18px; color: var(--muted); font-size: 14.5px; }
.nav .links a:hover { color: var(--text); }
.nav .grow { flex: 1; }
.nav .actions { display: flex; gap: 10px; align-items: center; }

/* hero — full-bleed, full-height, built for 16:9 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 100px 0 90px; overflow: hidden; background: var(--bg); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, #06070de0 26%, #06070d80 44%, #06070d00 64%), linear-gradient(0deg, var(--bg) 0%, #06070d00 18%), linear-gradient(180deg, #06070d99 0%, #06070d00 14%); }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 1000px; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px 6px 8px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--muted); background: #ffffff08; backdrop-filter: blur(6px); margin-bottom: 28px; }
.pill b { background: var(--grad); color: #0a0a14; padding: 2px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .04em; }
h1 { font-size: clamp(44px, 5.6vw, 100px); line-height: 1.01; letter-spacing: -.04em; margin: 0 0 26px; font-weight: 800; }
.lead { font-size: clamp(17px, 1.45vw, 22px); color: #a9aec6; max-width: 560px; margin: 0 0 38px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.fine { margin-top: 20px; font-size: 13.5px; color: var(--dim); }
.scrollcue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.scrollcue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--dim), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* sections */
section { position: relative; }
.sec { padding: clamp(84px, 11vh, 140px) 0; }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); font-weight: 700; margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.03em; line-height: 1.06; margin: 0 0 16px; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0; }
.head { margin-bottom: 56px; }
.head.center { text-align: center; } .head.center .sub { margin: 0 auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .25s; position: relative; overflow: hidden; }
.feat:hover { border-color: #7c5cff66; transform: translateY(-3px); }
.feat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: #7c5cff22; border: 1px solid #7c5cff44; }
.feat .ic svg { width: 23px; height: 23px; stroke: #b9a8ff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* effect showcase */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fx { aspect-ratio: 3/4; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; background: #0a0b16; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx span { position: absolute; left: 14px; bottom: 12px; font-weight: 600; font-size: 14px; text-shadow: 0 1px 8px #000; }
.fx small { position: absolute; left: 14px; bottom: 32px; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); counter-increment: s; }
.step::before { content: "0" counter(s); font-size: 44px; font-weight: 800; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 6px 0 8px; font-size: 20px; } .step p { margin: 0; color: var(--muted); }

.privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 56px; border-radius: 28px; border: 1px solid var(--line2); background: radial-gradient(90% 120% at 0% 0%, #7c5cff26, transparent), var(--card); }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy li { display: flex; gap: 12px; color: #cfd2e8; }
.privacy li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #5ee6a02a; color: #5ee6a0; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

.final { text-align: center; padding: 120px 0 100px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 1000px; height: 600px; background: radial-gradient(closest-side, #7c5cff33, transparent); }
.final .wrap { position: relative; }
.final .cta { justify-content: center; margin-top: 30px; }
footer.site { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--dim); font-size: 13.5px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .privacy { grid-template-columns: 1fr; }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 0%, #06070dcc 45%, #06070d66 100%); }
  .hero { align-items: flex-end; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .nav .links { display: none; }
  .privacy { padding: 30px; }
  .hero { padding-top: 110px; }
  .scrollcue { display: none; }
}

/* ---------- auth page ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .pane { display: flex; flex-direction: column; padding: 28px 48px; }
.auth .formwrap { margin: auto; width: min(400px, 100%); }
.auth h1 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 8px; }
.auth .sub { font-size: 15.5px; margin-bottom: 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #ffffff0d; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button { background: none; border: 0; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #ffffff1c; color: var(--text); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; background: #ffffff0a; border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; outline: none; transition: .15s; }
.field input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px #7c5cff33; background: #ffffff10; }
.field .hint { font-size: 12px; color: var(--dim); margin-top: 5px; }
.msg { min-height: 20px; font-size: 13.5px; color: #ff8a94; margin: 4px 0 12px; }
.auth .btn.primary { width: 100%; padding: 14px; font-size: 15.5px; }
.auth .art { position: relative; overflow: hidden; background: radial-gradient(100% 80% at 70% 20%, #2a1d5e, #090a14); border-left: 1px solid var(--line); }
.auth .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth .art blockquote { position: absolute; left: 48px; right: 48px; bottom: 56px; margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } .auth .pane { padding: 22px; } }

/* ---------- dashboard ---------- */
.dash-nav { position: sticky; top: 0; z-index: 20; background: #06070dd9; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dash-nav .wrap { display: flex; align-items: center; height: 64px; gap: 16px; }
.dash-nav .grow { flex: 1; }
.user { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #0a0a14; font-weight: 800; display: grid; place-items: center; border: 0; cursor: pointer; font-size: 15px; }
.menu { position: absolute; right: 0; top: 46px; min-width: 220px; background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 60px #000a; z-index: 30; }
.menu[hidden] { display: none; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.menu .who b { display: block; color: var(--text); font-size: 14.5px; }
.menu button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: #ffffff14; }
.dash { padding: 44px 0 90px; }
.dash-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-head h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -.03em; }
.dash-head p { margin: 0; color: var(--muted); }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { background: #ffffff0a; border: 1px solid var(--line2); border-radius: 999px; padding: 10px 16px; width: 230px; outline: none; font-size: 14px; }
.search:focus { border-color: var(--violet); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; position: relative; }
.proj:hover { border-color: #7c5cff77; transform: translateY(-3px); box-shadow: 0 18px 50px -20px #7c5cff66; }
.proj .art { aspect-ratio: 16/10; position: relative; cursor: pointer; overflow: hidden; }
.proj .art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; filter: drop-shadow(0 8px 24px #0008); }
.proj .art .badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #0a0a14cc; border: 1px solid #5ee6a066; color: #5ee6a0; letter-spacing: .04em; }
.proj .body { padding: 14px 16px 14px; display: flex; align-items: center; gap: 10px; }
.proj .meta { flex: 1; min-width: 0; }
.proj .name { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.proj .when { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.dots { background: none; border: 0; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--muted); }
.dots:hover { background: #ffffff14; color: var(--text); }
.proj .menu { top: auto; bottom: 54px; right: 10px; min-width: 190px; }
.newcard { border: 1.5px dashed var(--line2); background: transparent; border-radius: var(--radius); min-height: 220px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: .2s; font-weight: 600; }
.newcard:hover { border-color: var(--violet); color: var(--text); background: #7c5cff12; }
.newcard .plus { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #0a0a14; font-size: 30px; display: grid; place-items: center; font-weight: 400; }
.empty { text-align: center; padding: 50px 20px 10px; color: var(--muted); }
.skel { height: 220px; border-radius: var(--radius); background: linear-gradient(100deg, #ffffff08 30%, #ffffff12 50%, #ffffff08 70%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* modal */
.overlay { position: fixed; inset: 0; background: #02030a99; backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 20px; }
.overlay[hidden] { display: none; }
.modal { width: min(640px, 100%); background: var(--card2); border: 1px solid var(--line2); border-radius: 22px; padding: 28px; box-shadow: 0 40px 100px #000b; max-height: 92vh; overflow-y: auto; }
.modal h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.modal .sub { font-size: 14.5px; margin-bottom: 20px; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 22px; }
.tpl { border: 1.5px solid var(--line2); border-radius: 14px; background: #ffffff08; padding: 0; cursor: pointer; text-align: left; overflow: hidden; transition: .15s; }
.tpl:hover { border-color: #ffffff55; }
.tpl.on { border-color: var(--violet); box-shadow: 0 0 0 3px #7c5cff33; }
.tpl .t { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 34px; }
.tpl b { display: block; padding: 8px 12px 2px; font-size: 14px; } .tpl small { display: block; padding: 0 12px 11px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 560px) { .tpls { grid-template-columns: repeat(2, 1fr); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line2); padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 200; box-shadow: 0 10px 40px #000a; }

@media (max-width: 520px) {
  .wrap { width: min(1360px, 100% - 40px); }
  .nav .wrap { gap: 12px; }
  .brand { font-size: 14.5px; gap: 8px; }
  .nav .actions .btn:not(.primary) { display: none; }   /* keep just "Get started" on phones */
  h1 { letter-spacing: -.03em; }
  .hero { padding-bottom: 70px; }
}
