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

:root {
  --bg: #0a0a0f;
  --bg-alt: #0e0e18;
  --bg-card: #12121e;
  --text: #e8e8ed;
  --text-muted: #7a7a9e;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-subtle: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.15);
  --border: #1a1a2e;
  --border-hover: #2a2a4e;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-bg: rgba(10, 10, 15, 0.8);
}

[data-theme="light"] {
  --bg: #f7f7fc;
  --bg-alt: #eeeef4;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b6b88;
  --accent-subtle: rgba(99, 102, 241, 0.06);
  --accent-glow: rgba(99, 102, 241, 0.1);
  --border: #dcdce8;
  --border-hover: #b0b0cc;
  --header-bg: rgba(247, 247, 252, 0.85);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -1px;
  position: relative;
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.logo:hover::after {
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-nav::after {
  display: none;
}

.btn-nav:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 80% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Tech Badges */
.tech-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tech-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.tech-badge:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 18px;
  padding: 16px 36px;
}

.btn-large:hover {
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 600px;
  line-height: 1.7;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* About */
.about-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  max-width: 800px;
}

.about-photo {
  flex-shrink: 0;
}

.avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
  max-width: 100%;
}

.avatar:hover {
  border-color: var(--accent);
}

.about-text-lg {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 48px;
}

.about-text-lg strong {
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.about-num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-lang {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-lang strong {
  color: var(--text);
  font-weight: 600;
}

/* Problems */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  z-index: -1;
}

.problem-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
}

.problem-card:hover::before {
  opacity: 0.15;
}

.problem-icon {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
}

.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  z-index: -1;
}

.service-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 0.15;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border), var(--border), var(--accent));
  opacity: 0.3;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  transition: all var(--transition);
  position: relative;
}

.step:hover .step-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.06);
}

.testimonial-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
}

.testimonial-content p {
  font-style: italic;
}

.testimonial-content::before {
  content: '\201C';
  display: block;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 8px;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* Contact */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  align-self: stretch;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.form-success.active {
  display: block;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin: 0 auto 20px;
}

.form-success-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.checkbox-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-privacy a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-privacy a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link:hover::after {
  width: 100%;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Legal pages */
.legal-page {
  padding: 120px 0 60px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.legal-page p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-page li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  margin-right: 8px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  line-height: 1;
}

.lang-current:hover {
  border-color: var(--accent);
}

.lang-arrow {
  transition: transform var(--transition);
}

.lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.lang-option:hover {
  background: var(--accent-subtle);
  color: var(--text);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  margin-right: 8px;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps::before {
    display: none;
  }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .theme-toggle {
    margin-right: 4px;
  }

  .lang-selector {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    place-items: center;
    text-align: center;
  }

  .about-item {
    padding: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .tech-badges {
    margin-bottom: 24px;
  }
}
