/* Base theme variables */
:root {
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --bg: radial-gradient(1200px 600px at 10% -10%, #a855f766, transparent 60%),
        radial-gradient(1000px 600px at 110% 10%, #0ea5e966, transparent 60%),
        radial-gradient(800px 500px at -10% 110%, #f472b666, transparent 60%),
        linear-gradient(180deg, #0b1020, #0b0f19 60%, #0a0e17);
  --text: #e6eaf2;
  --muted: #a3acc4;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --accent: #8b5cf6; /* purple */
  --accent-2: #0ea5e9; /* aqua */
  --accent-3: #f472b6; /* magenta */
  --shadow-neon: 0 0 40px rgba(14, 165, 233, 0.4);
  --card-bg: rgba(15, 18, 26, 0.7);
  --grid-dark: #101522;
  --grid-light: #162033;
}

html[data-theme="light"] {
  --bg: radial-gradient(1200px 600px at 20% -20%, #a855f733, transparent 60%),
        radial-gradient(1000px 600px at 100% 0%, #0ea5e933, transparent 60%),
        radial-gradient(800px 500px at 0% 90%, #f472b633, transparent 60%),
        linear-gradient(180deg, #f7fbff, #eef3fb 60%, #e9f0fb);
  --text: #0b1020;
  --muted: #5b647a;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.7);
  --grid-dark: #f0f4ff;
  --grid-light: #e6ecfb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-blobs { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; filter: blur(80px); opacity: 0.6; }
.blob-1 { width: 40vw; height: 40vw; left: -10vw; top: -10vw; background: radial-gradient(circle at 30% 30%, #a855f7, transparent 60%); }
.blob-2 { width: 40vw; height: 40vw; right: -10vw; top: 10vh; background: radial-gradient(circle at 70% 30%, #0ea5e9, transparent 60%); }
.blob-3 { width: 40vw; height: 40vw; left: 10vw; bottom: -10vw; background: radial-gradient(circle at 50% 50%, #f472b6, transparent 60%); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-radius: 20px;
}

.header { position: sticky; top: 0; z-index: 10; margin: 16px; }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.logo { font-weight: 800; letter-spacing: 0.2px; display: flex; gap: 8px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; margin: 0 12px; font-weight: 500; }
.nav a:hover { color: var(--accent-2); }

.theme-toggle { display: inline-flex; align-items: center; cursor: pointer; }
.theme-toggle input { display: none; }
.theme-toggle .toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); backdrop-filter: blur(8px); }
.icon { width: 20px; height: 20px; fill: currentColor; }

.main { padding-bottom: 80px; }
.hero { padding: 40px 0 20px; }
.hero-text h1 { font-size: 42px; line-height: 1.1; margin: 0; }
.accent { background: linear-gradient(90deg, #a855f7, #f472b6, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 12px 0 24px; color: var(--muted); }

.upload-area { margin-top: 20px; padding: 28px; text-align: center; border: 1.4px dashed var(--glass-border); position: relative; overflow: hidden; }
.upload-area::after { content: ""; position: absolute; inset: -2px; border-radius: 20px; pointer-events: none; background: conic-gradient(from 200deg, #64edff33, #ffa6ff33, #bda6ff33, transparent 60%); filter: blur(16px); opacity: 0; transition: opacity .25s ease; }
.upload-area:hover::after { opacity: 1; }
.upload-content { display: grid; gap: 6px; align-items: center; justify-items: center; }
.upload-icon { font-size: 28px; }
.muted { color: var(--muted); }

.actions { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.pro-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.btn { border: 1px solid var(--glass-border); border-radius: 14px; padding: 10px 16px; font-weight: 600; background: var(--card-bg); color: var(--text); cursor: pointer; }
.btn:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.15); }
.btn.primary { background: linear-gradient(135deg, #a855f7, #0ea5e9); color: white; border: none; }
.btn.glow { box-shadow: var(--shadow-neon); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.progress { position: relative; height: 12px; border-radius: 999px; overflow: hidden; margin: 8px 0; padding: 2px; display: none; }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #a855f7, #f472b6, #0ea5e9); box-shadow: 0 0 12px #64edff88; transition: width .2s ease; }
.ai-animation { position: absolute; inset: 0; background: repeating-linear-gradient( 90deg, transparent, transparent 16px, #ffffff0d 16px, #ffffff0d 32px ); animation: scan 1.2s linear infinite; opacity: 0.6; }
@keyframes scan { from { transform: translateX(-20%);} to { transform: translateX(20%);} }

.result { margin-top: 16px; padding: 16px; display: none; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compare-controls { display: flex; align-items: center; gap: 12px; color: var(--muted); }
input[type="range"] { accent-color: var(--accent-2); }

.compare { position: relative; border-radius: 16px; overflow: hidden; min-height: 340px; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, var(--grid-dark) 12px, transparent 12px), linear-gradient(0deg, var(--grid-dark) 12px, transparent 12px); background-size: 24px 24px; }
.img { position: absolute; inset: 0; object-fit: contain; width: 100%; height: 100%; }
.img.after { width: 50%; border-right: 2px dashed #ffffff55; transition: width .2s ease; }
.watermark { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.35); color: white; padding: 6px 8px; border-radius: 10px; font-size: 12px; letter-spacing: 0.4px; }

.section-title { font-size: 28px; margin: 40px 0 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 18px; }
.step-icon { font-size: 24px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 18px; display: grid; gap: 6px; }
.feat-icon { font-size: 22px; }

.pricing .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 20px; border-radius: 20px; color: white; }
.card ul { list-style: none; padding: 0; margin: 8px 0 16px; }
.card li { margin: 6px 0; opacity: 0.9; }
.price { font-size: 26px; font-weight: 800; }
.gradient-1 { background: linear-gradient(135deg, #8b5cf6, #60a5fa); }
.gradient-2 { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.gradient-3 { background: linear-gradient(135deg, #60a5fa, #0ea5e9); }
.highlight { box-shadow: 0 0 40px #64edff88; transform: scale(1.02); }

.slider { padding: 12px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; align-items: center; }
.slide { display: grid; justify-items: center; gap: 8px; padding: 20px; text-align: center; }
.name { color: var(--muted); font-size: 14px; }
.slider-controls { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--card-bg); cursor: pointer; }
.dot.active { background: linear-gradient(135deg, #a855f7, #0ea5e9); border: none; }

.faq .faq-items { display: grid; gap: 10px; }
details { padding: 12px 16px; }
summary { cursor: pointer; font-weight: 600; }

.footer { margin: 30px 16px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.social { text-decoration: none; font-size: 18px; margin-right: 10px; }
.copy { color: var(--muted); }

@media (max-width: 900px) {
  .feature-grid, .steps, .pricing .cards { grid-template-columns: 1fr; }
}

