@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  /* Colors */
  --background: #0d1515;
  --on-background: #dbe4e3;
  --surface: #0d1515;
  --on-surface: #dbe4e3;
  --surface-variant: #2e3636;
  --on-surface-variant: #b9cac9;
  --primary: #ffffff;
  --on-primary: #003737;
  --primary-container: #00fbfb;
  --primary-fixed: #00fbfb;
  --on-primary-fixed: #002020;
  --secondary: #cdbdff;
  --secondary-container: #5203d5;
  --secondary-fixed: #e8deff;
  --on-secondary-fixed: #20005f;
  --tertiary: #ffffff;
  --outline: #839493;
  --outline-variant: #3a4a49;

  /* Typography */
  --font-display-lg: 'Space Grotesk', sans-serif;
  --font-headline-main: 'Space Grotesk', sans-serif;
  --font-headline-sub: 'Geist', sans-serif;
  --font-body-lg: 'Geist', sans-serif;
  --font-body-md: 'Geist', sans-serif;
  --font-label-sm: 'Geist', sans-serif;
  --font-code-snippet: 'Geist', monospace;

  /* Spacing */
  --stack-xs: 4px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;
  --stack-xl: 64px;
  --margin-desktop: 64px;
  --gutter: 24px;
  --container-max: 1440px;

  /* Border Radius */
  --border-radius-default: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 0.75rem;
  --border-radius-full: 9999px;
}

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

body {
  background-color: var(--background);
  color: var(--on-surface);
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Typography Utilities */
.font-display-lg {
  font-family: var(--font-display-lg);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-headline-main {
  font-family: var(--font-headline-main);
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.font-headline-sub {
  font-family: var(--font-headline-sub);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
}

.font-body-lg {
  font-family: var(--font-body-lg);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.font-body-md {
  font-family: var(--font-body-md);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.font-label-sm {
  font-family: var(--font-label-sm);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.font-code-snippet {
  font-family: var(--font-code-snippet);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

/* Colors Utilities */
.text-primary-fixed { color: var(--primary-fixed); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-primary-fixed { color: var(--on-primary-fixed); }
.bg-primary-fixed { background-color: var(--primary-fixed); }

/* Common Components */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

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

.glass-panel {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.kinetic-glow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kinetic-glow:hover {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
  border-color: rgba(0, 255, 255, 0.3);
}

/* Navigation */
.navbar {
  background-color: rgba(13, 21, 21, 0.5);
  backdrop-filter: blur(24px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(58, 74, 73, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--stack-md);
  padding-bottom: var(--stack-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gutter);
}

.nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 4px;
  display: block;
}

.nav-link:hover {
  color: var(--primary-fixed);
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  border-bottom: 2px solid var(--primary-fixed);
  color: var(--primary-fixed);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: var(--border-radius-default);
  transition: all 0.3s ease;
  gap: 8px;
}

.btn-primary:hover {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-large {
  padding: 16px 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn-large:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

/* Main Content Layout */
main {
  flex-grow: 1;
  padding-top: 100px;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 614px;
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-xl);
  margin-top: var(--stack-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -10;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-1 {
  width: 800px;
  height: 800px;
  background-color: rgba(0, 251, 251, 0.05);
  border-radius: 50%;
  filter: blur(100px);
}

.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: rgba(82, 3, 213, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  transform: translateY(25%);
}

.hero-title {
  max-width: 896px;
  margin-bottom: var(--stack-md);
}

.hero-subtitle {
  max-width: 672px;
  margin-bottom: var(--stack-lg);
}

/* Services Grid */
.services-section {
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-xl);
}

.section-header {
  margin-bottom: var(--stack-lg);
  padding-bottom: var(--stack-sm);
  border-bottom: 1px solid rgba(58, 74, 73, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  grid-auto-rows: minmax(200px, auto);
}

.service-card {
  border-radius: var(--border-radius-xl);
  padding: var(--stack-md);
  display: flex;
  flex-direction: column;
}

.service-card.span-2 {
  grid-column: span 2;
}

.service-card.span-3 {
  grid-column: span 3;
  border-left: 4px solid var(--secondary-container);
  flex-direction: row;
  align-items: center;
  gap: var(--gutter);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-default);
  background-color: var(--surface);
  border: 1px solid rgba(58, 74, 73, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--stack-sm);
  transition: border-color 0.3s;
}

.service-card:hover .icon-box {
  border-color: rgba(0, 251, 251, 0.5);
}

.icon-box.large {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-card.span-3:hover .icon-box.large {
  border-color: rgba(82, 3, 213, 0.5);
}

.card-title {
  margin-bottom: 8px;
}

/* Premium Plan Section */
.premium-section {
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-xl);
  margin-bottom: var(--stack-xl);
}

.premium-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 251, 251, 0.3);
  box-shadow: 0 0 30px rgba(0, 251, 251, 0.05);
  padding: var(--stack-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gutter);
}

.premium-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 251, 251, 0.05), transparent);
  pointer-events: none;
}

.premium-content {
  position: relative;
  z-index: 10;
  max-width: 672px;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  background-color: rgba(0, 251, 251, 0.1);
  border: 1px solid rgba(0, 251, 251, 0.2);
  margin-bottom: var(--stack-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-full);
  background-color: var(--primary-fixed);
  box-shadow: 0 0 8px #00FFFF;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.premium-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--stack-sm);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-fixed);
  color: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(0, 251, 251, 0.1);
}

.btn-outline:active {
  transform: scale(0.95);
}

.text-outline {
  color: var(--outline);
}

/* Footer */
footer {
  background-color: var(--surface);
  color: rgba(0, 221, 221, 1); /* primary-fixed-dim approx */
  padding-top: var(--stack-xl);
  padding-bottom: var(--stack-xl);
  border-top: 1px solid rgba(58, 74, 73, 0.1);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copyright {
  opacity: 0.8;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: var(--stack-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--on-surface-variant);
  opacity: 0.8;
  transition: all 0.3s;
}

.footer-link:hover {
  color: var(--primary-fixed);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .btn-primary {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
    color: var(--primary-fixed);
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 44px;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .service-card.span-2,
  .service-card.span-3 {
    grid-column: span 1;
  }
  
  .service-card.span-3 {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .premium-card {
    flex-direction: column;
    align-items: stretch;
    padding: var(--stack-lg);
  }
  
  .premium-action {
    align-items: center;
    margin-top: var(--stack-md);
  }
  
  .btn-outline {
    width: 100%;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--gutter);
  }
  
  .footer-brand {
    align-items: center;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}
