/* ═══════════════════════════════════════════════
   MediConvert — Sci-Fi Official Website
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #0a0a14;
  --bg-card: rgba(10, 15, 30, 0.85);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --blue: #4d7cff;
  --purple: #a855f7;
  --green: #00ff88;
  --text: #e0e8f0;
  --text-dim: #8899aa;
  --border: rgba(0, 240, 255, 0.2);
  --glow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
  --glow-strong: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.2);
}

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

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'SF Pro Display', 'Segoe UI', 'Noto Sans SC', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════ ANIMATED BACKGROUND ═══════════ */
.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  position: fixed; top: -200px; right: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,240,255,0.08), transparent 70%);
  z-index: 0; pointer-events: none; border-radius: 50%;
}

.bg-glow-2 {
  position: fixed; bottom: -100px; left: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.06), transparent 70%);
  z-index: 0; pointer-events: none; border-radius: 50%;
}

/* ═══════════ NAVIGATION ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,20,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.2rem;
}

.nav-logo img { height: 36px; width: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.9rem; transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--cyan); transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
}

.hero-logo {
  width: 140px; height: 140px; border-radius: 28px;
  box-shadow: var(--glow-strong);
  margin-bottom: 2rem;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem; color: var(--text-dim);
  max-width: 650px; margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-bottom: 2.5rem;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--cyan-dim);
  font-size: 0.85rem; color: var(--cyan);
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer; border: none;
  position: relative; overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 25px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 35px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute; bottom: 2rem;
  display: flex; flex-direction: column; align-items: center;
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-dim); font-size: 0.75rem; gap: 6px;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ═══════════ SECTIONS ═══════════ */
section {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center; margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--cyan); margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-dim); font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.75rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ═══════════ FEATURES GRID ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--cyan-dim);
  font-size: 1.5rem; margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text);
}

.feature-card p {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.6;
}

/* ═══════════ FORMATS TABLE ═══════════ */
#formats { background: rgba(0,0,0,0.3); }

.formats-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.format-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.format-table-box:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.format-table-box h3 {
  color: var(--cyan);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.format-table-box h3 .hw-icon {
  color: var(--green);
  margin-left: 0.3rem;
}

table.format-table {
  width: 100%;
  border-collapse: collapse;
}

table.format-table th,
table.format-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,240,255,0.08);
}

table.format-table th {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

table.format-table td {
  font-size: 0.9rem;
  color: var(--text);
}

table.format-table td:first-child {
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--cyan);
}

table.format-table .speed-hw {
  color: var(--green);
  font-size: 0.8rem;
}

table.format-table .speed-sw {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.format-note {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  font-size: 0.82rem;
  color: var(--green);
  line-height: 1.5;
}

/* ═══════════ HOW IT WORKS ═══════════ */
#how-it-works { background: rgba(0,0,0,0.2); }

.workflow {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  padding: 1.5rem 0;
}

.workflow-step::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 60px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.4;
}

.workflow-step:last-child::after { display: none; }

.workflow-num {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  z-index: 2;
}

.workflow-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  flex: 1;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.workflow-content:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.15);
}

.workflow-content h4 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.workflow-content p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ═══════════ SCREENSHOTS ═══════════ */
#screenshots { background: rgba(0,0,0,0.3); }

.screenshots-grid {
  display: flex; gap: 1.5rem; overflow-x: auto;
  padding: 1rem 0; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-grid::-webkit-scrollbar { display: none; }

.screenshot-card {
  width: min(750px, 85vw);
  min-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  background: var(--bg-card);
}

.screenshot-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.screenshot-card img {
  width: 100%; height: auto; display: block;
  cursor: pointer;
  object-fit: contain;
}

.screenshots-arrows {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 1.5rem;
}

.screenshots-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--cyan);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.screenshots-arrow:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
  background: var(--cyan-dim);
}

.screenshot-label {
  padding: 0.75rem 1.2rem;
  background: rgba(0,0,0,0.6);
  font-size: 0.85rem; color: var(--text-dim);
  text-align: center;
}

.screenshots-nav {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 2rem;
}
.screenshot-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all 0.3s;
}
.screenshot-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,240,255,0.5);
}

.thumb-strip {
  display: flex; gap: 0.75rem; justify-content: center;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.thumb-strip img {
  width: 120px; height: 72px; object-fit: cover;
  border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; opacity: 0.5;
  transition: all 0.3s;
}
.thumb-strip img:hover, .thumb-strip img.active {
  opacity: 1; border-color: var(--cyan);
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92); z-index: 1000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,240,255,0.2);
}
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none;
  color: var(--text); font-size: 2.5rem;
  cursor: pointer; transition: color 0.3s; z-index: 1001;
}
.lightbox-close:hover { color: var(--cyan); }

/* ═══════════ DOWNLOAD SECTION ═══════════ */
#download {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,240,255,0.03), transparent);
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 600px; margin: 0 auto;
  backdrop-filter: blur(10px);
}

.download-box .version {
  color: var(--cyan); font-size: 0.85rem;
  margin: 0.5rem 0 1.5rem;
}

.download-box .dl-meta {
  margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════ TECH STACK ═══════════ */
#tech-stack { background: rgba(0,0,0,0.2); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.tech-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.tech-card .tech-name {
  font-weight: 700;
  color: var(--cyan);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.tech-card .tech-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ═══════════ FOOTER ═══════════ */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}

footer a { color: var(--cyan); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  list-style: none; margin-bottom: 1rem; flex-wrap: wrap;
}

/* ═══════════ LANG DROPDOWN ═══════════ */
.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.lang-toggle:hover { border-color: var(--cyan); }

.lang-arrow { font-size: 0.65rem; color: var(--text-dim); margin-left: 2px; }

.lang-menu {
  display: none;
  position: absolute;
  top: 100%; right: 0;
  margin-top: 6px;
  min-width: 150px;
  background: rgba(15, 20, 35, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(20px);
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.lang-menu.open { display: block; }

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-option:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
}
.lang-option.active {
  color: var(--cyan);
  background: rgba(0,240,255,0.08);
}

/* ═══════════ SCROLL ANIMATIONS ═══════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .screenshot-card { min-width: 90vw; }
  .hero-logo { width: 100px; height: 100px; border-radius: 20px; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .formats-wrapper { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .workflow-step { padding: 1rem 0; }
  .workflow-num { width: 36px; height: 36px; min-width: 36px; font-size: 0.85rem; }
}
