/* ============================================================
   tiko.cam — Global Styles
   Black & White · Minimal · Professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --white:   #f5f5f0;
  --grey:    #1a1a1a;
  --grey2:   #2a2a2a;
  --grey3:   #3a3a3a;
  --muted:   #888;
  --accent:  #f5f5f0;
  --border:  rgba(245,245,240,0.1);
  --border2: rgba(245,245,240,0.06);
  --radius:  12px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.2s ease;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --shadow2: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--muted); line-height: 1.7; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border2);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.nav-logo span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white); color: var(--black);
}
.btn-primary:hover { background: #e0e0d8; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--white); background: rgba(245,245,240,0.05); }
.btn-ghost {
  background: transparent; color: var(--muted);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--white); }
.btn-danger {
  background: rgba(220,50,50,0.15); color: #ff6b6b;
  border: 1px solid rgba(220,50,50,0.2);
}
.btn-danger:hover { background: rgba(220,50,50,0.25); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.card-sm { padding: 1.25rem 1.5rem; border-radius: var(--radius); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-label { font-size: 0.82rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.form-control {
  background: var(--grey2); color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-size: 0.95rem; width: 100%;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: rgba(245,245,240,0.35); }
.form-control::placeholder { color: var(--muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
}
.badge-free    { background: var(--grey2); color: var(--muted); border: 1px solid var(--border); }
.badge-starter { background: rgba(245,245,240,0.08); color: var(--white); border: 1px solid var(--border); }
.badge-pro     { background: var(--white); color: var(--black); }

/* ── Progress bar ────────────────────────────────────────────── */
.progress-bar {
  background: var(--grey2); border-radius: 100px; height: 6px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--white); border-radius: 100px;
  transition: width 0.6s ease;
}

/* ── Upload zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px; padding: 3rem 2rem;
  text-align: center; cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: rgba(245,245,240,0.4);
  background: rgba(245,245,240,0.02);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; color: var(--muted); margin-bottom: 1rem; }
.upload-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.4rem; }
.upload-sub { font-size: 0.85rem; color: var(--muted); }

/* ── Section layout ─────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.page-top { padding-top: 64px; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .container { padding: 0 1.2rem; }
  h1 { font-size: 2rem; }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border2); margin: 2rem 0; }

/* ── Toast notifications ─────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--grey); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1.2rem;
  font-size: 0.9rem; box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 340px;
}
.toast.success { border-color: rgba(80,220,120,0.3); }
.toast.error   { border-color: rgba(220,80,80,0.3);  }
.toast i { font-size: 1rem; }
.toast.success i { color: #5ddb7a; }
.toast.error   i { color: #ff6b6b; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Loading spinner ─────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(10,10,10,0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-white {
  border-color: rgba(245,245,240,0.2);
  border-top-color: var(--white);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Audio player ────────────────────────────────────────────── */
.audio-result {
  background: var(--grey); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; margin-top: 2rem;
}
.audio-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
audio { width: 100%; accent-color: var(--white); }
audio::-webkit-media-controls-panel { background: var(--grey2); }

/* ── Misc utilities ─────────────────────────────────────────── */
.text-muted  { color: var(--muted); }
.text-sm     { font-size: 0.85rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-col  { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.w-full { width: 100%; }
