/* ============================================================
   DayyDL — Main Stylesheet
   Design: Dark Premium, Glassmorphism, Space Grotesk + Inter
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg:           #0a0a0f;
  --bg-2:         #0f0f18;
  --surface:      rgba(255,255,255,0.03);
  --surface-2:    rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.07);
  --border-2:     rgba(255,255,255,0.12);

  --accent-1:     #6366f1;
  --accent-2:     #8b5cf6;
  --accent-3:     #a78bfa;
  --accent-grad:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --accent-glow:  rgba(99,102,241,0.35);

  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #475569;

  --success:      #10b981;
  --error:        #f43f5e;
  --warning:      #f59e0b;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --container:    1200px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  /* Transitions */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --fast:         150ms;
  --med:          300ms;
  --slow:         500ms;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Ambient Background Orbs ───────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 22s;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: 10%; right: -150px;
  animation-duration: 18s;
  animation-delay: -8s;
}
.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation-duration: 26s;
  animation-delay: -13s;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.08); }
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  height: 64px;
  transition: background var(--med) var(--ease), border-color var(--med) var(--ease), backdrop-filter var(--med) var(--ease);
}
.navbar-scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-1);
}
.brand-icon {
  width: 32px; height: 32px;
  background: var(--accent-grad);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--fast), background var(--fast);
}
.nav-link:hover,
.nav-link-active {
  color: var(--text-1);
  background: var(--surface-2);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 1.5rem 80px;
}
.hero-content {
  width: 100%;
  max-width: 760px;
  text-align: center;
  animation: fadeUp 0.7s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-1);
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* ── Input Box ──────────────────────────────────────────────── */
.input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}
.input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 16px;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.input-box:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4);
}
.input-icon {
  font-size: 1.1rem;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color var(--med);
}
.input-box:focus-within .input-icon { color: var(--accent-3); }

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-1);
  padding: 10px 0;
  min-width: 0;
}
.url-input::placeholder { color: var(--text-3); }

.paste-btn,
.clear-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.paste-btn:hover { background: var(--surface-2); color: var(--text-1); border-color: var(--border-2); }
.clear-btn:hover { background: rgba(244,63,94,0.12); color: var(--error); border-color: rgba(244,63,94,0.25); }

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-grad);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity var(--fast), transform var(--fast), box-shadow var(--med) var(--ease);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--fast);
}
.download-btn:hover::before { background: rgba(255,255,255,0.08); }
.download-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 32px var(--accent-glow); }
.download-btn:active { transform: translateY(0); }
.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-text { display: flex; align-items: center; gap: 8px; }
.btn-loading { display: flex; align-items: center; gap: 10px; }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Platform indicator */
.platform-indicator {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease);
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.platform-tiktok  { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.platform-instagram { background: rgba(225,48,108,0.15); border: 1px solid rgba(225,48,108,0.3); color: #f9719a; }

/* Error message */
.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.25);
  border-radius: 10px;
  color: #fb7185;
  font-size: 0.875rem;
  animation: shake 0.4s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Result Card ────────────────────────────────────────────── */
.result-section {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem 80px;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.5s var(--ease) both;
}
.result-card {
  width: 100%;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
}
.result-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.result-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 9/16;
}
.result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.result-thumb-overlay {
  position: absolute;
  bottom: 6px;
  left: 6px;
}
.result-platform-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0,0,0,0.7);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}
.result-meta { flex: 1; min-width: 0; }
.result-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-1);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-chip {
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.result-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), transform var(--fast), box-shadow var(--fast);
  position: relative;
  overflow: hidden;
}
.dl-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dl-btn i { font-size: 1.3rem; }
.dl-btn-hd     { border-color: rgba(99,102,241,0.3); }
.dl-btn-hd:hover { border-color: var(--accent-1); box-shadow: 0 8px 24px var(--accent-glow); }
.dl-btn-nowm   { border-color: rgba(16,185,129,0.3); }
.dl-btn-nowm:hover { border-color: var(--success); }
.dl-btn-mp3    { border-color: rgba(245,158,11,0.3); }
.dl-btn-mp3:hover { border-color: var(--warning); }
.dl-btn-copy   { border-color: var(--border-2); }
.dl-btn-label  { font-size: 0.72rem; font-weight: 500; color: var(--text-2); }

/* ── Sections ───────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-1);
}

/* ── Features ───────────────────────────────────────────────── */
.features-section {
  position: relative;
  z-index: 1;
  padding: 100px 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--med), transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
  backdrop-filter: blur(16px);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
}
.feature-icon-wrap {
  width: 44px; height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-3);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Supported Platforms ────────────────────────────────────── */
.supported-section {
  position: relative;
  z-index: 1;
  padding: 100px 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.platform-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  transition: border-color var(--med), box-shadow var(--med) var(--ease);
}
.platform-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.platform-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.platform-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.platform-logo svg { width: 24px; height: 24px; }
.tiktok-logo  { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.instagram-logo { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.platform-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.platform-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.platform-features li i { color: var(--success); font-size: 0.9rem; }

/* ── How it works ───────────────────────────────────────────── */
.how-section {
  position: relative;
  z-index: 1;
  padding: 100px 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.steps-list {
  display: flex;
  flex-direction: column;
}
.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
}
.step-number {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-3);
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-1);
}
.step-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}
.step-connector {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 0 0 20px;
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-page {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 1.5rem 80px;
}
.contact-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-subtitle {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
}
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-1);
  transition: background var(--fast), border-color var(--fast), transform var(--med) var(--ease);
}
.contact-card:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.whatsapp-icon  { background: rgba(37,211,102,0.12); color: #25d366; border: 1px solid rgba(37,211,102,0.2); }
.github-icon    { background: rgba(255,255,255,0.06); color: var(--text-1); border: 1px solid var(--border); }
.tiktok-icon-c  { background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.email-icon     { background: rgba(99,102,241,0.12); color: var(--accent-3); border: 1px solid rgba(99,102,241,0.2); }
.contact-card-body { flex: 1; min-width: 0; }
.contact-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 3px;
}
.contact-card-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  color: var(--text-3);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color var(--fast), transform var(--fast);
}
.contact-card:hover .contact-arrow {
  color: var(--text-2);
  transform: translate(2px, -2px);
}
.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.contact-note i { color: var(--accent-3); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 1.5rem 32px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-tagline {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--fast);
}
.footer-col a:hover { color: var(--text-1); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(20,20,30,0.95);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform var(--med) var(--ease), opacity var(--med);
  opacity: 0;
  white-space: nowrap;
}
.toast.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon { color: var(--success); }

/* ── Error page ─────────────────────────────────────────────── */
.error-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.error-page p { color: var(--text-2); font-size: 1rem; }

/* ── Utilities ──────────────────────────────────────────────── */
[hidden] { display: none !important; }
.hide-mobile { display: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  .input-wrapper { flex-direction: row; }
  .download-btn  { white-space: nowrap; flex-shrink: 0; }
}
@media (min-width: 768px) {
  .result-thumb-wrap { width: 140px; }
}
@media (max-width: 639px) {
  .nav-links { display: none; }
  .result-header { flex-direction: column; }
  .result-thumb-wrap { width: 100%; aspect-ratio: 16/9; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}
