/* ===== SquishVideo Global Styles ===== */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --accent: #5cff8a;
  --accent-dim: #5cff8a22;
  --discord: #5865F2;
  --telegram: #26A5E4;
  --whatsapp: #25D366;
  --email: #EA4335;
  --instagram: #E4405F;
  --twitter: #1DA1F2;
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Hero glow */
.hero-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== Navigation ===== */
nav {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--accent);
  text-decoration: none;
}
.logo span { color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.nav-lang {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== Platform Pills ===== */
.platforms {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.platform-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text);
  text-decoration: none;
}

.platform-pill:hover { transform: translateY(-2px); }
.platform-pill.active { border-color: currentColor; }

.platform-pill[data-platform="discord"] { --pill-color: var(--discord); }
.platform-pill[data-platform="discord"].active { color: var(--discord); background: #5865F211; }

.platform-pill[data-platform="telegram"] { --pill-color: var(--telegram); }
.platform-pill[data-platform="telegram"].active { color: var(--telegram); background: #26A5E411; }

.platform-pill[data-platform="whatsapp"] { --pill-color: var(--whatsapp); }
.platform-pill[data-platform="whatsapp"].active { color: var(--whatsapp); background: #25D36611; }

.platform-pill[data-platform="email"] { --pill-color: var(--email); }
.platform-pill[data-platform="email"].active { color: var(--email); background: #EA433511; }

.platform-pill[data-platform="instagram"] { --pill-color: var(--instagram); }
.platform-pill[data-platform="instagram"].active { color: var(--instagram); background: #E4405F11; }

.platform-pill[data-platform="twitter"] { --pill-color: var(--twitter); }
.platform-pill[data-platform="twitter"].active { color: var(--twitter); background: #1DA1F211; }

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pill-limit {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.upload-zone h3 {
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-dim);
  font-size: 14px;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-formats {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.format-tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ===== Progress & Results ===== */
.compress-progress {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-filename {
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.progress-status {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--mono);
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.result-stats {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.stat-block label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--mono);
  display: block;
  margin-bottom: 4px;
}

.stat-block .value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
}

.stat-arrow { font-size: 24px; color: var(--accent); }

.stat-saved {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  padding: 8px;
  background: var(--accent-dim);
  border-radius: 8px;
}

.download-btn {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.download-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ===== Error message ===== */
.error-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 20px;
  background: #ff4d4d15;
  border: 1px solid #ff4d4d44;
  border-radius: 10px;
  color: #ff6b6b;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

/* ===== How Section ===== */
.how-section {
  padding: 80px 0 40px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: center;
}

.how-section h2 {
  font-family: var(--mono);
  font-size: 28px;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -1px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.step-card:hover { border-color: var(--accent); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-family: var(--mono);
  font-size: 15px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ===== SEO Content Sections ===== */
.seo-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.seo-section h2 {
  font-family: var(--mono);
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.seo-section p {
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 12px;
}

.limit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.limit-table th,
.limit-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.limit-table th {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  background: var(--surface);
}

.limit-table td {
  font-family: var(--mono);
  font-size: 13px;
}

/* ===== Platform Cards Grid ===== */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 640px) {
  .platform-cards { grid-template-columns: 1fr; }
}

.platform-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.platform-card h3 {
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.platform-card .card-limit {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--surface2);
  border-radius: 6px;
  display: inline-block;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-family: var(--mono);
  font-size: 22px;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-align: center;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}

.faq-q {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after { content: '+'; font-size: 18px; color: var(--text-dim); }
.faq-item.open .faq-q::after { content: '\2212'; color: var(--accent); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  padding: 0 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 16px;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .how-section, .seo-section, .faq-section {
  animation: fadeUp 0.6s ease-out both;
}
.how-section { animation-delay: 0.1s; }
.seo-section { animation-delay: 0.15s; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .separator { margin: 0 8px; }

/* ===== Ad Placeholder ===== */
.ad-slot {
  padding: 20px;
  margin: 24px 0;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  font-family: var(--mono);
}
