/* CSS variables & Premium Color Palette */
:root {
  --bg-primary: #06070d;
  --bg-secondary: #0c0e1a;
  --bg-tertiary: #13172b;
  --accent-blue: #00d2ff;
  --accent-purple: #9d4edd;
  --accent-pink: #ff007f;
  --accent-cyan: #00f5d4;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;
  --glass-bg: rgba(12, 14, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-glow-purple: rgba(157, 78, 221, 0.2);
  --glass-glow-blue: rgba(0, 210, 255, 0.15);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Text Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.sub-title {
  font-family: var(--font-title);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(157, 78, 221, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 0, 127, 0.45);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(6, 7, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  padding: 18px 0;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(6, 7, 13, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
}

.btn-nav {
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid rgba(157, 78, 221, 0.4);
  padding: 8px 20px !important;
  border-radius: 8px;
  color: #fff !important;
  transition: var(--transition-smooth) !important;
}

.btn-nav:hover {
  background: var(--accent-purple) !important;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
  border-color: transparent;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.08) 0%, rgba(6, 7, 13, 0) 50%),
              radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.08) 0%, rgba(6, 7, 13, 0) 50%);
}

.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.12) 0%, rgba(6, 7, 13, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--accent-blue);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  color: var(--text-dark);
  font-size: 14px;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust i {
  color: var(--accent-cyan);
}

/* Floating Hero Graphic Animation */
@keyframes floatAnimation {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-glow-wrapper {
  position: relative;
  animation: floatAnimation 6s ease-in-out infinite;
  width: 100%;
  max-width: 460px;
}

.image-glow-wrapper::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, var(--accent-purple) 0%, var(--accent-blue) 100%);
  filter: blur(40px);
  opacity: 0.25;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

/* Services Section */
.services-section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 78, 221, 0.3);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
}

.icon-box.purple {
  background: rgba(157, 78, 221, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.25);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.icon-box.blue {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.icon-box.pink {
  background: rgba(255, 0, 127, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 0, 127, 0.25);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.15);
}

.icon-box.cyan {
  background: rgba(0, 245, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 245, 212, 0.25);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Interactive Demo / Terminal Section */
.demo-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
  position: relative;
}

.terminal-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #090a10;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  background: #141624;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-expand { background-color: #27c93f; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: var(--text-dark);
}

.terminal-body {
  padding: 24px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #a9b1d6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terminal-line {
  word-break: break-word;
}

.terminal-line.system {
  color: var(--accent-blue);
}

.terminal-line.user {
  color: var(--accent-cyan);
}

.terminal-line.agent {
  color: #fff;
  border-left: 2px solid var(--accent-purple);
  padding-left: 10px;
}

.terminal-line.agent strong {
  color: var(--accent-purple);
}

.terminal-controls {
  padding: 20px;
  background: #0d0f18;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prompt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-title);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.prompt-btn:hover {
  background: rgba(157, 78, 221, 0.15);
  border-color: var(--accent-purple);
  color: #fff;
  transform: scale(1.03);
}

.prompt-btn.active {
  background: var(--accent-purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: 44px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.detail-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.detail-item .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.detail-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.detail-item p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(10px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.form-response {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

.form-response.success {
  color: var(--accent-cyan);
}

.form-response.error {
  color: var(--accent-pink);
}

/* Footer Section */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px 0;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links h4,
.footer-socials h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-links ul a:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--accent-purple);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-dark);
  font-size: 13px;
}

/* Animations Trigger */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-content p {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(6, 7, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: -1;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .btn-nav {
    display: block;
    width: 100%;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
