/* ============================================
   SECURE7 - Cyber-Luxury Dark Theme
   Glassmorphism Design System
   ============================================ */

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

:root {
  /* Core Colors - from logo */
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-tertiary: #2d2d2d;

  /* Accent Colors - from logo red "7" */
  --accent-red: #E63946;
  --accent-red-bright: #FF4D5A;
  --accent-red-dim: rgba(230, 57, 70, 0.15);
  --accent-silver: #c0c0c0;
  --accent-gradient: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-bright) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --text-accent: var(--accent-cyan);

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px);

  /* Aliases for compatibility */
  --accent-cyan: var(--accent-red);
  --accent-cyan-dim: var(--accent-red-dim);
  --accent-teal: var(--accent-red-bright);

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Base Styles
   ============================================ */

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(255, 77, 90, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(230, 57, 70, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Grid pattern overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.display-hero {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.display-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

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

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  border: none;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 10, 15, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background: var(--accent-red-dim);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.navbar-brand span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
  color: #ffffff;
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-red);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  background: var(--accent-red-dim);
  color: var(--text-primary);
}

/* ============================================
   Glass Cards
   ============================================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(230, 57, 70, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .display-sub {
  margin: 1.5rem auto 2.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Floating elements */
.hero-float {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.hero-float-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-red);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-float-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-red-bright);
  bottom: 10%;
  right: -5%;
  animation-delay: -7s;
}

.hero-float-3 {
  width: 200px;
  height: 200px;
  background: #8B0000;
  top: 50%;
  right: 20%;
  animation-delay: -14s;
}

/* ============================================
   Features Section
   ============================================ */

.section {
  padding: var(--section-padding) 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 2.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-dim);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--accent-gradient);
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Services Section
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.5rem;
  position: relative;
}

.service-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.service-card:hover .service-number {
  opacity: 0.6;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-right: 3rem;
}

.service-card p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Security Teams Section
   ============================================ */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.team-card {
  padding: 2.5rem;
  text-align: center;
}

.team-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: var(--transition-smooth);
}

.team-red .team-icon {
  background: rgba(230, 57, 70, 0.15);
  border: 2px solid rgba(230, 57, 70, 0.3);
  color: #E63946;
}

.team-red:hover .team-icon {
  background: rgba(230, 57, 70, 0.25);
  box-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.team-blue .team-icon {
  background: rgba(74, 144, 217, 0.15);
  border: 2px solid rgba(74, 144, 217, 0.3);
  color: #4A90D9;
}

.team-blue:hover .team-icon {
  background: rgba(74, 144, 217, 0.25);
  box-shadow: 0 0 30px rgba(74, 144, 217, 0.3);
}

.team-purple .team-icon {
  background: rgba(155, 89, 182, 0.15);
  border: 2px solid rgba(155, 89, 182, 0.3);
  color: #9B59B6;
}

.team-purple:hover .team-icon {
  background: rgba(155, 89, 182, 0.25);
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
}

.team-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem !important;
}

.team-red .team-subtitle { color: #E63946; }
.team-blue .team-subtitle { color: #4A90D9; }
.team-purple .team-subtitle { color: #9B59B6; }

.team-card p:last-child {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
  padding: 4rem 2rem;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: var(--section-padding) 2rem;
  text-align: center;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(255, 77, 90, 0.05) 100%);
  border: 1px solid rgba(230, 57, 70, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  position: relative;
}

.cta-card .btn {
  position: relative;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .navbar-brand {
  display: inline-block;
}

.footer-brand .navbar-brand img {
  height: 60px;
  width: auto;
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.footer-brand .navbar-brand img:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--accent-red);
}

.footer-contact {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-contact li {
  margin-bottom: 0.4rem;
}

.footer-contact-spacer {
  height: 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--accent-red);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-10px, 10px) scale(0.95);
  }
  75% {
    transform: translate(-20px, -10px) scale(1.02);
  }
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the animations */
.animate-on-scroll.stagger-1 { animation-delay: 0.1s; }
.animate-on-scroll.stagger-2 { animation-delay: 0.2s; }
.animate-on-scroll.stagger-3 { animation-delay: 0.3s; }
.animate-on-scroll.stagger-4 { animation-delay: 0.4s; }
.animate-on-scroll.stagger-5 { animation-delay: 0.5s; }
.animate-on-scroll.stagger-6 { animation-delay: 0.6s; }

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-nav {
    display: none;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-card {
    padding: 2rem;
  }
}

/* ============================================
   Utilities
   ============================================ */

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

.text-muted {
  color: var(--text-tertiary) !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 2rem !important; }

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 80vh;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #ffc107;
  margin-bottom: 2rem;
}

.legal-badge svg {
  width: 16px;
  height: 16px;
}

.legal-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-last-updated {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* Remove Bootstrap overrides */
.container, .container-fluid {
  max-width: 100%;
  padding: 0;
}
