/* DarkSmogAI Theme - Dark, Modern, AI-Inspired Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties - DarkSmogAI Brand Colors */
:root {
  /* Dark Theme Base Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #161616;
  --bg-elevated: #1f1f1f;
  
  /* Brand Colors - Extracted from DarkSmogAI */
  --accent-primary: #00d4ff;     /* Cyan blue - main brand color */
  --accent-secondary: #7c3aed;   /* Purple - secondary accent */
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --accent-gradient-hover: linear-gradient(135deg, #0099cc 0%, #6d28d9 100%);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --text-darker: #808080;
  
  /* Status Colors */
  --success: #00ff88;
  --warning: #ffa500;
  --error: #ff4444;
  --info: #00d4ff;
  
  /* Border & Divider */
  --border-primary: #333333;
  --border-secondary: #2a2a2a;
  --border-hover: #555555;
  
  /* Shadows - Dark theme optimized */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1010;
  --z-modal: 1020;
  --z-tooltip: 1030;
  
  /* Layout */
  --container-max: 1280px;
  --header-height: 80px;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent horizontal overflow */
html {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size:14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-primary);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-secondary);
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--border-primary);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  list-style: none;
  position: static;
  width: 100%;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
      font-size: 14px;
          white-space: nowrap;
  padding: var(--space-2) var(--space-1);
  position: relative;
  transition: all var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ServiceNow-Style Mobile Navigation */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  z-index: calc(var(--z-modal) + 1);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 1px;
  position: relative;
}

.mobile-menu-btn span:nth-child(1) {
  margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(2) {
  margin-bottom: 6px;
}

.mobile-menu-btn span:nth-child(3) {
}

/* ServiceNow-style hamburger to X animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mega Menu Styles */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-normal);
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ServiceNow Style Mega Menu Container */
.mega-menu {
  position: fixed;
  display: none;
  opacity: 0;
  visibility: hidden;
  width: 90vw;
  max-width: 1400px;
  min-width: 320px;
  left: 50%;
  top: var(--header-height);
  transform: translateX(-50%);
  margin-top: var(--space-2);
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.6);
  z-index: 1020;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  
  /* Prevent overflow */
  box-sizing: border-box;
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

/* ServiceNow active state for desktop */
@media screen and (min-width: 1025px) {
  .nav-item-dropdown.dropdown-active .mega-menu,
  .nav-item-dropdown:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item-dropdown.dropdown-active .mega-menu-content,
  .nav-item-dropdown:hover .mega-menu-content {
    height: auto;
    margin: 0;
    max-height: calc(100vh - 178px);
    min-height: auto;
    opacity: 1;
    overflow: hidden;
    padding: var(--space-10) var(--space-6);
  }
}


.mega-menu-content {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: var(--space-6);
  padding: var(--space-8);
  width: 100%;
  box-sizing: border-box;
}

/* ServiceNow Layout - 5 column structure */
.mega-menu-content.servicenow-layout {
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
  padding: var(--space-10) var(--space-6);
  width: 100%;
  box-sizing: border-box;
}

.mega-menu-section {
  display: flex;
  flex-direction: column;
}

.mega-menu-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent-primary);
}

.mega-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mega-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left var(--transition-slow);
}

.mega-menu-link:hover::before {
  left: 100%;
}

.mega-menu-link:hover {
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.mega-menu-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.mega-menu-link:hover .mega-menu-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.mega-menu-link-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  display: block;
  margin-bottom: var(--space-1);
}

.mega-menu-link-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.mega-menu-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.mega-menu-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.mega-menu-highlight {
  text-align: center;
}

.mega-menu-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* ServiceNow Simple Links */
.mega-menu-simple-link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: all var(--transition-normal);
  border-radius: var(--radius-sm);
  position: relative;
}

.mega-menu-simple-link:hover {
  color: var(--accent-primary);
  padding-left: var(--space-2);
  background: rgba(0, 212, 255, 0.05);
}

.mega-menu-simple-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-normal);
}

.mega-menu-simple-link:hover::before {
  width: 4px;
}

/* ServiceNow Featured Section */
.mega-menu-featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

/* Large screens - ultra wide */
@media (min-width: 1600px) {
  .mega-menu {
    width: 80vw;
    max-width: 1600px;
  }
}

/* Responsive Mega Menu */
@media (max-width: 1599px) and (min-width: 1025px) {
  .mega-menu {
    width: 90vw;
    max-width: 1400px;
  }
  
  .mega-menu-content.servicenow-layout {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
    padding: var(--space-8) var(--space-4);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .mega-menu {
    width: 96vw;
    max-width: none;
    left: 50%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .mega-menu-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
  }
  
  .mega-menu-content.servicenow-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
  }
  
  .mega-menu-cta,
  .mega-menu-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  .nav-list,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  /* ServiceNow-style Simple Mobile Menu - No Complex Animations */
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: calc(var(--header-height) + var(--space-6)) var(--space-4) var(--space-6);
    gap: 0;
    z-index: var(--z-modal);
    overflow-y: auto;
    animation: slideInFromRight 0.3s ease-out forwards;
  }
  
  .nav-list.active .nav-link {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-secondary);
    transition: all var(--transition-normal);
  }
  
  .nav-list.active .nav-link:hover,
  .nav-list.active .nav-link:focus {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
    padding-left: var(--space-4);
  }
  
  .nav-actions.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-4);
    right: var(--space-4);
    z-index: calc(var(--z-modal) + 1);
  }
  
  .nav-actions.active .btn {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
  }
  
  /* ServiceNow-style Mobile Dropdown Items - Simplified Accordion */
  .nav-list.active .nav-item-dropdown {
    border-bottom: 1px solid var(--border-secondary);
  }
  
  .nav-list.active .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid var(--border-secondary);
    text-align: left;
  }
  
  .nav-list.active .nav-dropdown-toggle:hover,
  .nav-list.active .nav-dropdown-toggle:focus {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
    padding-left: var(--space-4);
  }
  
  .nav-list.active .dropdown-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
  
  .nav-list.active .nav-item-dropdown.dropdown-active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .nav-list.active .mega-menu {
    display: none;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
    margin: 0;
    padding: 0;
  }
  
  .nav-list.active .nav-item-dropdown.dropdown-active .mega-menu {
    display: block;
    animation: accordionSlideDown 0.3s ease-out;
  }
  
  .nav-list.active .mega-menu-content,
  .nav-list.active .mega-menu-content.servicenow-layout {
    display: block;
    padding: var(--space-3);
  }
  
  .nav-list.active .mega-menu-section {
    margin-bottom: var(--space-3);
  }
  
  .nav-list.active .mega-menu-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    padding-left: var(--space-2);
  }
  
  .nav-list.active .mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .nav-list.active .mega-menu-simple-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-left: 2px solid transparent;
  }
  
  .nav-list.active .mega-menu-simple-link:hover,
  .nav-list.active .mega-menu-simple-link:focus {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.08);
    border-left-color: var(--accent-primary);
    padding-left: var(--space-6);
  }
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + var(--space-24)) 0 var(--space-24);
  background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
              var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

.hero-image {
  position: relative;
  perspective: 1000px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: transform var(--transition-slow);
  transform: rotateY(-5deg) rotateX(5deg);
}

.hero-img:hover {
  transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-img {
    transform: none;
  }
  
  .hero-img:hover {
    transform: scale(1.02);
  }
}

/* Section Styles */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Card System */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  transition: all var(--transition-slow);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.feature-card:hover::after {
  width: 300px;
  height: 300px;
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: var(--accent-gradient);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotateY(180deg);
  box-shadow: var(--shadow-glow);
}

.feature-icon svg,
.feature-icon img {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  background: var(--accent-gradient);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-2);
  text-align: center;
}

.pricing-card:not(.featured):hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.plan-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.plan-price {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.plan-price span {
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin-bottom: var(--space-8);
  flex-grow: 1;
  text-align: left;
}

.plan-features li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-6);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ServiceNow-style Mobile Menu Animations */
@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes accordionSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.2s;
}

.reveal-delay-2 {
  transition-delay: 0.4s;
}

.reveal-delay-3 {
  transition-delay: 0.6s;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-card { background-color: var(--bg-card); }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--shadow-glow);
}

.glow-purple {
  box-shadow: var(--shadow-glow-purple);
}

/* Loading Animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
  100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .section-subtitle {
    font-size: var(--text-lg);
  }
  
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .pricing-card.featured {
    transform: none;
    margin-bottom: var(--space-4);
  }
  
  .feature-card,
  .pricing-card {
    min-height: auto;
  }
  
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}