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

:root {
  --bg: #0a0a0a;
  --bg2: #111;
  --bg3: #161616;
  --text: #f5f0eb;
  --text2: #a09890;
  --accent: #e8c4a0;
  --accent2: #f4a5b0;
  --accent3: #c8a4e8;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(232,196,160,0.35); }
.btn-primary.large { padding: 14px 32px; font-size: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--accent); }
.btn-ghost.large { padding: 14px 32px; font-size: 16px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: #e8c4a0; top: -100px; right: 100px; animation-delay: 0s; }
.orb2 { width: 350px; height: 350px; background: #f4a5b0; bottom: 0; left: 200px; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: #c8a4e8; top: 200px; left: -50px; animation-delay: -6s; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-30px) scale(1.05); }
  66% { transform: translate(-15px,20px) scale(0.97); }
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-content { position: relative; flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-block;
  background: rgba(232,196,160,0.12);
  border: 1px solid rgba(232,196,160,0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { color: var(--text2); font-size: 17px; max-width: 440px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-size: 22px; font-weight: 700; color: var(--text); }
.stat-l { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

.hero-visual { position: relative; flex-shrink: 0; }
.preview-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 320px;
}
.preview-img { position: relative; }
.preview-img canvas { display: block; width: 100%; }
.preview-overlay {
  position: absolute; bottom: 12px; left: 12px;
}
.ai-label {
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.preview-controls {
  display: flex; gap: 6px; padding: 12px;
  overflow-x: auto;
}
.filter-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,196,160,0.08);
}
.float-card {
  position: absolute;
  background: rgba(22,22,22,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(20px);
  animation: floatBob 4s ease-in-out infinite;
}
.card-beauty { top: 30px; right: -70px; animation-delay: 0s; }
.card-viral { bottom: 60px; right: -60px; animation-delay: -2s; }

@keyframes floatBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon { font-size: 18px; }
.fc-title { font-size: 13px; font-weight: 600; color: var(--text); }
.fc-sub { font-size: 11px; color: var(--text2); }

/* ─── CONTAINERS ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  margin-bottom: 48px;
  line-height: 1.1;
}

/* ─── FEATURES ─── */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: rgba(232,196,160,0.25); transform: translateY(-2px); }
.feat-big { grid-column: span 2; }
.feat-wide { grid-column: span 2; }
.feat-icon { font-size: 24px; color: var(--accent); margin-bottom: 14px; }
.feat-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feat-card p { color: var(--text2); font-size: 14px; line-height: 1.6; }
.feat-pills { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.feat-pills span {
  background: rgba(232,196,160,0.1);
  color: var(--accent);
  border: 1px solid rgba(232,196,160,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
}
.viral-meter { margin-top: 20px; }
.vm-label { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.vm-bar {
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}
.vm-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 50px;
  animation: barFill 1.5s ease-out;
}
@keyframes barFill { from { width: 0; } }
.vm-score { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ─── STUDIO ─── */
.studio { padding: 100px 0; }
.studio-app {
  display: grid;
  grid-template-columns: 64px 1fr 260px;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  height: 600px;
}
.studio-sidebar {
  background: var(--bg3);
  border-right: 1px solid var(--border);
  padding: 16px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.tool-label { font-size: 10px; color: var(--text2); text-align: center; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.tool-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text2);
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-family: var(--font-body);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: all .2s;
}
.tool-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.tool-btn.active { background: rgba(232,196,160,0.12); color: var(--accent); }
.tool-ic { font-size: 16px; }

.studio-canvas-area {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
}
.canvas-toolbar {
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.format-btns { display: flex; gap: 4px; }
.fmt-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s;
}
.fmt-btn.active, .fmt-btn:hover { border-color: var(--accent); color: var(--accent); }
.canvas-actions { display: flex; gap: 8px; }
.ca-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s;
}
.ca-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

.canvas-wrapper {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.upload-zone {
  width: 100%; height: 100%;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s;
}
.upload-zone:hover { border-color: rgba(232,196,160,0.4); }
.uz-content { text-align: center; }
.uz-icon { font-size: 36px; color: var(--accent); margin-bottom: 12px; }
.uz-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.uz-sub { font-size: 13px; color: var(--text2); }

/* ─── STUDIO PANEL ─── */
.studio-panel { padding: 16px; overflow-y: auto; }
.panel-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text2); margin-bottom: 10px; }
.filters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filter-thumb {
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  transition: color .2s;
}
.filter-thumb.active { color: var(--accent); }
.ft-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 4px;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.filter-thumb.active .ft-preview { border-color: var(--accent); }
.ft-none { background: linear-gradient(135deg, #444 0%, #222 100%); }
.ft-glamour { background: linear-gradient(135deg, #f4d0c0 0%, #e8a0a0 50%, #c87090 100%); }
.ft-golden { background: linear-gradient(135deg, #f9d080 0%, #e8a040 50%, #c87820 100%); }
.ft-cinematic { background: linear-gradient(135deg, #203050 0%, #102030 50%, #000820 100%); }
.ft-neon { background: linear-gradient(135deg, #200040 0%, #601080 50%, #a030f0 100%); }
.ft-dreamy { background: linear-gradient(135deg, #e0d8f8 0%, #c8b8f0 50%, #a090e0 100%); }
.ft-vintage { background: linear-gradient(135deg, #d4b896 0%, #b89068 50%, #8c6840 100%); }
.ft-bw { background: linear-gradient(135deg, #888 0%, #444 50%, #111 100%); }
.ft-rose { background: linear-gradient(135deg, #f8d0d8 0%, #f0a0b8 50%, #d86090 100%); }

.slider-row {
  display: flex; align-items: center; gap: 10px;
}
.slider-row input[type=range] {
  flex: 1;
  accent-color: var(--accent);
  height: 4px;
}
.slider-row span { font-size: 12px; color: var(--text2); min-width: 32px; text-align: right; }

.beauty-sliders { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.bs-row { display: flex; flex-direction: column; gap: 5px; }
.bs-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); }
.bs-row input[type=range] { width: 100%; accent-color: var(--accent); }

.panel-btn {
  width: 100%;
  background: rgba(232,196,160,0.1);
  border: 1px solid rgba(232,196,160,0.25);
  color: var(--accent);
  padding: 9px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all .2s;
  font-weight: 500;
}
.panel-btn:hover { background: rgba(232,196,160,0.18); }
.panel-btn.big { padding: 12px; font-size: 14px; }

.text-style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.ts-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}
.ts-btn.active, .ts-btn:hover { border-color: var(--accent); color: var(--accent); }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.color-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s;
}
.color-dot:hover, .color-dot.active { transform: scale(1.2); border-color: rgba(255,255,255,0.5); }

.viral-score-display { text-align: center; padding: 20px 0; }
.vsd-number { font-family: var(--font-display); font-size: 56px; font-weight: 900; color: var(--accent); }
.vsd-label { font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.viral-breakdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vb-item { display: flex; flex-direction: column; gap: 4px; }
.vb-item span { font-size: 12px; color: var(--text2); }
.vb-bar {
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  height: 5px;
}
.vb-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 50px;
  width: 0;
  transition: width 1s ease;
}
.viral-tips { font-size: 12px; color: var(--text2); line-height: 1.7; }
.platform-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.plt-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 4px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  transition: all .2s;
}
.plt-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SHOWCASE ─── */
.showcase { padding: 100px 0; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.beauty-demo { display: flex; align-items: center; gap: 16px; }
.bd-before, .bd-after { position: relative; }
.bd-before canvas, .bd-after canvas { display: block; border-radius: var(--radius); width: 220px; }
.bd-tag {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.8);
  color: var(--text2);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.bd-divider { font-size: 24px; color: var(--accent); }
.beauty-features { display: flex; flex-direction: column; gap: 24px; }
.bf-item { display: flex; gap: 16px; }
.bf-icon { font-size: 20px; color: var(--accent); width: 32px; flex-shrink: 0; padding-top: 2px; }
.bf-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.bf-item p { font-size: 14px; color: var(--text2); }

/* ─── VIRAL SECTION ─── */
.viral-section { padding: 100px 0; }
.viral-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .2s;
}
.vc-card:hover { transform: translateY(-4px); border-color: rgba(232,196,160,0.2); }
.vc-card.featured { border-color: rgba(232,196,160,0.3); background: rgba(232,196,160,0.05); }
.vc-platform {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.tiktok { background: rgba(0,242,234,0.12); color: #00f2ea; }
.instagram { background: rgba(244,165,176,0.15); color: var(--accent2); }
.youtube { background: rgba(255,80,80,0.12); color: #ff5050; }
.vc-stat { font-size: 22px; font-weight: 700; margin-bottom: 8px; font-family: var(--font-display); }
.vc-desc { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.vc-score { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ─── CTA ─── */
.cta-section {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-content { position: relative; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 16px;
}
.cta-content p { color: var(--text2); font-size: 18px; margin-bottom: 32px; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 2px; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text2); }

/* ─── MODAL ─── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: calc(100% - 40px);
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--text2);
  font-size: 18px; cursor: pointer;
}
.modal-title {
  font-family: var(--font-display); font-weight: 900; font-size: 28px;
  letter-spacing: 2px; margin-bottom: 12px;
}
.modal-title span { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 80px 20px 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-big, .feat-wide { grid-column: span 1; }
  .studio-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; height: auto; }
  .studio-sidebar { flex-direction: row; overflow-x: auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .beauty-demo { justify-content: center; }
  .viral-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .features, .studio, .showcase, .viral-section { padding: 60px 0; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
