/* ===================================================
   PDF BOX — Design System
   Colors: Aqua (#00E5FF, #00BCD4, #26C6DA) + Navy/Black (#0A0F2E, #0D1B3E, #121929)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --aqua-bright: #00E5FF;
  --aqua-mid: #00BCD4;
  --aqua-soft: #26C6DA;
  --aqua-pale: #00E5FF22;
  --navy-deep: #020812;
  --navy-dark: #0A0F2E;
  --navy-mid: #0D1B3E;
  --navy-light: #122040;
  --navy-card: #0F1A35;
  --navy-border: #1a2d50;
  --navy-hover: #162340;
  --text-primary: #E8F4FF;
  --text-secondary: #8BB4CC;
  --text-muted: #4A7090;
  --white: #ffffff;

  /* Gradients */
  --grad-aqua: linear-gradient(135deg, #00E5FF, #00BCD4);
  --grad-dark: linear-gradient(135deg, #0A0F2E, #0D1B3E);
  --grad-card: linear-gradient(135deg, #0F1A35, #0A1628);
  --grad-glow: radial-gradient(circle at center, #00E5FF22, transparent 70%);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 229, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-btn: 0 4px 20px rgba(0, 229, 255, 0.3);
  --shadow-modal: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 229, 255, 0.08);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--aqua-mid);
  color: var(--navy-dark);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--navy-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--aqua-mid); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-aqua);
  color: var(--navy-dark);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.45);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline-sm {
  background: transparent;
  color: var(--aqua-bright);
  border: 1.5px solid var(--aqua-mid);
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-outline-sm:hover {
  background: var(--aqua-pale);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 46, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--aqua-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--aqua-bright);
  background: var(--aqua-pale);
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--aqua-bright);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(10, 15, 46, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--aqua-bright); background: var(--aqua-pale); }
.mobile-cta { margin-top: 8px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 188, 212, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
              var(--navy-deep);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00E5FF44, transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00BCD444, transparent);
  bottom: -150px; right: -50px;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #26C6DA33, transparent);
  top: 50%; left: 60%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  position: relative;
  text-align: center;
  max-width: 780px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--aqua-bright);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s var(--ease-smooth) both;
}

.badge-dot {
  width: 7px; height: 7px;
  background: #00E5FF;
  border-radius: 50%;
  box-shadow: 0 0 8px #00E5FF;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #00E5FF 0%, #00BCD4 40%, #26C6DA 70%, #80DEEA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.2s both;
}
.hero-subtitle strong {
  color: var(--aqua-bright);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: fadeInUp 0.7s var(--ease-smooth) 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--aqua-bright);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat-divider {
  width: 1px; height: 40px;
  background: var(--navy-border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s 1s both;
}

.scroll-indicator {
  width: 26px; height: 42px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px; height: 8px;
  background: var(--aqua-bright);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== SECTION SHARED STYLES ===== */
.tools-section, .features-section, .faq-section {
  padding: 100px 0;
}

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

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--aqua-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== TOOLS GRID ===== */
.tools-section {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #050D1E 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 229, 255, 0.1);
}

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

.tool-card-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.tool-card:hover .tool-card-glow { opacity: 1; }

.tool-icon-wrap {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--icon-color), 0.1);
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  transition: all var(--transition);
}
.tool-card:hover .tool-icon-wrap {
  background: color-mix(in srgb, var(--icon-color) 20%, transparent);
  transform: scale(1.08);
}

.tool-icon {
  width: 26px; height: 26px;
  color: var(--icon-color);
  stroke: var(--icon-color);
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aqua-pale);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}
.tool-arrow svg {
  width: 16px; height: 16px;
  color: var(--aqua-bright);
}
.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== FEATURES ===== */
.features-section {
  background: #050D1E;
}

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

.feature-card {
  background: linear-gradient(135deg, rgba(15, 26, 53, 0.8), rgba(10, 18, 38, 0.9));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--aqua-bright);
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--navy-deep);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(0, 229, 255, 0.25); }
.faq-item.open { border-color: rgba(0, 229, 255, 0.35); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--aqua-bright); }
.faq-item.open .faq-question { color: var(--aqua-bright); }

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--aqua-mid);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: #030A18;
  border-top: 1px solid var(--navy-border);
  padding: 64px 0 0;
}

.footer-top {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
}

.footer-links-wrap {
  display: flex;
  gap: 48px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-links-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--aqua-bright); }

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--aqua-mid);
  background: rgba(0, 188, 212, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0, 188, 212, 0.2);
}

/* ===== MODAL SYSTEM ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 2001;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #0E1A36, #0A1327);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-smooth);
  scrollbar-width: thin;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.modal-wide { max-width: 800px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0;
  gap: 16px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-icon-wrap {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color) 25%, transparent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.modal-icon-wrap svg {
  width: 24px; height: 24px;
  color: var(--icon-color);
  stroke: var(--icon-color);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.modal-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.modal-close:hover {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff5050;
}
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; }

.modal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== DROPZONE ===== */
.dropzone {
  border: 2px dashed var(--navy-border);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(0, 229, 255, 0.02);
  position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--aqua-mid);
  background: rgba(0, 229, 255, 0.06);
}
.dropzone.dragover {
  background: rgba(0, 229, 255, 0.08);
  transform: scale(1.01);
}

.dz-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 50%;
  color: var(--aqua-mid);
}
.dz-icon svg { width: 24px; height: 24px; stroke: currentColor; }

.dz-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.dz-link { color: var(--aqua-bright); font-weight: 600; }

.dz-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== FILE LIST ===== */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  animation: fadeInUp 0.2s var(--ease-smooth) both;
}

.file-item-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 188, 212, 0.12);
  border-radius: 6px;
  flex-shrink: 0;
}
.file-item-icon svg { width: 16px; height: 16px; color: var(--aqua-mid); stroke: currentColor; }

.file-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.file-item-size {
  color: var(--text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.file-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  flex-shrink: 0;
}
.file-item-remove:hover { color: #ff5050; }
.file-item-remove svg { width: 14px; height: 14px; stroke: currentColor; }

/* ===== FORM ELEMENTS ===== */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.option-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.text-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}
.text-input:focus {
  border-color: var(--aqua-mid);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}
.text-input::placeholder { color: var(--text-muted); }

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.radio-option:has(input:checked) {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--aqua-mid);
  color: var(--aqua-bright);
}
.radio-option input { accent-color: var(--aqua-mid); }

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-option {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-option:hover {
  border-color: var(--aqua-mid);
  color: var(--aqua-bright);
}
.btn-option.active {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--aqua-mid);
  color: var(--aqua-bright);
  font-weight: 600;
}

.select-wrap { position: relative; }
.styled-select {
  width: 100%;
  padding: 10px 40px 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all var(--transition);
}
.styled-select:focus {
  border-color: var(--aqua-mid);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
}
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.range-input {
  width: 100%;
  height: 4px;
  accent-color: var(--aqua-mid);
  background: var(--navy-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-top: 4px;
}

.range-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua-bright);
  display: block;
  text-align: right;
  margin-top: 4px;
}

.color-input {
  width: 48px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-border);
  background: none;
  cursor: pointer;
  padding: 2px;
}

.password-wrap {
  position: relative;
}
.password-wrap .text-input {
  padding-right: 44px;
}
.pwd-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--transition);
}
.pwd-toggle:hover { color: var(--aqua-bright); }
.pwd-toggle svg { width: 18px; height: 18px; stroke: currentColor; }

/* ===== PROGRESS BAR ===== */
.progress-wrap {
  margin-top: 4px;
}

.progress-bar {
  height: 4px;
  background: var(--navy-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--grad-aqua);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s var(--ease-smooth);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== RESULT BOX ===== */
.result-box {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.result-success {
  background: rgba(0, 229, 100, 0.06);
  border: 1px solid rgba(0, 229, 100, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-success-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4AE880;
}
.result-success-row svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }
.result-success-row span { font-size: 0.9rem; font-weight: 600; }

.result-error {
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff6b6b;
}
.result-error svg { width: 20px; height: 20px; stroke: currentColor; flex-shrink: 0; }
.result-error span { font-size: 0.88rem; font-weight: 500; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-sm);
  color: var(--aqua-bright);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  align-self: flex-start;
}
.download-btn:hover {
  background: rgba(0, 229, 255, 0.18);
  transform: translateY(-1px);
}
.download-btn svg { width: 16px; height: 16px; stroke: currentColor; }

/* Image previews in result */
.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.img-preview-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--navy-border);
  transition: transform var(--transition);
}
.img-preview-grid a:hover { transform: scale(1.03); }
.img-preview-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* ===== PDF VIEWER ===== */
.viewer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
}

.viewer-btn {
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  color: var(--aqua-bright);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.viewer-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  transform: translateY(-1px);
}
.viewer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.viewer-page-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.viewer-page-info input {
  width: 50px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-align: center;
  outline: none;
}
.viewer-page-info input:focus { border-color: var(--aqua-mid); }

.viewer-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#viewer-zoom-val {
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-width: 44px;
  text-align: center;
}

.viewer-canvas-wrap {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow: auto;
  max-height: 60vh;
}

#viewer-canvas {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px; right: 24px;
  padding: 12px 20px;
  background: rgba(15, 26, 53, 0.97);
  border: 1px solid var(--aqua-mid);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-smooth);
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.error { border-color: #ff5050; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rotate radio toggle */
input[name="rotate-pages"]:checked[value="specific"] ~ #rotate-specific,
.show-rotate-specific { display: block !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.6rem; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.2rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links-wrap { flex-direction: column; gap: 24px; }
  .modal { width: 95%; }
  .modal-header { padding: 20px 20px 0; }
  .modal-body { padding: 20px 20px 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .stat-divider { display: none; }
  .radio-group { flex-direction: column; }
  .viewer-controls { gap: 8px; }
  .viewer-zoom { margin-left: 0; }
}

/* ===== NEW TOOLS BADGES ===== */
.tool-card-new { border-color: rgba(124, 77, 255, 0.4); }
.tool-card-new:hover { border-color: rgba(124, 77, 255, 0.8); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 77, 255, 0.2); }
.tool-badge-new {
  position: absolute;
  top: 16px; right: 16px;
  background: linear-gradient(135deg, #7C4DFF, #B388FF);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}
#card-word2pdf .tool-badge-new { background: linear-gradient(135deg, #FF6D00, #FFD180); box-shadow: 0 4px 12px rgba(255, 109, 0, 0.4); }
#card-word2pdf.tool-card-new { border-color: rgba(255, 109, 0, 0.4); }
#card-word2pdf.tool-card-new:hover { border-color: rgba(255, 109, 0, 0.8); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 109, 0, 0.2); }

/* ===== PAGE MODALS (About, Privacy, Contact) ===== */
.modal-page .modal-body {
  padding: 32px 40px 48px;
  background: var(--navy-deep);
}
.page-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}
.page-content h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.page-content h3:first-child { margin-top: 0; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 0 0 20px 24px; }
.page-content li { margin-bottom: 8px; }
.page-content strong { color: var(--aqua-bright); font-weight: 600; }
.about-link { color: var(--aqua-bright); text-decoration: underline; text-underline-offset: 4px; }
.about-link:hover { color: var(--white); }

.page-hero-icon { font-size: 3rem; text-align: center; margin-bottom: 16px; }

.about-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.about-tool-item {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.privacy-date { font-style: italic; margin-bottom: 24px !important; }

/* Contact Form */
.contact-intro { text-align: center; margin-bottom: 32px; }
.contact-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 255, 0.1);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-top: 16px;
  color: var(--aqua-bright);
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-email-badge a { text-decoration: none !important; }
.contact-email-badge a:hover { color: var(--white); }

.contact-form {
  background: var(--navy-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--navy-border);
}
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.required { color: #ff5050; }
.contact-textarea { resize: vertical; min-height: 120px; }
.contact-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0 !important;
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
  .modal-page .modal-body { padding: 24px 20px 32px; }
}
