/* 
  Security Office - Landing Page Styles
  Design System Tokens aligned with src/theme/index.ts
*/

:root {
  /* Colors */
  --indigo-900: #1a237e;
  --indigo-800: #283593;
  --indigo-50:  #e8eaf6;
  --teal-800:   #004d40;
  --teal-700:   #00695c;
  --teal-400:   #26a69a;
  --teal-50:    #e0f2f1;
  
  --text-main:  #1e293b;
  --text-muted: #64748b;
  --bg-main:    #ffffff;
  --bg-light:   #f8fafc;
  
  --warning:    #f59e0b;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(0, 105, 92, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  border-radius: 12px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--indigo-900);
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.grid {
  display: grid;
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

/* Button ripple-like hover effect */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--teal-700);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(0, 105, 92, 0.39);
}

.btn-primary:hover {
  background-color: var(--teal-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 92, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-light {
  background-color: white;
  color: var(--indigo-900);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.navbar.scrolled .logo {
  color: var(--indigo-900);
}

.logo .material-icons {
  color: var(--teal-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  color: white;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:not(.btn):hover {
  color: var(--teal-400);
}

.navbar.scrolled .nav-links a:not(.btn) {
  color: var(--text-main);
}

.navbar.scrolled .nav-links a:not(.btn):hover {
  color: var(--teal-700);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset for navbar */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--indigo-900) 0%, var(--indigo-800) 100%);
  z-index: -2;
}

/* Gradient decorative orb */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, var(--teal-700) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(60px);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--teal-50);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Cards Animation */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  transition: transform 0.1s ease-out; /* Parallax effect sync */
}

.floating-card strong {
  display: block;
  font-size: 0.875rem;
  color: var(--indigo-900);
}

.floating-card span:not(.material-icons) {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.info-icon {
  background: var(--indigo-50);
  color: var(--indigo-900);
  padding: 0.5rem;
  border-radius: 8px;
}

.c1 {
  top: 10%;
  left: -15%;
  animation: float 6s ease-in-out infinite;
}

.c2 {
  bottom: 20%;
  right: -10%;
  animation: float 7s ease-in-out infinite reverse;
}

.c3 {
  bottom: -5%;
  left: 20%;
  animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Features Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

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

.feature-card {
  background: white;
  border: 1px solid var(--indigo-50);
  border-radius: 16px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--indigo-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--indigo-900);
  color: white;
  transform: scale(1.1);
}

.feature-card:hover .feature-icon-wrapper.teal {
  background: var(--teal-700);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--indigo-50);
  color: var(--indigo-900);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-icon-wrapper.teal {
  background: var(--teal-50);
  color: var(--teal-700);
}

.feature-icon {
  font-size: 32px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Split Section / Benefits */
.split-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.benefits-list {
  list-style: none;
  margin-top: 2rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.list-icon {
  background: var(--teal-50);
  color: var(--teal-700);
  padding: 4px;
  border-radius: 50%;
  font-size: 16px;
  margin-top: 4px;
}

.image-stack {
  position: relative;
  padding-bottom: 2rem;
  padding-right: 2rem;
}

.img-main {
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.glass-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 1.5rem;
  z-index: 2;
  width: 80%;
  max-width: 300px;
}

.glass-panel h4 {
  color: var(--indigo-900);
  margin-bottom: 0.5rem;
}

.glass-panel p {
  margin-bottom: 0;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.status-bar {
  height: 6px;
  background: var(--indigo-50);
  border-radius: 3px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--teal-400);
  border-radius: 3px;
  position: relative;
}
.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Pricing Section */
.pricing-section {
  background-color: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border: 1px solid var(--indigo-50);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card--featured {
  background: linear-gradient(160deg, var(--indigo-900) 0%, #1e3a8a 100%);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-xl);
  transform: scale(1.04);
}

.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-6px);
}

.plan-badge-popular {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--teal-400);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-header {
  margin-bottom: 2rem;
}

.plan-badge {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo-900);
  margin-bottom: 0.5rem;
}

.pricing-card--featured .plan-badge {
  color: white;
}

.plan-audience {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-card--featured .plan-audience {
  color: rgba(255, 255, 255, 0.65);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--indigo-900);
  letter-spacing: -0.02em;
}

.pricing-card--featured .price-amount {
  color: white;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card--featured .price-period {
  color: rgba(255, 255, 255, 0.6);
}

.plan-guards {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pricing-card--featured .plan-guards {
  color: rgba(255, 255, 255, 0.9);
}

.plan-extra {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.pricing-card--featured .plan-extra {
  color: rgba(255, 255, 255, 0.55);
}

.plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
  border-top: 1px solid var(--indigo-50);
  padding-top: 1.5rem;
}

.pricing-card--featured .plan-features {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--indigo-50);
}

.pricing-card--featured .plan-features li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
  border-bottom: none;
}

.feat-icon {
  font-size: 18px !important;
  color: var(--teal-700);
  flex-shrink: 0;
}

.pricing-card--featured .feat-icon {
  color: var(--teal-400);
}

.feat-disabled {
  opacity: 0.38;
}

.feat-disabled .feat-icon {
  color: var(--text-muted) !important;
}

/* Pricing buttons */
.btn-outline-plan {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--indigo-900);
  color: var(--indigo-900);
  background: transparent;
  transition: var(--transition-normal);
  cursor: pointer;
  margin-top: auto;
}

.btn-outline-plan:hover {
  background: var(--indigo-900);
  color: white;
  transform: translateY(-2px);
}

.btn-plan-primary {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--teal-700);
  color: white;
  border: none;
  transition: var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 105, 92, 0.4);
  margin-top: auto;
}

.btn-plan-primary:hover {
  background: var(--teal-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 92, 0.5);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-6px);
  }
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
  background: var(--indigo-900);
  color: white;
}

.cta-bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--teal-700) 0%, transparent 60%);
  opacity: 0.5;
  z-index: 0;
}

.cta-container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  background-color: var(--text-main);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

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

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-bottom p {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 1.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 3rem;
  }
  
  .split-grid {
    grid-template-columns: 1fr;
  }
  
  .split-content {
    order: 2;
  }
  
  .split-visual {
    order: 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .floating-card {
    display: none; /* Hide complex floating UI on very small screens for better performance and layout */
  }
}
