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

:root {
  --primary: #0F172A;
  --secondary: #2563EB;
  --accent: #FF9C00; /* Legal window orange */
  --accent-hover: #E08900;
  --bg-color: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}

/* Glassmorphism Navbar */
.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main) !important;
  transition: color 0.2s;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before, .nav-link.active::before {
  width: 80%;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
}

/* Custom Buttons */
.btn-custom {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(255, 156, 0, 0.4);
}

.btn-custom:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 156, 0, 0.6);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.2);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 156, 0, 0.2);
  bottom: 0;
  left: -50px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Glass Card Component */
.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: rgba(255, 156, 0, 0.1);
  color: var(--accent);
}

/* Feature/Why Us Section */
.feature-section {
  padding: 100px 0;
  background: var(--surface);
}

.feature-pill {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--secondary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* Pricing/Plan Table */
.pricing-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.pricing-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(255, 156, 0, 0.15);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price-display {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
}

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: #10B981;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 80px 0 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
}

.footer h5 {
  color: white;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .pricing-card.popular {
    transform: scale(1);
    margin: 20px 0;
  }
}

/* Multi-level Dropdown & Hover.
   Hover-to-open is desktop only.  Below xl the menus are tapped open and
   Bootstrap manages them with .show -- a :hover rule there would outrank
   .dropdown-menu.show and hide the menu the moment a tap opened it, because a
   tap leaves the item in :hover on touch devices. */
@media (min-width: 1200px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}
@media (min-width: 1200px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
.dropdown-menu {
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 10px;
  margin-top: 0;
}
.dropdown-item {
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-item:hover {
  background-color: rgba(255, 156, 0, 0.1);
  color: var(--accent);
}
.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dropdown-item.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Mobile view fix for multi-level */
@media (max-width: 1199.98px) {
  .dropdown-submenu > .dropdown-menu {
    display: block;
    margin-left: 15px;
    border: none;
    box-shadow: none;
  }
}

/* --- Custom UI Components --- */

/* Announcement Bar */
.announcement-bar {
  background: var(--accent);
  color: white;
  padding: 10px 0;
  font-weight: 500;
  text-align: center;
}
.announcement-bar a {
  color: white;
  text-decoration: underline;
}

/* Feature Pillars Grid */
.pillar-card {
  transition: all 0.3s ease;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
}
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: rgba(255, 156, 0, 0.3);
}
.pillar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 156, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Timeline Process */
.process-timeline {
  position: relative;
  padding-left: 30px;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--glass-border);
}
.timeline-step {
  position: relative;
  margin-bottom: 30px;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-step:last-child {
  margin-bottom: 0;
}

/* Pricing Cards */
.pricing-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}
.pricing-card.popular {
  border-color: var(--accent);
  position: relative;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
@media (max-width: 991px) {
  .pricing-card.popular {
    transform: scale(1);
    margin: 30px 0;
  }
}
.pricing-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 2px;
}
.pricing-features .unsupported {
  color: #ccc;
  text-decoration: line-through;
}

/* Custom Accordion */
.custom-accordion .accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 15px;
}
.custom-accordion .accordion-button {
  background: white;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  padding: 20px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--glass-border);
}
.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(42, 160, 239, 0.05);
  color: var(--primary);
  box-shadow: none;
  border-color: var(--primary);
}
.custom-accordion .accordion-button:focus {
  box-shadow: none;
}
.custom-accordion .accordion-body {
  background: white;
  margin-top: 5px;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  color: #666;
  line-height: 1.8;
}

/* Custom Tabs */
.custom-tabs {
  border-bottom: 2px solid var(--glass-border);
  margin-bottom: 30px;
}
.custom-tabs .nav-link {
  color: #666;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 15px 25px;
  margin-bottom: -2px;
}
.custom-tabs .nav-link:hover {
  color: var(--accent);
}
.custom-tabs .nav-link.active {
  background: transparent;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* --- Premium Design Upgrades --- */

/* Gradient Backgrounds */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2a6c 100%);
    color: white;
}

/* Icon Gradients */
.icon-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Cards */
.floating-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Step Cards with overlapping numbers */
.step-card {
    position: relative;
    padding-top: 30px !important;
    margin-top: 30px;
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.step-number {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #ff6a00);
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(255, 156, 0, 0.3);
    border: 4px solid white;
}

/* Premium Checklist */
.premium-check-list li {
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}
.premium-check-list li:hover {
    transform: translateX(10px);
}
.premium-check-list i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent);
}

/* Table Hover Effects */
.table-hover-custom tbody tr {
    transition: all 0.3s ease;
}
.table-hover-custom tbody tr:hover {
    background-color: rgba(255, 156, 0, 0.05) !important;
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Blob Backgrounds */
.blob-bg {
    position: relative;
    z-index: 1;
}
.blob-bg::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}
.blob-bg::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
}
