
:root {
  --bg: #06091d;
  --bg2: #0e1435;
  --glass: rgba(17, 22, 55, 0.65);
  --line: rgba(255,255,255,0.12);
  --text: #f5f7ff;
  --muted: #c0caef;
  --pink: #ff4fa9;
  --violet: #7f5cff;
  --orange: #ff8a57;
  --green: #2de0b5;
  --shadow: 0 24px 80px rgba(0,0,0,0.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html,body { margin:0; padding:0; min-height:100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background:
radial-gradient(circle at 20% 20%, rgba(127,92,255,.18), transparent 25%),
radial-gradient(circle at 80% 10%, rgba(255,79,169,.14), transparent 22%),
radial-gradient(circle at 50% 100%, rgba(255,138,87,.16), transparent 25%),
linear-gradient(180deg, var(--bg), var(--bg2)); }
body { padding: 18px; }
a { color: inherit; text-decoration: none; }
.app-shell { max-width: 980px; margin: 0 auto; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-logo { width:64px; height:64px; border-radius:18px; box-shadow: var(--shadow); }
.brand-text { display:flex; flex-direction:column; }
.brand-text strong { font-size:1.4rem; letter-spacing:0.01em; }
.brand-text span { color: var(--muted); font-size:0.95rem; }
.lang-toggle {
  border:1px solid var(--line); color: var(--text); background: rgba(255,255,255,0.06);
  border-radius: 999px; padding: 12px 16px; cursor:pointer; font-weight:700; min-width:58px;
}
.glass { background: var(--glass); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.hero { display:grid; grid-template-columns: 1.5fr 1fr; gap:24px; padding:32px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:0.8rem; letter-spacing:.12em; text-transform:uppercase; color:var(--green); font-weight:700; }
#heroTitle { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; margin: 12px 0 14px; max-width: 12ch; }
#heroSubtitle { color: var(--muted); font-size:1.08rem; line-height:1.6; max-width:62ch; }
.hero-side { display:flex; align-items:center; justify-content:center; }
.preview-card {
  width:100%; min-height:220px; border-radius:28px;
  background: linear-gradient(160deg, rgba(127,92,255,.22), rgba(255,79,169,.15) 40%, rgba(255,138,87,.18));
  border:1px solid rgba(255,255,255,.15); padding:26px;
}
.preview-head { color: var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }
.preview-type { font-size: 2rem; font-weight: 800; margin: 12px 0 22px; }
.preview-tags { display:flex; flex-wrap:wrap; gap:8px; }
.preview-tags span, .emotion-tags span, .prompt-tags span {
  padding: 8px 12px; border-radius:999px; background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.08);
  font-size: .9rem; color:#fff;
}
.form-card, .how-it-works, .progress-bar-wrap, .song-card, .loading-card, .result-hero, .share-card, .share-actions, .trends, .ad-slot { margin-top: 18px; }
.form-card { padding:24px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-bottom:16px; }
label span { display:block; margin-bottom:8px; color:var(--muted); font-weight:600; }
input, textarea {
  width:100%; border-radius: 18px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  padding: 16px 18px; color:var(--text); font-size:1rem; outline:none;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { border-color: rgba(127,92,255,.65); box-shadow: 0 0 0 3px rgba(127,92,255,.18); }
.primary-btn, .secondary-btn, .ghost-btn, .share-btn {
  border:none; cursor:pointer; border-radius: 999px; padding: 14px 22px; font-weight: 700; transition:.2s transform, .2s opacity, .2s background;
}
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .share-btn:hover { transform: translateY(-1px); }
.primary-btn { background: linear-gradient(90deg, var(--violet), var(--pink), var(--orange)); color:white; }
.secondary-btn { background: rgba(127,92,255,.18); color:white; border:1px solid rgba(127,92,255,.4); }
.ghost-btn { background: rgba(255,255,255,.06); color:white; border:1px solid rgba(255,255,255,.08); }
.large-btn { width:100%; margin-top:6px; }
.microcopy { color: var(--muted); font-size: .92rem; line-height:1.5; }
.how-it-works { padding:24px; }
.how-it-works h2, .trends h3 { margin-top:0; }
.steps { display:grid; grid-template-columns: repeat(5, 1fr); gap:14px; }
.steps article { padding:16px; border-radius:20px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); }
.steps article span { display:inline-flex; width:36px; height:36px; border-radius:50%; align-items:center; justify-content:center; background: rgba(127,92,255,.24); font-weight:800; margin-bottom:10px; }
.ad-slot { padding:18px; text-align:center; color: var(--muted); min-height: 84px; display:flex; align-items:center; justify-content:center; }
.progress-bar-wrap { padding:18px; }
.progress-meta { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.progress-track { height:10px; border-radius:999px; background: rgba(255,255,255,.08); overflow:hidden; }
.progress-bar { height:100%; width:20%; background: linear-gradient(90deg, var(--violet), var(--pink), var(--orange)); border-radius:999px; }
.song-card { padding:24px; display:grid; gap:18px; }
.player-wrap { display:grid; gap:14px; }
.video-frame { border-radius:22px; overflow:hidden; border:1px solid rgba(255,255,255,.08); background:#000; min-height: 280px; }
.video-frame iframe { width:100%; min-height:280px; border:0; }
.question-block h2 { margin:0 0 8px; font-size:1.7rem; }
.question-block p { margin:0 0 14px; color:var(--muted); line-height:1.55; }
.prompt-tags { display:flex; flex-wrap:wrap; gap:8px; }
.input-modes, .actions, .share-buttons { display:flex; flex-wrap:wrap; gap:12px; }
.recording-status { padding:12px 14px; border-radius:16px; background: rgba(255,79,169,.14); border:1px solid rgba(255,79,169,.28); color:#fff; }
.loading-card, .result-hero, .share-card, .share-actions, .trends { padding:24px; }
.loading-card { min-height: 280px; display:grid; place-items:center; text-align:center; gap:14px; }
.loader { width:64px; height:64px; border-radius:50%; border:4px solid rgba(255,255,255,.12); border-top-color: var(--pink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-hero { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.share-card { position:relative; overflow:hidden; background: linear-gradient(140deg, rgba(127,92,255,.25), rgba(255,79,169,.12) 46%, rgba(255,138,87,.16)); }
.share-card::after { content:""; position:absolute; inset:-40% auto auto 55%; width:320px; height:320px; border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 55%); }
.share-card-top { display:flex; align-items:center; gap:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }
.share-logo { width:34px; height:34px; border-radius:10px; }
#profileName { font-size: clamp(2rem, 5vw, 3.2rem); line-height:1.04; margin: 14px 0 16px; max-width: 12ch; position:relative; z-index:1; }
.result-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; position:relative; z-index:1; }
.result-label { display:block; color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }
.summary-text { margin-top:16px; line-height:1.7; color:#eef1ff; position:relative; z-index:1; font-size:1.02rem; }
.share-buttons { margin-top:12px; }
.share-btn { background: rgba(255,255,255,.08); color:white; min-width:52px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(255,255,255,.1); }
.icon-fb,.icon-x,.icon-wa,.icon-tg,.icon-ms { width:48px; height:48px; font-size:1.1rem; }
.trends-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.stats-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:18px; }
.stats-card { padding:18px; border-radius:20px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); }
.stats-card h4 { margin:0 0 14px; }
.stat-list { display:grid; gap:10px; }
.stat-row { display:flex; justify-content:space-between; gap:14px; color:var(--muted); }
.footer { margin: 26px 0 10px; text-align:center; color:var(--muted); }
.footer-links { display:flex; align-items:center; justify-content:center; gap:18px; margin-bottom:10px; }
.hidden { display:none !important; }

@media (max-width: 860px) {
  .hero, .result-grid, .steps, .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .result-hero, .trends-head { flex-direction:column; }
  .video-frame, .video-frame iframe { min-height: 220px; }
}
@media (max-width: 560px) {
  body { padding:12px; }
  .brand-logo { width:56px; height:56px; }
  .hero, .form-card, .how-it-works, .song-card, .loading-card, .result-hero, .share-card, .share-actions, .trends, .progress-bar-wrap { padding:18px; }
  #heroTitle { max-width: none; }
  #profileName { max-width:none; }
}


.insight-block{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.insight-block h3{margin:0 0 10px;font-size:1rem;font-weight:700;color:#fff}
.insight-list{margin:0;padding-left:18px;display:grid;gap:10px;color:#d9def7}
.insight-list li{line-height:1.55}


.seo-section { padding: 28px; margin-top: 24px; }
.seo-section h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.seo-section p { color: var(--muted); line-height: 1.72; margin: 0 0 14px; }
.seo-section a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.seo-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.seo-links a {
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.06);
  border:1px solid var(--line); text-decoration:none; color:var(--text);
}
.footer { padding-bottom: 24px; }

@media (max-width: 768px) {
  .seo-section { padding: 22px; }
  .seo-links { flex-direction: column; }
}
