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

:root {
  /* Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #111111;
  --bg-card: rgba(20, 20, 20, 0.6);
  --accent-primary: #5c9eff;
  --accent-hover: #82b4ff;
  --accent-glow: rgba(92, 158, 255, 0.25);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Components (Glassmorphism & Buttons)
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  background: rgba(30, 30, 30, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(30, 96, 255, 0.4);
  transform: translateY(-2px);
}

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(30, 96, 255, 0.15), transparent 60%);
}

.hero-bg video, .video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.video-placeholder {
  background: repeating-linear-gradient(45deg, #111, #111 10px, #0a0a0a 10px, #0a0a0a 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 2rem;
  font-weight: 700;
}

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

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-desc {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 600px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeUp 1s ease 0.6s both;
}

/* ==========================================================================
   Features Section (Unlock Automation)
   ========================================================================== */
.section {
  padding: 8rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card .icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(30, 96, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.feature-placeholder {
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: 600;
  border: 1px dashed rgba(255,255,255,0.1);
}

/* ==========================================================================
   Metrics Section (Scalable Efficiency)
   ========================================================================== */
.metrics-wrap {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(30,96,255,0.03) 100%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem 2rem;
}

.metric-item h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.metric-item h2 span {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-right: 0.75rem;
}

.metric-item p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Process Section (Deploy)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  position: relative;
}

.process-step {
  position: relative;
}

.step-num {
  font-family: monospace;
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

.process-step h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 0 2rem;
  background: var(--bg-secondary);
}

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

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.footer-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-form input {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  flex: 1;
  outline: none;
}

.footer-form input:focus {
  border-color: var(--accent-primary);
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: var(--text-secondary);
}

.footer-links ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Marquee Animation
   ========================================================================== */
.marquee-wrapper {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.marquee-content {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.logo-placeholder {
  width: 100px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.5rem)); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
}
