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

:root {
  /* Dark Tech Palette */
  --bg-dark: #070b14;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.9);
  
  --accent-cyan: #00F0FF;
  --accent-emerald: #10B981;
  --accent-purple: #8B5CF6;
  
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  --gradient-success: linear-gradient(135deg, var(--accent-emerald), #047857);
  
  --font-main: 'Outfit', sans-serif;
  
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.4);
  --shadow-neon-hover: 0 0 30px rgba(0, 240, 255, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-green {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo img {
  height: 45px;
  filter: drop-shadow(0 0 10px rgba(0,240,255,0.3));
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

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

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

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--shadow-neon);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  right: -20%;
  width: 70%;
  height: 100%;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: -1;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

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

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Floating Bubbles */
.bubbles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -150px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 300;
  max-width: 260px;
  text-align: center;
  line-height: 1.4;
  animation: floatUp infinite linear;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.05);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) translateX(30px) scale(1.1);
    opacity: 0;
  }
}

.bubble-1 { left: 55%; animation-duration: 25s; animation-delay: 1s; }
.bubble-3 { left: 65%; animation-duration: 26s; animation-delay: 4s; }
.bubble-4 { left: 85%; animation-duration: 22s; animation-delay: 12s; }
.bubble-5 { left: 50%; animation-duration: 28s; animation-delay: 15s; }
.bubble-6 { left: 80%; animation-duration: 20s; animation-delay: 9s; }

/* Features Grid */
.features {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  text-align: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Calculator Section */
.calculator-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(17, 24, 39, 0.4) 100%);
}

.calc-widget {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
  text-align: center;
}

.calc-widget h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.slider-container {
  margin: 3rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

.result-value {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

/* Lead Capture Form */
.cta-section {
  padding: 8rem 0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 15px rgba(0,240,255,0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* Animations Triggered by JS */
.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);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { opacity: 0.3; right: 0; width: 100%; mask-image: none; -webkit-mask-image: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* Simplified for demo */
  .hero-cta { flex-direction: column; }
  .calc-widget, .form-container { padding: 2rem; }
  .order-1-mobile { order: -1; }
  .order-2-mobile { order: 2; }
}
