/* ==========================================
   EzayShare — Main Stylesheet
   ========================================== */

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c28;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --text: #e8e8f0;
  --muted: #6b6b80;
  --border: #2a2a3a;
  --success: #00e676;
  --radius: 12px;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,229,255,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 20% 80%, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.3);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  letter-spacing: -2px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.float-card span {
  color: var(--muted);
  font-size: 0.75rem;
}
.c1 { top: 10%; left: 5%; animation-delay: 0s; }
.c2 { top: 40%; right: 5%; animation-delay: 0.8s; }
.c3 { bottom: 10%; left: 20%; animation-delay: 1.6s; }

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

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(0,229,255,0.05); }

/* ---- AD BANNER ---- */
.ad-banner {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}
.ad-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- APP SECTION ---- */
.app-section {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: var(--accent2);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- DROP ZONE ---- */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  background: var(--surface);
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(0,229,255,0.05);
}

.drop-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.drop-zone p { margin-bottom: 0.5rem; color: var(--text); }
.drop-zone span { color: var(--muted); font-size: 0.85rem; display: block; margin-bottom: 1rem; }

/* ---- FILE LIST ---- */
.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.file-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.file-item-name { color: var(--text); }
.file-item-size { color: var(--muted); font-size: 0.78rem; }

.hidden { display: none !important; }

/* ---- PEER PANEL ---- */
.peer-panel {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.link-box {
  display: flex;
  gap: 0.5rem;
}
.link-box input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
}
.copy-btn {
  background: var(--accent2);
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
.copy-btn:hover { opacity: 0.8; }

/* ---- STATUS BAR ---- */
.status-bar {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- PROGRESS ---- */
.progress-wrap {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ---- RECEIVE BOX ---- */
.receive-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.receive-box h3 {
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.input-row {
  display: flex;
  gap: 0.5rem;
}
.input-row input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input:focus { border-color: var(--accent); }

/* ---- DOWNLOAD LIST ---- */
.download-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dl-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.dl-btn {
  background: var(--success);
  color: #000;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* ---- FEATURES ---- */
.features {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
  text-align: center;
}
.features h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.f-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
  text-align: center;
}
.how-it-works h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  letter-spacing: -1px;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  width: 180px;
}
.step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
}
.step p { color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
.arrow { color: var(--accent); font-size: 1.5rem; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 0.78rem; }

/* ---- PAGE CONTENT (for inner pages) ---- */
.page-content {
  max-width: 760px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.page-content h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
}
.page-content .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.page-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2.5rem 0 0.8rem;
  color: var(--accent);
}
.page-content p, .page-content li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.page-content ul { padding-left: 1.5rem; }
.page-content a { color: var(--accent); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: var(--muted); }
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
#formMsg { font-size: 0.85rem; color: var(--success); margin-top: 0.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }

  .hero { flex-direction: column; padding: 3rem 1.5rem 2rem; text-align: center; }
  .hero-visual { display: none; }

  .steps { flex-direction: column; align-items: center; }
  .arrow { transform: rotate(90deg); }

  .input-row { flex-direction: column; }
}
