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

:root {
  --bg: #0b0d12;
  --bg2: #11141c;
  --card: #161a24;
  --line: #232a3a;
  --txt: #e8ecf5;
  --muted: #8b93a7;
  --accent: #7c5cff;
  --accent2: #2dd4bf;
  --accent3: #ff7ac6;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- animated background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.orb-1 { width: 480px; height: 480px; background: var(--accent); top: -120px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: var(--accent2); bottom: -140px; right: -80px; animation-delay: -6s; }
.orb-3 { width: 360px; height: 360px; background: var(--accent3); top: 40%; left: 55%; animation-delay: -12s; opacity: 0.3; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.6);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 16px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.brand-name { font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--txt); }

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost {
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 12px; cursor: pointer;
  border: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent3)); color: #fff; box-shadow: 0 8px 24px rgba(124,92,255,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,92,255,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--txt); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.hero-inner { max-width: 760px; text-align: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.3); color: #c9b8ff; font-size: 13px; margin-bottom: 24px; }
.hero-title { font-size: clamp(38px, 6vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -1px; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent2), var(--accent3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% 200%; animation: shimmer 6s ease infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { color: var(--muted); font-size: 18px; margin: 22px auto 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }

/* fade-up entrance */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 1; padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; letter-spacing: -0.5px; }
.section-sub { color: var(--muted); text-align: center; margin: 8px 0 40px; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .studio-grid { grid-template-columns: 1fr; } }

.dropzone {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .25s, background .25s, transform .25s;
  position: relative; overflow: hidden;
}
.dropzone:hover { border-color: var(--accent); transform: translateY(-2px); }
.dropzone.drag { border-color: var(--accent2); background: rgba(45,212,191,0.06); }
.dropzone-content { text-align: center; color: var(--muted); }
.upload-icon { font-size: 44px; color: var(--accent); margin-bottom: 12px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.drop-title { font-size: 18px; color: var(--txt); margin-bottom: 4px; }
.drop-sub { font-size: 13px; }
.dropzone-preview { text-align: center; width: 100%; padding: 16px; }
.dropzone-preview img { max-width: 100%; max-height: 280px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.preview-meta { color: var(--muted); font-size: 12px; margin-top: 10px; }

.controls { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-group label { font-size: 13px; color: var(--muted); }
.control-group label span { color: var(--accent2); font-weight: 600; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); cursor: pointer; box-shadow: 0 0 10px var(--accent); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); cursor: pointer; }

select, input[type="checkbox"] { accent-color: var(--accent); }
select { background: var(--bg2); color: var(--txt); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; cursor: pointer; }

.control-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.lock { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }

.ratio-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.ratio-btn {
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--txt); transition: border-color .2s, background .2s, transform .15s;
}
.ratio-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.ratio-btn:active { transform: translateY(0); }
.ratio-btn.active { border-color: var(--accent2); background: rgba(45,212,191,0.12); color: var(--accent2); }

/* ---------- result ---------- */
.result-wrap { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; animation: fadeUp .5s ease; }
.result-wrap h3 { margin-bottom: 16px; }
.result-canvas { display: flex; justify-content: center; background: repeating-conic-gradient(#1a1f2b 0% 25%, #11141c 0% 50%) 0 / 24px 24px; border-radius: 12px; padding: 16px; min-height: 200px; }
.result-canvas canvas { max-width: 100%; max-height: 480px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.result-info { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(124,92,255,0.18); }
.plan-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(124,92,255,0.2); }
.popular-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent3)); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; }
.plan-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.plan-tag { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 48px; font-weight: 700; }
.plan-price .cur { font-size: 24px; vertical-align: top; color: var(--muted); }
.plan-price .per { font-size: 16px; color: var(--muted); font-weight: 400; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.plan-features li { color: var(--txt); }
.plan-features li.muted { color: var(--muted); }
.plan-btn { width: 100%; }

/* ---------- faq ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; transition: border-color .2s; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { cursor: pointer; font-weight: 500; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; text-align: center; padding: 40px; color: var(--muted); border-top: 1px solid var(--line); }
.footer .brand-name { color: var(--txt); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
