/* Design tokens matched to nestler.world/about (Differson LLC's existing
   site) so Scenetimental reads as part of the same family. */
:root {
  --bg: #090912;
  --bg-alt: #10101c;
  --panel: #0f1220;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f5;
  --text-dim: #9a9ab3;
  --accent: #5de4c7;
  --accent-on: #071018;      /* text color placed on top of the accent color */
  --accent-soft: rgba(93,228,199,0.08);
  --accent-border: rgba(93,228,199,0.2);
  --danger: #e35d5d;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Pretendard, "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}
a { color: inherit; }
img, video { max-width: 100%; }
hr.divider { border: none; border-top: 1px solid var(--border); max-width: 1080px; margin: 0 auto; }

/* ---------- header / nav ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(9,9,18,0.85);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav { display: flex; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--text-dim);
  margin-left: 24px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
nav a:hover, nav a.active { color: var(--text); }
nav a .navicon { margin-right: 5px; opacity: 0.7; }
nav a#authTrigger {
  background: var(--accent);
  color: var(--accent-on);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.15s;
}
nav a#authTrigger:hover { opacity: 0.85; color: var(--accent-on); }
nav .credits-badge {
  margin-left: 24px;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-on);
  padding: 13px 28px;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: var(--font);
  transition: opacity 0.15s, transform 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn.secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); opacity: 1; }
.btn.small { padding: 8px 18px; font-size: 0.8rem; }
.btn.full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.danger { background: var(--danger); color: #1a0505; }
.btn.danger:hover { opacity: 0.85; }

/* ---------- hero ---------- */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(93,228,199,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero .badge-pill {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--accent); }
.hero p {
  font-size: 1.02rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero .tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; justify-content: center; }
.hero .tagrow span {
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- generic sections ---------- */
section { padding: 80px 24px; max-width: 1080px; margin: 0 auto; }
section.tight { padding-top: 50px; padding-bottom: 50px; }
.section-head .section-label,
.section-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.section-head h2, .section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-head p.sub, .section-body {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.max-width { max-width: 1080px; margin: 0 auto; }

/* ---------- feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.feature .ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 16px;
}
.feature h3, .feat-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature p, .feat-body { font-size: 0.88rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 14px; }
.feature .ftags { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.02em; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
}
.step .stepnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 0.95rem; margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* ---------- built-by block ---------- */
.built-section { text-align: center; padding: 60px 24px; }
.built-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 10px; }
.built-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.built-body { font-size: 0.9rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 20px; line-height: 1.7; }
.built-contact { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.built-contact:hover { text-decoration: underline; }

/* ---------- pricing ---------- */
.pricing-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 640px;
  font-style: italic;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.plan {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
}
.plan.highlight { border-color: var(--accent-border); background: linear-gradient(180deg, rgba(93,228,199,0.05), transparent); }
.plan .badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.plan .plan-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.plan .plan-tagline { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 18px; }
.plan .plan-price { font-size: 2.1rem; font-weight: 800; margin-bottom: 2px; }
.plan .plan-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.plan .plan-usage { font-size: 0.8rem; color: var(--accent); margin-bottom: 20px; }
.plan ul { list-style: none; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 22px; }
.plan li { padding: 7px 0; border-top: 1px solid var(--border); }
.plan li:first-child { border-top: none; }
.contact-sales {
  margin-top: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-sales h3 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-sales p { font-size: 0.82rem; color: var(--text-dim); max-width: 460px; }

.faq { margin-top: 48px; max-width: 700px; }
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item h4 { font-size: 0.9rem; margin-bottom: 6px; }
.faq-item p { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- panel / form controls (demo, studio, dashboard) ---------- */
.panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  color: var(--text-dim);
}
.tab.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
label:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"], textarea, select, input[type="number"] {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: var(--font);
}

/* Chrome/Safari autofill also forces its own white background + black text
   on inputs it has suggestions for (independent of the type="password" fix
   above) - override it back to the dark theme. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-alt) inset;
  box-shadow: 0 0 0px 1000px var(--bg-alt) inset;
  transition: background-color 5000s ease-in-out 0s;
}
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); }
.checkbox-row input { width: auto; margin-top: 3px; }

.demo-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; }
@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
  header { padding: 16px 20px; }
  section { padding: 60px 20px; }
  .hero { padding: 80px 20px 48px; }
}

.output {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.output img, .output video { max-width: 100%; max-height: 560px; border-radius: 10px; border: 1px solid var(--border); }
.output .placeholder { color: var(--text-dim); font-size: 0.9rem; text-align: center; }
.status-line { margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); text-align: center; }
.status-line.error { color: var(--danger); }

.config-note {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.config-note code { color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }

/* ---------- dashboard-specific ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.stat-card .label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.stat-card .value { font-size: 1.6rem; font-weight: 800; }
.stat-card .value.small { font-size: 1rem; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.gallery-item img, .gallery-item video { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.gallery-item .meta { padding: 10px 14px; font-size: 0.78rem; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
.gallery-item a.download { color: var(--accent); text-decoration: none; }
.gallery-empty { color: var(--text-dim); font-size: 0.88rem; padding: 40px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; }

.badge-role { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }

/* ---------- auth modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 380px;
  max-width: 90vw;
  position: relative;
}
.modal .close-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 18px; cursor: pointer;
}
.modal h2 { font-size: 1.25rem; margin-bottom: 20px; font-weight: 800; }
.modal .tabs { margin-bottom: 20px; }
.modal .auth-status { font-size: 0.82rem; color: var(--text-dim); margin-top: 14px; text-align: center; }
.modal .auth-status.error { color: var(--danger); }

/* ---------- legal page prose ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 60px 24px 100px; }
.legal h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.1rem; margin: 32px 0 12px; font-weight: 700; }
.legal p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; line-height: 1.75; }
.legal ul { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 14px 20px; line-height: 1.75; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; font-size: 0.82rem; color: var(--text-dim); margin: 24px 0;
}

/* ---------- footer ---------- */
footer {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer nav { display: flex; gap: 20px; }
footer nav a { margin-left: 0; color: var(--text-dim); font-size: 0.82rem; }
footer nav a:hover { color: var(--text); }
footer > div:last-child { font-size: 0.78rem; color: #4a4a6a; }
