/* style.css - Internet Archive PDF Downloader Landing Page */
/* Modern Dark Fluent Theme inspired by AS Speech Typer (abusaleh.pro.bd) */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-card: #121829;
  --bg-card-hover: #172138;
  --border-color: #1e293b;
  --border-glow: rgba(56, 189, 248, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-green: #22c55e;
  --accent-green-glow: rgba(34, 197, 94, 0.35);
  --accent-cyan: #06b6d4;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  background-repeat: no-repeat;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-nav {
  padding: 8px 18px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff !important;
  border-radius: 20px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.btn-nav:hover {
  background: #2563eb;
  border-color: #3b82f6;
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 28px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px var(--accent-green-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, #2ecc71 0%, #15803d 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: rgba(30, 41, 59, 0.6);
  color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: #475569;
  transform: translateY(-2px);
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--text-dim);
}

.hero-meta a {
  color: var(--accent-blue);
  text-decoration: none;
}

/* Interactive Mockup Section */
.mockup-wrapper {
  margin: 50px auto 30px;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  text-align: left;
}

.mockup-header {
  padding: 14px 18px;
  background: #182234;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-title h4 {
  font-size: 13.5px;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.mockup-title span {
  font-size: 11px;
  color: var(--accent-blue);
}

.mockup-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockup-res-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mockup-btn {
  padding: 8px 6px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 11.5px;
  text-align: center;
  cursor: pointer;
}

.mockup-btn.active {
  background: #2563eb;
  border-color: #60a5fa;
  color: #fff;
  font-weight: 700;
}

.mockup-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b1120;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #94a3b8;
}

.mockup-actions {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}

.mockup-btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
}

.mockup-btn-secondary {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px;
  transition: all 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

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

/* Callout Box: Borrowing Requirement */
.borrow-callout {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid #3b82f6;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 60px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.borrow-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.borrow-content h3 {
  color: #60a5fa;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.borrow-content p {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.borrow-content ol {
  padding-left: 20px;
  color: #e2e8f0;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* How to Install Section */
.install-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: #334155;
  margin-bottom: 10px;
}

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

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  background: var(--bg-secondary);
  font-size: 0.92rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .borrow-callout {
    flex-direction: column;
  }
}
