/* 
  ShellbaseAI Enterprise Design System 
  Custom Dark Mode Aesthetics
*/
:root {
  /* Color Palette */
  --bg-main: #060609;
  --bg-secondary: #0c0c12;
  --bg-card: rgba(20, 20, 30, 0.6);
  --bg-card-hover: rgba(30, 30, 45, 0.8);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #8b5cf6; /* Violet */
  --accent: #06b6d4; /* Cyan */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  
  /* Layout */
  --container-width: 1200px;
  --section-pad: 100px 20px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-pad);
}

.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  border: var(--glass-border);
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6, 6, 9, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo span {
  font-weight: 300;
  color: var(--text-muted);
}

.logo-shield {
  color: var(--primary);
  font-size: 1.8rem;
  text-shadow: 0 0 10px var(--primary-glow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

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

.hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 6, 9, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 20px;
}

.hero-image {
  position: relative;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Section Shared */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: var(--glass-border);
  padding: 40px;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Integrations */
.integrations {
  background: var(--bg-secondary);
  border-top: var(--glass-border);
  border-bottom: var(--glass-border);
}

.container-center {
  text-align: center;
  max-width: 800px;
}

.integrations h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.integration-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Security */
.security-desc {
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.security-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.sec-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.security-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.security-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 120px 20px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, var(--bg-main) 70%);
}

.cta-container h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.cta-container p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 80px 20px 30px;
  border-top: var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 60px 20px;
  }
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8); 
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-secondary);
  margin: 10% auto; 
  padding: 40px;
  border: var(--glass-border);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-btn {
  color: var(--text-muted);
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: #fff;
}

.modal-content h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-group input[type="file"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  margin-right: 15px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 10px var(--primary-glow);
}

/* Success Popup Styles */
.success-popup {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.success-popup .popup-content {
  background: var(--bg-secondary);
  border: var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  animation: popupScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupScaleIn {
  from {opacity: 0; transform: translate(-50%, -40%) scale(0.8);}
  to {opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: var(--accent);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--accent);
  animation: fillCircle .4s ease-in-out .4s forwards, scaleCheck .3s ease-in-out .9s both;
}

.success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: var(--accent);
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCircle .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}
@keyframes scaleCheck {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes fillCircle {
  100% { box-shadow: inset 0px 0px 0px 40px rgba(6, 182, 212, 0.1); }
}

.success-popup h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-popup p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.success-popup .btn {
  width: 100%;
}
