/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0B0D11;
  --bg2: #0F1117;
  --bg3: #161922;
  --bg4: #1C2030;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.1);
  --text: #E2E8F0;
  --text2: #94A3B8;
  --text3: #64748B;
  --accent: #10B981;
  --accent2: #6366F1;
  --accent-glow: rgba(16,185,129,0.15);
  --accent2-glow: rgba(99,102,241,0.12);
  --danger: #EF4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(11,13,17,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { display: flex; align-items: center; }

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-btn-ghost {
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.2s;
}

.nav-btn-ghost:hover { color: var(--text); }

.nav-btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  opacity: 0.07;
  top: -150px; left: -100px;
  animation: glow1 10s ease-in-out infinite;
}

.glow-2 {
  width: 400px; height: 400px;
  background: var(--accent2);
  opacity: 0.06;
  top: 100px; right: -100px;
  animation: glow2 12s ease-in-out infinite;
}

@keyframes glow1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes glow2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }

.hero-content { margin-bottom: 48px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text2);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  max-width: 520px;
  margin: 0 auto 60px;
}

.upload-box {
  background: var(--bg3);
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--accent);
  background: rgba(16,185,129,0.04);
}

.upload-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.upload-text {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.upload-browse {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.upload-browse:hover { text-decoration: underline; }

.upload-hint {
  color: var(--text3);
  font-size: 0.82rem;
}

/* Upload progress */
.file-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.file-name { font-weight: 600; }
.file-size { color: var(--text2); }

.progress-track {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text2);
}

/* Upload done */
.done-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.done-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.share-link-box {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.share-link {
  flex: 1;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent);
  background: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.copy-btn:hover { opacity: 0.9; }

.done-hint {
  color: var(--text3);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.upload-another {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.upload-another:hover { border-color: var(--text2); color: var(--text); }

/* ===== TRUST STATS ===== */
.trust-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 1.3rem; font-weight: 700; }
.trust-item span { font-size: 0.78rem; color: var(--text3); }
.trust-sep { width: 1px; height: 32px; background: var(--border); }

/* ===== SECTIONS COMMON ===== */
.how-it-works, .features, .security, .pricing, .cta {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--bg2); }

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 20px;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  color: var(--text2);
  margin-bottom: 16px;
}

.step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}

.step-arrow {
  color: var(--text3);
  font-size: 1.5rem;
  margin-top: 60px;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16,185,129,0.25);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== SECURITY ===== */
.security { background: var(--bg2); }

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.security-text .section-tag { display: block; margin-bottom: 12px; }

.security-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.security-text p {
  color: var(--text2);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.security-badges {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.sec-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  flex: 1;
}

.sec-badge strong { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.sec-badge span { font-size: 0.72rem; color: var(--text3); }

/* Code window */
.code-window {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.code-block {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #E6EDF3;
  overflow-x: auto;
}

.c-comment { color: #8B949E; }
.c-keyword { color: #FF7B72; }
.c-str { color: #A5D6FF; }
.c-fn { color: #D2A8FF; }
.c-num { color: #79C0FF; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.2s;
}

.price-card:hover { transform: translateY(-3px); }

.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.price-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.price-currency { font-size: 1.5rem; vertical-align: top; color: var(--text2); }
.price-mo { font-size: 1rem; font-weight: 400; color: var(--text2); }

.price-period {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}

.price-features li::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

.price-btn {
  display: block;
  padding: 12px 24px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.price-btn:hover { border-color: var(--accent); background: var(--accent-glow); }

.price-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.price-btn.primary:hover { opacity: 0.9; }

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent2-glow));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text2);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}

.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 0.85rem; color: var(--text3); max-width: 280px; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; color: var(--text); margin-bottom: 4px; text-transform: uppercase; }
.footer-links a { font-size: 0.85rem; color: var(--text3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--text3);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }
.cookie-banner a { color: var(--accent); }
.cookie-actions { flex-shrink: 0; }

.cookie-accept {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ===== MOBILE MENU ===== */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 24px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .security-badges { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .trust-sep { display: none; }
  .trust-stats { gap: 24px; }
  .hero h1 { letter-spacing: -1px; }
  .upload-box { padding: 32px 20px; }
  .cookie-banner { flex-direction: column; text-align: center; }
}
