/* 
  Invigo Landing Page Stylesheet
  Theme: Premium Glassmorphic Dark Mode
*/

:root {
  /* Color Palette - Default Light Theme (DOSSE Inspired) */
  --bg-color: #f6f8f9;
  --bg-darker: #ffffff;
  --text-primary: #002736;
  --text-secondary: #4a5c66;
  --text-muted: #8fa0ab;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #17a2b8 0%, #095169 100%);
  --gradient-secondary: linear-gradient(135deg, #095169 0%, #002736 100%);
  --gradient-dark: linear-gradient(180deg, rgba(23, 162, 184, 0.04) 0%, rgba(255, 255, 255, 0.95) 100%);
  
  /* Accents */
  --accent-cyan: #17a2b8;
  --accent-purple: #095169;
  --accent-pink: #0088a8;
  --success-color: #10b981;
  --error-color: #ef4444;
  
  /* Glassmorphism Variables - Light Mode */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(9, 81, 105, 0.12);
  --glass-border-focus: rgba(23, 162, 184, 0.6);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(9, 81, 105, 0.08);
  
  --navbar-bg: rgba(246, 248, 249, 0.8);
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-shadow: 0 15px 35px rgba(9, 81, 105, 0.08);
  --received-chat-bg: rgba(9, 81, 105, 0.06);
  --received-chat-border: rgba(9, 81, 105, 0.1);
  --card-sheen-color: rgba(9, 81, 105, 0.08);
  --orb-opacity: 0.14;

  /* Fonts */
  --font-family-body: 'Open Sans', sans-serif;
  --font-family-title: 'Libre Franklin', sans-serif;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 80px;
}

body.dark-theme {
  /* Color Palette - Dark Theme */
  --bg-color: #031118;
  --bg-darker: #01080d;
  --text-primary: #eeeeee;
  --text-secondary: #a2b0ba;
  --text-muted: #5e6f7a;
  
  /* Gradients */
  --gradient-dark: linear-gradient(180deg, rgba(9, 81, 105, 0.4) 0%, rgba(1, 8, 13, 0.8) 100%);
  
  /* Glassmorphism Variables - Dark Mode */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-focus: rgba(23, 162, 184, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --navbar-bg: rgba(3, 17, 24, 0.8);
  --panel-bg: rgba(1, 8, 13, 0.65);
  --panel-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  --received-chat-bg: rgba(255, 255, 255, 0.05);
  --received-chat-border: rgba(255, 255, 255, 0.05);
  --card-sheen-color: rgba(255, 255, 255, 0.1);
  --orb-opacity: 0.35;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Background Decorative Orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: var(--orb-opacity, 0.35);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.orb-1 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  top: -10vw;
  right: -5vw;
  animation: float-orb-1 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  top: 40vh;
  left: -15vw;
  animation: float-orb-2 32s infinite alternate ease-in-out;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  bottom: 5vh;
  right: 5vw;
  animation: float-orb-3 20s infinite alternate ease-in-out;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3vw, 4vh) scale(1.1); }
  100% { transform: translate(2vw, -2vh) scale(0.95); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -5vh) scale(0.9); }
  100% { transform: translate(-2vw, 3vh) scale(1.05); }
}

@keyframes float-orb-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2vw, -3vh) scale(1.08); }
  100% { transform: translate(3vw, 2vh) scale(0.92); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Classes */
.frosted-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: var(--font-family-title);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(23, 162, 184, 0.6);
  color: #000;
}

.btn-secondary {
  color: var(--text-primary);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Navigation Header */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  display: flex;
  align-items: center;
  background: var(--navbar-bg);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo-container {
  display: flex;
  align-items: center;
}

.logo-pill {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease, border-color 0.5s ease, padding 0.5s ease;
}

.logo-pill:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

body:not(.dark-theme) .logo-pill {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  padding: 6px 0;
}

body:not(.dark-theme) .logo-pill:hover {
  transform: scale(1.03);
  box-shadow: none;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(23, 162, 184, 0.5);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.theme-toggle-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-focus);
  transform: scale(1.08) rotate(15deg);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.3);
}

body:not(.dark-theme) .theme-toggle-btn:hover {
  background: rgba(9, 81, 105, 0.05);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn svg {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Toggle Sun/Moon visibility depending on theme */
body:not(.dark-theme) .sun-icon {
  display: none;
}

body:not(.dark-theme) .moon-icon {
  display: block;
}

body.dark-theme .sun-icon {
  display: block;
}

body.dark-theme .moon-icon {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Sections Global Styles */
section {
  padding: 8rem 0 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
  padding-top: 11rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  border-radius: 50px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-family: var(--font-family-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-wrapper {
  position: relative;
  padding: 0.5rem;
  overflow: hidden;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.mockup-wrapper:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.mockup-image {
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.mockup-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(23, 162, 184, 0.25);
  box-shadow: 0 12px 40px 0 rgba(23, 162, 184, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.4);
}

.feature-title {
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Showcase Section */
.showcase-section {
  background-color: var(--bg-darker);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 300%; /* 3 slides */
}

.carousel-slide {
  width: 33.333%;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.slide-visual img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slide-content h3 {
  font-family: var(--font-family-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.slide-content p {
  color: var(--text-secondary);
}

/* Mock UI Panel inside Slide 2 & 3 */
.mock-ui-panel {
  width: 100%;
  max-width: 420px;
  background: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  border: 1px solid var(--glass-border);
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.panel-header {
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.5s ease;
}

.panel-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.panel-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.panel-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  min-height: 200px;
}

/* Chatbot Mock */
.chatbot-mock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.4;
}

.chat-bubble.received {
  background-color: var(--received-chat-bg);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid var(--received-chat-border);
  color: var(--text-primary);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.3s ease;
}

.chat-bubble.sent {
  background: var(--gradient-primary);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}

/* Security Mock */
.security-mock {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

.security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--glass-border);
  transition: border-color 0.5s ease;
}

.security-row:last-child {
  border-bottom: none;
}

.security-row span:first-child {
  font-weight: 500;
  color: var(--text-secondary);
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Slider Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-focus);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.2);
}

body:not(.dark-theme) .carousel-control:hover {
  background: rgba(9, 81, 105, 0.05);
}

.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease, background-color 0.5s ease;
}

.indicator.active {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  width: 24px;
  border-radius: 50px;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.pricing-card {
  padding: 3rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(23, 162, 184, 0.3);
  box-shadow: 0 15px 45px 0 rgba(23, 162, 184, 0.1);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-family-title);
}

.plan-name {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-price {
  font-family: var(--font-family-title);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.plan-features {
  margin-bottom: 3rem;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.pricing-card.featured .plan-features li::before {
  background-color: var(--accent-pink);
  box-shadow: 0 0 6px var(--accent-pink);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-darker);
}

.contact-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.contact-title {
  font-family: var(--font-family-title);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 500px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.detail-item svg {
  color: var(--accent-cyan);
}

.contact-form-wrapper {
  padding: 3rem 2.5rem;
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.3s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.form-input:focus {
  border-color: var(--glass-border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.error-msg {
  font-size: 0.75rem;
  color: var(--error-color);
  margin-top: 0.2rem;
  display: none;
}

.form-group.invalid .form-input {
  border-color: var(--error-color);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.form-group.invalid .error-msg {
  display: block;
}

/* Toast Success Container */
.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: calc(100% - 4rem);
  max-width: 380px;
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.toast.success svg {
  color: var(--success-color);
  flex-shrink: 0;
}

.toast h4 {
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.toast p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer Section */
.footer-section {
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 3rem 0;
  background-color: var(--bg-darker);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-column h4 {
  font-family: var(--font-family-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.link-column a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.link-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  section {
    padding: 6rem 0 4rem 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .carousel-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .slide-visual {
    order: 1;
  }
  
  .slide-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-color);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 999;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .navbar-actions {
    display: flex;
    gap: 0.8rem;
  }
  
  .navbar-actions .btn {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Tilt and Sheen Styles */
.feature-card, .pricing-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle 120px at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--card-sheen-color), transparent 80%);
  z-index: 5;
  transition: opacity 0.5s ease;
  opacity: 0;
}

.feature-card:hover .card-sheen,
.pricing-card:hover .card-sheen {
  opacity: 1;
}

/* Interactive Customs Explorer Section */
.regimes-section {
  background-color: var(--bg-darker);
}

.regimes-tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.regime-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-family-title);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.regime-tab:hover, .regime-tab.active {
  background: var(--gradient-primary);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(23, 162, 184, 0.3);
  transform: translateY(-2px);
}

.regimes-display-wrapper {
  max-width: 960px;
  margin: 0 auto;
  min-height: 320px;
}

.regime-content-card {
  display: none;
  padding: 3rem;
  animation: fadeInContent 0.5s ease;
}

.regime-content-card.active {
  display: block;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.regime-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.regime-content-header h3 {
  font-family: var(--font-family-title);
  font-size: 1.7rem;
  font-weight: 700;
}

.regime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .regime-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .regime-content-card {
    padding: 1.5rem;
  }
}

.regime-col h4 {
  font-family: var(--font-family-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.regime-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.regime-col li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.regime-col li svg {
  color: var(--success-color);
  flex-shrink: 0;
}

/* Carousel Autoplay Progress Bar */
.carousel-progress-container {
  width: 100%;
  max-width: 900px;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  margin: 1.5rem auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  transition: width 0.1s linear;
}

/* Background Grid Overlay */
.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  background-image: 
    linear-gradient(var(--grid-line-color, rgba(9, 81, 105, 0.03)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color, rgba(9, 81, 105, 0.03)) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

body.dark-theme .bg-grid-overlay {
  --grid-line-color: rgba(255, 255, 255, 0.012);
}

/* Background Particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

:root {
  --particle-opacity: 0.12;
}

body.dark-theme {
  --particle-opacity: 0.35;
}

.bg-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0;
  filter: blur(1.5px);
  animation: float-particle linear infinite;
  transition: filter 0.3s ease;
}

body.dark-theme .bg-particle {
  filter: blur(1.2px) drop-shadow(0 0 3px rgba(23, 162, 184, 0.5));
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: var(--particle-opacity);
  }
  90% {
    opacity: var(--particle-opacity);
  }
  100% {
    transform: translateY(-105vh) translateX(var(--drift-x, 40px)) scale(1.5);
    opacity: 0;
  }
}

/* AI Code Inspector Section */
.ai-inspector-section {
  position: relative;
  background-color: var(--bg-dark);
  padding: 8rem 0;
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.ai-inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.ai-inspector-text h3 {
  font-family: var(--font-family-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ai-inspector-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ai-inspector-text .highlight-text {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.scan-controls {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

/* Terminal Window styling */
.terminal-window {
  width: 100%;
  background: rgba(13, 17, 23, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(23, 162, 184, 0.2);
  display: flex;
  flex-direction: column;
  height: 380px;
  transition: all 0.3s ease;
}

body.dark-theme .terminal-window {
  background: rgba(8, 12, 18, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.05);
}

.terminal-header {
  background: rgba(22, 27, 34, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background-color: #ef4444; }
.terminal-dots .dot.yellow { background-color: #f59e0b; }
.terminal-dots .dot.green { background-color: #10b981; }

.terminal-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.terminal-body {
  padding: 1.5rem;
  flex-grow: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a5b4fc; /* soft violet/indigo */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
  width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.terminal-line {
  margin: 0;
  word-break: break-all;
}

.terminal-line.system-msg {
  color: var(--text-secondary);
  opacity: 0.7;
}

.terminal-line.command-line {
  color: #38bdf8; /* cian */
}

.terminal-line.success-msg {
  color: var(--accent-cyan);
  font-weight: bold;
}

.terminal-line.warning-msg {
  color: #f59e0b;
}

.terminal-line.file-line {
  color: var(--accent-purple);
}

.terminal-line .prompt {
  color: #10b981;
  margin-right: 0.5rem;
  user-select: none;
}

.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-progress-container {
  background: rgba(22, 27, 34, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.terminal-progress-bar {
  height: 6px;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  transition: width 0.1s ease;
}

.terminal-progress-percent {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-cyan);
  min-width: 35px;
  text-align: right;
}

/* Discovered features section styling */
.discovered-features-container {
  margin-top: 5rem;
  animation: fadeInUp 0.8s ease forwards;
}

.discovered-title {
  font-family: var(--font-family-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}

.discovered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.discovered-card {
  padding: 2.5rem 1.8rem;
  border-radius: 12px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discovered-card:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 162, 184, 0.35);
  box-shadow: 0 12px 40px 0 rgba(23, 162, 184, 0.15);
}

.discovered-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
}

.discovered-card h4 {
  font-family: var(--font-family-title);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.discovered-card .file-tag {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--accent-purple);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.discovered-card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .ai-inspector-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .ai-inspector-section {
    padding: 4rem 0;
  }
  
  .terminal-window {
    height: 340px;
  }
}

