/* ============================================================
   SKYARC TECHNOLOGIES — GLOBAL DESIGN SYSTEM
   Premium dark-mode, Apple-level aesthetic
   ============================================================ */

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

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Colors — Premium Corporate Dark */
  --color-bg-primary: #050505;
  --color-bg-secondary: #0A0E17;
  --color-bg-card: #0D1117;
  --color-bg-card-alt: #111827;
  --color-bg-elevated: #161B22;

  --color-border-subtle: rgba(255, 255, 255, 0.05);
  --color-border-medium: rgba(255, 255, 255, 0.08);
  --color-border-accent: rgba(0, 102, 255, 0.3);

  --color-text-heading: rgba(255, 255, 255, 0.92);
  --color-text-body: rgba(255, 255, 255, 0.6);
  --color-text-muted: rgba(255, 255, 255, 0.4);
  --color-text-white: #ffffff;

  --color-accent-blue: #0066FF;
  --color-accent-blue-bright: #0088FF;
  --color-accent-cyan: #00D6FF;
  --color-accent-green: #00C853;
  --color-accent-purple: #8B5CF6;
  --color-accent-orange: #FF6B35;

  --gradient-accent: linear-gradient(135deg, #0066FF, #00D6FF);
  --gradient-accent-hover: linear-gradient(135deg, #0077FF, #00E5FF);
  --gradient-bg-radial: radial-gradient(ellipse at 50% 0%, #050815 0%, #050505 70%);
  --gradient-card-blue: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(0,214,255,0.04));
  --gradient-card-green: linear-gradient(135deg, rgba(0,200,83,0.08), rgba(0,214,255,0.04));

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-label: 'Space Grotesk', monospace;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow-blue: 0 0 30px rgba(0, 102, 255, 0.15);
  --shadow-glow-cyan: 0 0 30px rgba(0, 214, 255, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 8px 48px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 60px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-body);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: var(--font-primary);
  outline: none;
}

::selection {
  background: rgba(0, 102, 255, 0.3);
  color: var(--color-text-white);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

/* ── Typography Utilities ── */
.label-sm {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.heading-xl {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: var(--font-weight-black);
  color: var(--color-text-heading);
  line-height: 1.05;
  letter-spacing: -2px;
}

.heading-lg {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.heading-md {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-heading);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.heading-sm {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-heading);
  line-height: 1.3;
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-body);
}

.body-md {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
}

.body-sm {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  background: var(--gradient-accent);
  color: var(--color-text-white);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-hover);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 30px;
  background: transparent;
  color: var(--color-text-heading);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-medium);
  transition: all var(--transition-base);
  letter-spacing: 0.3px;
}

.btn-outline:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-cyan);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-1px);
}

.btn-gradient-border {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 28px;
  background: var(--color-bg-primary);
  color: var(--color-text-white);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}

.btn-gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  z-index: -1;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.btn-gradient-border::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-full);
  z-index: -1;
}

.btn-gradient-border:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

.btn-gradient-border:hover::before {
  opacity: 1;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-blue);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
}

.btn-text:hover {
  color: var(--color-accent-cyan);
  gap: var(--space-3);
}

/* ── Cards ── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-4px);
}

/* ── Section Spacing ── */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-16) 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.1); }
  50% { box-shadow: 0 0 40px rgba(0, 102, 255, 0.3); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(40px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

.animate-on-scroll.scale-up {
  transform: scale(0.92);
}

.animate-on-scroll.scale-up.visible {
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }
.delay-5 { transition-delay: 500ms; }
.delay-6 { transition-delay: 600ms; }

/* ============================================================
   NAVBAR — Apple-style Glassmorphism
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-slow);
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

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

.navbar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 101;
}

.navbar-logo svg {
  width: 32px;
  height: 32px;
}

.navbar-logo-img {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(2);
  transition: filter var(--transition-base);
}

.navbar-logo-text {
  font-size: 20px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-white);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.navbar-links a {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  position: relative;
  letter-spacing: 0.2px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--color-text-white);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a.active {
  color: var(--color-text-white);
}

.navbar-links a.active::after {
  width: 100%;
}

.navbar-cta {
  z-index: 101;
}

.navbar-cta .btn-gradient-border {
  font-size: 13px;
  padding: 10px 22px;
}

/* Mobile menu button */
.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
}

.navbar-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(30px);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.navbar-mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.navbar-mobile-menu a {
  font-size: 28px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-heading);
  transition: color var(--transition-fast);
}

.navbar-mobile-menu a:hover {
  color: var(--color-accent-blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080808;
  padding: var(--space-20) 0 0;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-col-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-heading);
  margin-bottom: var(--space-6);
}

.footer-brand-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: invert(1) brightness(2);
}

.footer-logo-text {
  font-size: 18px;
  font-weight: var(--font-weight-black);
  color: var(--color-text-white);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-accent-blue);
}

.footer-bottom {
  margin-top: var(--space-16);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: var(--color-text-muted);
  font-size: 13px;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text-heading);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(194, 198, 216, 0.7);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link:hover {
  background: rgba(0, 102, 255, 0.15);
  color: var(--color-accent-blue);
  border-color: rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .section {
    padding: var(--space-20) 0;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-mobile-toggle {
    display: flex;
  }

  .navbar-mobile-menu {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .heading-xl {
    letter-spacing: -1px;
  }

  .heading-lg {
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
}
