

:root {
  
  --color-bg-primary: #0a0f1c;
  --color-bg-secondary: #0f1629;
  --color-bg-tertiary: #141b2d;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-accent: #ec4899;
  --color-accent-light: #f472b6;
  --color-accent-alt: #ff0266;
  --color-success: #25D366;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-glow: rgba(99, 102, 241, 0.15);

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-border: 1px solid rgba(255, 255, 255, 0.10);
  --glass-border-hover: 1px solid rgba(255, 255, 255, 0.20);
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 20px;
  --blur-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.1);

  --neu-shadow-dark: rgba(0, 0, 0, 0.5);
  --neu-shadow-light: rgba(255, 255, 255, 0.05);
  --neu-raised: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light);
  --neu-inset: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-height: 72px;
  --section-padding: 100px;

  --font-display: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;
  --font-hero: 'Josefin Sans', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --text-xl: clamp(1.15rem, 1rem + 0.7vw, 1.35rem);
  --text-2xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.8rem, 1.3rem + 2.5vw, 2.8rem);
  --text-4xl: clamp(2.2rem, 1.5rem + 3.5vw, 3.8rem);
  --text-hero: clamp(2.5rem, 2rem + 4vw, 5rem);
}

body.light-mode {
  --color-bg-primary: #e6e9ef;
  --color-bg-secondary: #dde0e6;
  --color-bg-tertiary: #d4d8de;
  --color-surface: rgba(0, 0, 0, 0.03);
  --color-surface-hover: rgba(0, 0, 0, 0.06);
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  --color-glow: rgba(99, 102, 241, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
  --glass-border-hover: 1px solid rgba(99, 102, 241, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 30px rgba(99, 102, 241, 0.08);

  --neu-shadow-dark: #b8bcc2;
  --neu-shadow-light: #ffffff;
  --neu-raised: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light);
  --neu-inset: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-bg-primary), var(--color-bg-secondary));
  box-shadow: var(--neu-raised);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--color-text-primary);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--neu-raised), 0 0 20px var(--color-glow);
}

.theme-toggle:active {
  transform: translateY(1px);
  box-shadow: var(--neu-inset);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.light-mode .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.light-mode .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.neu-raised {
  box-shadow: var(--neu-raised);
}

.neu-inset {
  box-shadow: var(--neu-inset);
}

.neu-flat {
  background: linear-gradient(145deg, var(--color-bg-primary), var(--color-bg-secondary));
}

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

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

ul, ol {
  list-style: none;
}

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

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

::selection {
  background: var(--color-primary);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 60px;
  color: var(--color-text-primary);
  position: relative;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: 16px auto 0;
  border-radius: var(--radius-full);
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .loader-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
    --header-height: 60px;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}
