/* === VARIABLES === */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f2a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.6);
  --text-muted: rgba(240, 240, 255, 0.5);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-orange: #f59e0b;
  --accent-pink: #ec4899;
  --glow-purple: rgba(168, 85, 247, 0.3);
  --glow-blue: rgba(59, 130, 246, 0.3);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --gradient-main: linear-gradient(135deg, #a855f7, #3b82f6, #06b6d4);
  --gradient-card: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(59,130,246,0.05));
  --glass-bg: rgba(15, 15, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 10000; text-decoration: none;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px;
  width: auto; height: auto;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary); color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
}
html { scroll-behavior: smooth; }

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

/* === BACKGROUND === */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}
.bg-glow {
  position: fixed; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(150px);
  opacity: 0.15; pointer-events: none; z-index: 0;
}
.bg-glow--purple { background: var(--accent-purple); top: -200px; left: -200px; }
.bg-glow--blue { background: var(--accent-blue); bottom: -200px; right: -200px; }
.bg-glow--cyan { background: var(--accent-cyan); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.07; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 26, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-size: 1.1rem; font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none;
}
.nav__links { display: flex; gap: 1.5rem; list-style: none; }
.nav__links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient-main);
  transition: width 0.3s;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  padding: 0.5rem 1.25rem; background: var(--gradient-main);
  color: white; text-decoration: none; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; transition: all 0.3s;
  box-shadow: 0 0 20px var(--glow-purple);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--glow-purple); }

/* Mobile hamburger */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; z-index: 1001;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--text-primary);
  transition: all 0.3s; border-radius: 2px;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav__mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(10, 10, 26, 0.97); backdrop-filter: blur(20px);
  z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  padding: 5rem 2rem 2rem; overflow-y: auto;
}
.nav__mobile-menu.active { display: flex; }
.nav__mobile-menu a {
  color: var(--text-primary); text-decoration: none;
  font-size: 1.25rem; font-weight: 600; transition: color 0.3s;
}
.nav__mobile-menu a:hover { color: var(--accent-purple); }

/* === COMMON SECTIONS === */
.section {
  position: relative; z-index: 1;
  padding: 2.5rem 2rem; max-width: 1200px; margin: 0 auto;
}
.section__label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent-cyan); text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 1rem;
}
.section__label::before {
  content: ''; width: 30px; height: 1px; background: var(--accent-cyan);
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin-bottom: 1rem; line-height: 1.2;
}
.section__title span {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 3rem;
}
.section__tldr, .answer-block, .fork__tldr {
  position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; clip-path: inset(100%) !important;
  white-space: nowrap !important; border: 0 !important; padding: 0 !important;
  margin: -1px !important;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn--primary {
  background: var(--gradient-main); color: white;
  box-shadow: 0 0 30px var(--glow-purple), 0 4px 15px rgba(0,0,0,0.3);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px var(--glow-purple), 0 8px 25px rgba(0,0,0,0.4);
}
.btn--secondary {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-purple); transform: translateY(-3px);
}

/* === HERO === */
.hero {
  padding-top: 7rem; padding-bottom: 2rem;
}
.hero__inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem; align-items: center; width: 100%;
}
.hero__content { z-index: 2; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px; font-size: 0.8rem;
  color: var(--accent-purple); font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__tag .pulse {
  width: 8px; height: 8px; background: var(--accent-emerald);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero__title .gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 2rem; max-width: 520px;
}
.hero__buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 2.5rem; margin-bottom: 2.5rem;
}
.hero__stat-value {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-family: var(--font-mono);
}
.hero__stat-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* Hero visual */
.hero__visual {
  position: relative; display: flex;
  justify-content: center; align-items: center;
}
.hero__photo-wrapper {
  width: 360px; height: 360px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero__photo-ring {
  position: absolute; border-radius: 50%;
  animation: spin 30s linear infinite;
}
.hero__photo-ring:nth-child(1) {
  inset: 0;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--accent-purple);
  border-right-color: transparent;
}
.hero__photo-ring:nth-child(2) {
  inset: 20px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom-color: var(--accent-blue);
  border-left-color: transparent;
  animation-duration: 25s; animation-direction: reverse;
}
.hero__photo-ring:nth-child(3) {
  inset: 40px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-top-color: var(--accent-cyan);
  animation-duration: 20s;
}
.hero__photo {
  width: 250px; height: 250px;
  object-fit: cover; object-position: center -25px;
  border-radius: 50%; position: relative; z-index: 2;
  filter: brightness(1.05);
  border: 2px solid rgba(168, 85, 247, 0.3);
}
.hero__photo-glow {
  position: absolute; width: 250px; height: 250px;
  border-radius: 50%; background: var(--gradient-main);
  filter: blur(40px); opacity: 0.2; z-index: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

/* === CTA === */
.cta-section {
  position: relative; z-index: 1;
  padding: 4rem 2rem; margin: 0 auto; max-width: 1200px;
}
.cta__inner {
  text-align: center; padding: 4rem 3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(59,130,246,0.1));
  border: 1px solid rgba(168,85,247,0.15);
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 26px; background: var(--gradient-main);
  z-index: -1; opacity: 0.15;
}
.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
}
.cta__title span {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta__desc {
  font-size: 1.1rem; color: var(--text-secondary);
  margin-bottom: 2rem; max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.cta__buttons {
  display: flex; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.cta__contacts {
  display: flex; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.cta__contact {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; transition: color 0.3s;
}
.cta__contact:hover { color: var(--text-primary); }
.cta__contact i { color: var(--accent-purple); }

/* === ACTIVE NAV LINK === */
.nav__links a.active {
  color: var(--text-primary);
}
.nav__links a.active::after {
  width: 100%;
}

/* === MOBILE CTA ICONS === */
.nav__mobile-ctas {
  display: none; flex-direction: row; align-items: center; gap: 0.35rem;
  margin-right: 0.5rem; flex-shrink: 0;
}
.nav__mobile-cta {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--gradient-main); color: white;
  font-size: 0.95rem; text-decoration: none; flex-shrink: 0;
}
.nav__mobile-cta svg { width: 18px; height: 18px; fill: white; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); color: var(--text-secondary);
  font-size: 1.1rem; cursor: pointer; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease; text-decoration: none;
}
.back-to-top.visible {
  opacity: 1; pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent-purple); color: var(--accent-purple);
  transform: translateY(-3px);
}

/* === FOOTER === */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted); font-size: 0.8rem;
  padding: 3rem 2rem 2rem;
}
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
.footer__col-title {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.4rem; }
.footer__links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.8rem; transition: color 0.3s;
}
.footer__links a:hover { color: var(--accent-purple); }
.footer__contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.footer__contact-item a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.8rem; transition: color 0.3s;
}
.footer__contact-item a:hover { color: var(--accent-purple); }
.footer__contact-item i { color: var(--accent-purple); font-size: 0.75rem; width: 14px; text-align: center; }
.footer__socials {
  display: flex; gap: 1rem; margin-top: 0.75rem;
}
.footer__socials a {
  color: var(--text-muted); font-size: 1.1rem;
  transition: color 0.3s; text-decoration: none;
}
.footer__socials a:hover { color: var(--accent-purple); }
.footer__bottom {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.footer__bottom p { margin-bottom: 0.25rem; }
.footer a { color: var(--accent-purple); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* === KEYFRAMES === */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.05); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* === GLASS CARD (reusable) === */
.glass-card {
  padding: 2rem; border-radius: 16px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  opacity: 0; transform: translateY(30px);
}
.glass-card.visible { opacity: 1; transform: translateY(0); }
.glass-card:hover {
  border-color: rgba(168,85,247,0.2); transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(168,85,247,0.05);
}

/* === LANG SWITCHER === */
.lang-switcher {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px; overflow: hidden;
  margin-right: 0.75rem;
}
.lang-switcher__option {
  padding: 0.2rem 0.5rem; font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500; text-decoration: none;
  color: var(--text-secondary); transition: all 0.25s ease;
  letter-spacing: 0.5px; line-height: 1.2;
}
.lang-switcher__option:hover { color: var(--text-primary); }
.lang-switcher__option--active {
  color: white; font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
/* Mobile: no box, just clean text */
.lang-switcher--mobile {
  background: none; border: none; border-radius: 0;
  overflow: visible; justify-content: center;
  order: 50; margin: 0;
}
.lang-switcher--mobile .lang-switcher__option {
  padding: 0.3rem 0.6rem; font-size: 0.85rem; border-radius: 4px;
}
.lang-switcher--mobile .lang-switcher__option--active {
  background: rgba(255, 255, 255, 0.06);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { transform: translateY(-100%); }
  .nav__inner { padding: 0.6rem 1rem; }
  .nav__logo { font-size: 0.95rem; white-space: nowrap; }
  .lang-switcher:not(.lang-switcher--mobile) { display: none; }
  .nav--visible { transform: translateY(0); }
  .nav__burger { display: flex; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__mobile-ctas { display: flex; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .footer__socials { justify-content: center; }
  .footer__contact-item { justify-content: center; }
  .back-to-top { bottom: 1.5rem; right: 1.5rem; }
  .hero { padding-top: 2rem; }
  .hero__inner {
    grid-template-columns: 1fr; gap: 1.5rem; text-align: center;
  }
  .hero__visual { order: -1; }
  .hero__photo-wrapper { width: 240px; height: 240px; }
  .hero__photo { width: 175px; height: 175px; object-position: center -35px; }
  .hero__photo-glow { width: 200px; height: 200px; }
  .hero__buttons { justify-content: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__stats { justify-content: center; gap: 1.5rem; }
  .section { padding: 2.5rem 1.25rem; }
  .section__subtitle { margin-bottom: 2rem; }
  .cta-section { padding: 3rem 1.25rem; }
  .cta__inner { padding: 2.5rem 1.5rem; }
  .cta__contacts { gap: 1rem; flex-direction: column; align-items: center; }
  .footer { font-size: 0.75rem; padding: 1.5rem 1rem; }
  .footer p { line-height: 1.8; }
}
@media (max-width: 480px) {
  .hero { padding-top: 1.5rem; }
  .hero__photo-wrapper { width: 200px; height: 200px; }
  .hero__photo { width: 145px; height: 145px; object-position: center -25px; }
  .hero__photo-glow { width: 165px; height: 165px; }
  .hero__stat-value { font-size: 1.5rem; }
  .hero__stats { gap: 1rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .section { padding: 3rem 1rem; }
  .cta__buttons { flex-direction: column; align-items: center; }
  .cta__buttons .btn { width: 100%; justify-content: center; }
}
