/* ─── Base Reset & Typography ────────────────────────────────────────────── */
/* DiscoverFile Product Website — Base Styles                                */
/* ────────────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-strong);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-alt);
}

code, .mono {
  font-family: 'JetBrains Mono', 'Cascadia Code', monospace;
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */

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

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

section {
  padding: 80px 0;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-base);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ─── Utility Classes ────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient underline bar + shimmer — hero headline only */
.hero h1 .text-gradient {
  position: relative;
  display: inline-block;
  animation: shimmer 6s ease-in-out infinite alternate;
}
.hero h1 .text-gradient::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-alt), transparent);
  opacity: 0.7;
  box-shadow: 0 0 12px var(--accent-primary), 0 0 24px var(--accent-alt);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-base);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

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

/* ─── Navbar ─────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-strong);
}

.navbar-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.navbar-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ─── Section Headers ────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  margin: 0 auto;
  font-size: 15px;
}

/* ─── Hamburger Toggle ──────────────────────────────────────────────────── */

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  .container-wide {
    padding: 0 12px;
  }

  /* Hamburger visible on mobile */
  .navbar-toggle {
    display: flex;
  }

  /* Mobile nav overlay */
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-base);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    list-style: none;
  }

  .navbar-links a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
  }

  .navbar-links a:hover {
    background: var(--bg-secondary);
  }

  /* Hero */
  .hero {
    padding: 110px 0 48px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 15px;
    max-width: 100%;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Prevent any content from overflowing on mobile */
  body {
    overflow-x: hidden;
  }

  /* Center all section headers explicitly */
  .section-header {
    max-width: 100%;
    padding: 0 8px;
  }

  .section-header p {
    max-width: 100%;
  }

  /* Center feature cards on mobile (single column) */
  .feature-card {
    text-align: center;
  }

  .feature-card p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center step items */
  .step {
    text-align: center;
  }

  .step p {
    margin-left: auto;
    margin-right: auto;
  }
}
