/* ===========================================================
   Lusalt — shared stylesheet
   A distinctive aurora-glass aesthetic for the AI image studio
   =========================================================== */

:root {
  --bg: #07070c;
  --bg-soft: #0d0d17;
  --panel: rgba(22, 22, 36, 0.55);
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f4f3ff;
  --ink-soft: #b7b5d6;
  --ink-faint: #76748f;
  --accent: #a98bff;
  --accent-2: #ff8bd0;
  --accent-3: #6be1ff;
  --glow-1: #7a3bff;
  --glow-2: #ff4d9d;
  --glow-3: #15d2ff;
  --radius: 20px;
  --maxw: 1080px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---- animated aurora backdrop ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.55;
}
.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: var(--glow-1); top: -10%; left: -8%; animation-delay: 0s; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; background: var(--glow-2); top: 20%; right: -12%; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; background: var(--glow-3); bottom: -14%; left: 25%; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(6%, -5%) scale(1.15); }
  100% { transform: translate(-5%, 7%) scale(0.95); }
}

/* grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 12, 0.6);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: conic-gradient(from 140deg, var(--glow-3), var(--glow-1), var(--glow-2), var(--glow-3));
  box-shadow: 0 0 24px rgba(169, 139, 255, 0.5);
  position: relative;
}
.brand .mark::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 5px;
  background: var(--bg);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10,10,18,0.97);
    border-bottom: 1px solid var(--panel-border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 24px; width: 100%; border-top: 1px solid var(--panel-border); }
  .nav-toggle { display: block; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0a12;
  box-shadow: 0 8px 30px rgba(169, 139, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 139, 208, 0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ---- hero ---- */
.hero { padding: 110px 0 80px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border);
  font-size: 0.82rem; color: var(--ink-soft); font-family: var(--mono);
  margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 620px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- mockup preview strip ---- */
.showcase {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 72px;
}
.showcase .frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--bg-soft);
  overflow: hidden; position: relative;
}
.showcase .frame::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--glow-1), var(--glow-2));
  opacity: 0.55;
}
.showcase .frame:nth-child(2)::before { background: linear-gradient(135deg, var(--glow-3), var(--glow-1)); }
.showcase .frame:nth-child(3)::before { background: linear-gradient(135deg, var(--glow-2), var(--glow-3)); }
.showcase .frame.art::before { display: none; }
.showcase .frame .art-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1;
}
.showcase .frame span {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--mono); font-size: 0.75rem;
  color: rgba(255,255,255,0.92); z-index: 3;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(7,7,12,0.45); backdrop-filter: blur(4px);
}
@media (max-width: 640px) { .showcase { grid-template-columns: 1fr; } .showcase .frame { aspect-ratio: 16/9; } }

/* ---- sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); }

.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid-feat { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(14px);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(169,139,255,0.35); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(169,139,255,0.25), rgba(255,139,208,0.2));
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band {
  margin: 20px auto;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(169,139,255,0.25), transparent 60%),
    var(--panel);
  border: 1px solid var(--panel-border);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: var(--ink-soft); margin-bottom: 28px; }

/* ---- legal / content pages ---- */
.page-hero { padding: 80px 0 30px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero .updated { color: var(--ink-faint); font-family: var(--mono); font-size: 0.85rem; }

.doc {
  max-width: 780px; margin: 0 auto; padding: 24px 0 60px;
}
.doc .panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 40px; backdrop-filter: blur(14px);
}
.doc h2 {
  font-size: 1.35rem; margin: 34px 0 12px; letter-spacing: -0.01em;
  padding-top: 20px; border-top: 1px solid var(--panel-border);
}
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(169,139,255,0.3); }
.doc a:hover { border-color: var(--accent); }
.doc strong { color: var(--ink); }
.toc {
  background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 30px;
}
.toc h4 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 12px; }
.toc ol { margin-left: 18px; }
.toc a { color: var(--ink-soft); font-size: 0.92rem; border: 0; }
.toc a:hover { color: var(--accent); }

/* ---- contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border);
  color: var(--ink); font-family: var(--font); font-size: 0.95rem; resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: rgba(169,139,255,0.06);
}
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .row .ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(107,225,255,0.2), rgba(169,139,255,0.2));
}
.contact-info .row h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-info .row p, .contact-info .row a { color: var(--ink-soft); font-size: 0.93rem; text-decoration: none; }
.contact-info .row a:hover { color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }
.form-status { margin-top: 16px; padding: 13px 16px; border-radius: 12px; font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #86efac; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 54px 0 40px;
  margin-top: 40px;
}
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--ink-faint); font-size: 0.9rem; margin-top: 14px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; margin-bottom: 10px; transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--panel-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--ink-faint); font-size: 0.85rem;
}
