/* ===== creatora.app — common styles ===== */

:root {
  --bg: #0c0c14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent-glow: rgba(124,58,237,0.3);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --green: #22c55e;
  --yellow: #eab308;
  --blue: #3b82f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 18px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-logo .accent { color: var(--accent2); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Language switcher */
.lang-switch {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 6px;
  font-size: 13px; cursor: pointer;
}
.lang-switch summary {
  list-style: none; display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; color: var(--text-muted); font-weight: 500;
  cursor: pointer;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; min-width: 120px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 200;
}
.lang-dropdown a {
  display: block; padding: 6px 12px; border-radius: 6px;
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  transition: all 0.15s;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-dropdown a.active { color: var(--accent2); font-weight: 600; }

/* Mobile nav */
.nav-hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 24px; cursor: pointer;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(12,12,20,0.98); backdrop-filter: blur(12px);
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 200;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2); transform: translateY(-1px);
  box-shadow: 0 0 36px var(--accent-glow);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05); transform: translateY(-1px);
}
.btn-green {
  background: var(--green); color: #fff;
  box-shadow: 0 0 24px rgba(34,197,94,0.3);
}
.btn-green:hover {
  background: #16a34a; transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 24px; max-width: 1100px; margin: 0 auto;
  position: relative; overflow: hidden;
}
section::before {
  content: '';
  position: absolute; top: -120px; left: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 12px;
  position: relative;
}
h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted); font-size: 17px;
  max-width: 600px; margin-bottom: 52px;
}
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== HERO (home) ===== */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 60px; position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto; gap: 60px;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-visual {
  flex: 0 0 320px; position: relative;
}
#hero-sound-btn:hover { transform: scale(1.1); background: rgba(124,58,237,1); }
.hero-visual img, .hero-visual video {
  width: 100%; max-width: 320px; border-radius: 24px;
  box-shadow: 0 0 60px rgba(124,58,237,0.2);
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  color: var(--accent2); margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 24px;
}
h1 .grad {
  background: linear-gradient(135deg, #a855f7, #7c3aed, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted);
  max-width: 560px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Typewriter */
.typewriter {
  font-size: 20px; color: var(--text); font-weight: 500;
  min-height: 60px; margin-bottom: 32px;
}
.typewriter .cursor {
  display: inline-block; width: 2px; height: 1.2em;
  background: var(--accent2); margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

@media (max-width: 768px) {
  .hero {
    flex-direction: column; text-align: center;
    min-height: auto; padding: 40px 24px;
  }
  .hero-visual { flex: none; width: 220px; }
  .hero-actions { justify-content: center; }
  .features-grid-3 { grid-template-columns: 1fr !important; }
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== PRIVACY SECTION ===== */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.privacy-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.privacy-card:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-2px); }
.privacy-card .feature-icon { font-size: 24px; margin-bottom: 14px; }
.privacy-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.privacy-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.privacy-highlight {
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15);
  border-radius: 16px; padding: 32px; margin-bottom: 40px;
  display: flex; align-items: flex-start; gap: 20px;
}
.privacy-highlight .shield { font-size: 40px; flex-shrink: 0; }
.privacy-highlight h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--green); }
.privacy-highlight p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ===== ROADMAP ===== */
.roadmap { display: flex; flex-direction: column; gap: 14px; }
.roadmap-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px;
}
.roadmap-item.done { border-color: rgba(34,197,94,0.2); }
.roadmap-item.in-progress { border-color: rgba(168,85,247,0.3); background: rgba(124,58,237,0.05); }
.roadmap-item.planned { opacity: 0.7; }
.status-badge {
  flex-shrink: 0; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-top: 2px;
}
.status-done { background: rgba(34,197,94,0.15); color: var(--green); }
.status-progress { background: rgba(168,85,247,0.2); color: var(--accent2); }
.status-planned { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.roadmap-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.roadmap-item p { font-size: 13px; color: var(--text-muted); }

/* ===== DOWNLOAD ===== */
.download-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 24px; padding: 60px 40px; text-align: center;
}
.download-section h2 { margin-bottom: 12px; }
.download-section p { color: var(--text-muted); margin-bottom: 36px; font-size: 16px; }
.download-meta {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  margin-top: 28px; font-size: 13px; color: var(--text-muted);
}
.download-meta span { display: flex; align-items: center; gap: 6px; }
.warn-box {
  display: inline-block; margin-top: 20px;
  background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2);
  border-radius: 10px; padding: 10px 20px; font-size: 13px; color: #fcd34d;
}

/* ===== FEEDBACK / FORMS ===== */
.feedback-section { background: var(--bg3); border-radius: 24px; padding: 52px 40px; }
.feedback-section h2 { margin-bottom: 8px; }
.feedback-section .section-sub { margin-bottom: 36px; }
form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
input, textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; color: var(--text);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ===== UPDATES / TIMELINE ===== */
.updates-list { display: flex; flex-direction: column; gap: 24px; }
.update-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.2s;
}
.update-card:hover { border-color: rgba(124,58,237,0.3); }
.update-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.update-date { font-size: 13px; color: var(--text-muted); }
.update-tag {
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-feature { background: rgba(124,58,237,0.15); color: var(--accent2); }
.tag-fix { background: rgba(59,130,246,0.15); color: var(--blue); }
.tag-milestone { background: rgba(34,197,94,0.15); color: var(--green); }
.tag-announcement { background: rgba(234,179,8,0.15); color: var(--yellow); }
.update-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.update-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.update-card ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 12px; font-size: 14px; color: var(--text-muted);
}
.update-card ul li strong { color: var(--text); }
.update-benefit {
  margin-top: 14px; padding: 10px 16px;
  background: rgba(124,58,237,0.06); border-radius: 10px;
  font-size: 13px; color: var(--accent2);
}

/* ===== LIVEFACE SECTION ===== */
.liveface-hero {
  display: flex; align-items: center; gap: 60px;
  padding: 80px 24px; max-width: 1100px; margin: 0 auto;
}
.liveface-hero .visual { flex: 0 0 300px; }
.liveface-hero .visual img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 0 40px rgba(124,58,237,0.15);
}
.liveface-hero .content { flex: 1; }
.patent-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  font-weight: 700; color: var(--green); letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 20px;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text { 0%,100%{opacity:1} 50%{opacity:0.4} }
@media (max-width: 768px) {
  .liveface-hero { flex-direction: column; text-align: center; gap: 30px; }
  .liveface-hero .visual { flex: none; width: 200px; }
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; font-size: 14px;
}
.compare-table th {
  background: var(--bg3); padding: 14px 20px; text-align: left;
  font-weight: 700; font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-table th:first-child { color: var(--accent2); }
.compare-table td {
  padding: 12px 20px; border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table .highlight { color: var(--green); font-weight: 600; }

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px; margin: 0 auto; padding: 40px 24px 80px;
}
.legal-content h1 {
  font-size: 36px; margin-bottom: 8px;
}
.legal-content .effective-date {
  color: var(--text-muted); font-size: 14px; margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 22px; margin-top: 48px; margin-bottom: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 17px; font-weight: 700; margin-top: 28px; margin-bottom: 10px;
}
.legal-content p {
  font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content li {
  font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px;
}
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
  font-size: 14px;
}
.legal-content table th, .legal-content table td {
  padding: 10px 14px; text-align: left;
  border: 1px solid var(--border); color: var(--text-muted);
}
.legal-content table th { background: var(--bg3); color: var(--text); font-weight: 600; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent2); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.footer-legal {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 8px; font-size: 13px;
}
.footer-patent {
  color: var(--yellow); font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; margin-top: 8px;
}
