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

:root {
  --bg-main: #060B12;
  --bg-sec: #0D1420;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --card-bg: #131C28;
  --primary: #2EE8FF;
  --secondary: #6D89FF;
  --highlight: #A26DFF;
  --success: #47D990;
  --warning: #F7B15B;
  --danger: #FF6A7B;
  --text-main: #FFFFFF;
  --text-sec: #B9C5D4;
  --text-muted: #8693A2;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(46, 232, 255, 0.3);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Background Mesh & Grid */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 50%, rgba(46, 232, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(109, 137, 255, 0.05), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(162, 109, 255, 0.05), transparent 25%);
  filter: blur(60px);
}

.bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.2;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; font-size: 1.125rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--highlight); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--text-muted); font-size: 0.95rem; }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* UI Elements */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  background: var(--glass-hover);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(46, 232, 255, 0.1);
  transform: translateY(-5px);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
}
.glass-panel:hover::before { left: 150%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-main);
  box-shadow: 0 4px 15px rgba(46, 232, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(46, 232, 255, 0.4);
  transform: translateY(-2px);
  color: var(--bg-main);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(46, 232, 255, 0.1);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 600ms linear;
  background-color: rgba(255, 255, 255, 0.4);
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 11, 18, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-sec);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

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

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-sec);
  margin-bottom: 2.5rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* OS Dashboard Element */
.os-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(46, 232, 255, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: 30px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* Service Cards */
.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  color: var(--primary);
}

.glass-panel h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.glass-panel p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-muted); }

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: 80%;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: var(--bg-main);
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  z-index: 1;
}

/* FAQ Accordion */
.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.accordion-header:hover { background: rgba(255,255,255,0.02); }
.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}
.accordion-item.active .accordion-content { padding: 0 1.5rem 1.5rem; }

/* Contact Form */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-sec);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(46, 232, 255, 0.1);
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-sec);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-title {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Utilities & Components */
.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary { background: rgba(46, 232, 255, 0.1); color: var(--primary); border: 1px solid var(--primary); }
.badge-warning { background: rgba(247, 177, 91, 0.1); color: var(--warning); border: 1px solid var(--warning); }

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--highlight));
  width: 0%; z-index: 9999;
  transition: width 0.1s;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: var(--bg-main); transform: translateY(-5px); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%; max-width: 600px;
  background: rgba(13, 20, 32, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-text { font-size: 0.85rem; margin-bottom: 1rem; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn { font-size: 0.8rem; padding: 0.5rem 1rem; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Subpage Headers */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(46, 232, 255, 0.05), transparent 50%);
}

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

/* Feature Table */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.feature-table th, .feature-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.feature-table th {
  color: var(--text-main);
  font-family: var(--font-heading);
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 30px; }
  .timeline-item { justify-content: flex-start; padding-left: 80px; padding-right: 0; }
  .timeline-item:nth-child(even) { padding-left: 80px; }
  .timeline-item::after { left: 30px; transform: translate(-50%, -50%); }
  .timeline-content { width: 100%; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  
  /* Mobile Menu Active */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--bg-sec);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
  }
}