/* ============================================================
   Safelink Guard — Styling Sheet
   Responsive layout, custom design tokens, premium dark mode
   ============================================================ */

:root {
  --bg-darkest: #050714;
  --bg-card: rgba(13, 17, 39, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #9ea2c0;
  --text-muted: #646a8c;
  --neon-cyan: #00f2fe;
  --neon-purple: #8b5cf6;
  --neon-pink: #ec4899;
  --neon-emerald: #10b981;
  --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.18);
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-2xl: 28px;
  
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Glow Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  -webkit-filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.bg-orb--purple {
  width: 500px;
  height: 500px;
  background: var(--neon-purple);
  top: -15%;
  left: -10%;
}
.bg-orb--cyan {
  width: 450px;
  height: 450px;
  background: var(--neon-cyan);
  bottom: -10%;
  right: -5%;
  opacity: 0.25;
}

/* Header & Logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 7, 20, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.logo-text span {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.header-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--neon-cyan);
}

/* Hero Section */
.hero-section {
  padding: 6.5rem 0 4rem 0;
  text-align: center;
}
.hero-inner {
  max-width: 750px;
}
.hero-badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Features Grid */
.features-section {
  padding: 3rem 0 5rem 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: transform 0.4s var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-5px);
}
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}
.feature-icon--cyan { color: var(--neon-cyan); border-color: rgba(0, 242, 254, 0.2); }
.feature-icon--purple { color: var(--neon-purple); border-color: rgba(139, 92, 246, 0.2); }
.feature-icon--pink { color: var(--neon-pink); border-color: rgba(236, 72, 153, 0.2); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
  color: #fff;
}
.feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5,7,20,0.4);
}
.stats-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .stats-inner {
    flex-direction: row;
    justify-content: space-around;
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Info Pages (Privacy, Terms, DMCA, Contact) */
.info-page {
  padding: 5rem 0;
  flex-grow: 1;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.page-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: 3.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}
.text-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.text-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}
.text-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.text-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Footer Section */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #03040c;
  padding: 3.5rem 0 3rem 0;
}
.footer-inner {
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--neon-cyan);
}
.footer-divider {
  max-width: 150px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 auto 1.5rem;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  /* Hide scrollbar track visually on mobile while retaining scroll functionality */
  ::-webkit-scrollbar {
    display: none;
  }
  html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }

  .site-header {
    padding: 0.5rem 0;
  }
  .header-inner {
    flex-direction: column;
    height: auto;
    gap: 0.85rem;
    padding: 0.75rem 0;
  }
  .logo-text {
    font-size: 1.45rem;
  }
  .logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .logo-icon svg {
    width: 16px;
    height: 16px;
  }
  .header-nav {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .header-nav a {
    font-size: 0.82rem;
  }
  .hero-section {
    padding: 4.5rem 0 2.5rem 0;
  }
  .page-card {
    padding: 2.25rem 1.5rem;
  }
  .page-title {
    font-size: 2rem;
  }
}
