/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light / White Theme Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f2fb;

  /* Borders */
  --border: rgba(99, 102, 241, 0.10);
  --border-hover: rgba(99, 102, 241, 0.28);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* Accent — refined indigo */
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-subtle: #eef2ff;
  --accent-glow: rgba(79, 70, 229, 0.14);

  /* Brand colors — desaturated/premium */
  --telegram: #3b82c4;
  --facebook: #3b5fa0;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(79, 70, 229, 0.08), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(79, 70, 229, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar {
  width: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 4px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: linear-gradient(135deg, #3b0764 0%, #5b21b6 50%, #7c3aed 100%);
  transition: var(--transition);
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.96) 0%, rgba(91, 33, 182, 0.96) 50%, rgba(124, 58, 237, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.25);
  padding: 8px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: -10px 0;
  filter: brightness(1.15) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.25));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.accent {
  color: var(--accent);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 60px;
  background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 40%, #eef2ff 70%, #ffffff 100%);
}

/* Background decorations */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  top: -120px;
  left: -100px;
  animation: floatOrb 9s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ddd6fe, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, 30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Badge icon size */
.badge-icon {
  font-size: 0.85rem;
  vertical-align: middle;
  line-height: 1;
}

/* hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: var(--accent-subtle);
  border: 1px solid rgba(99, 102, 241, 0.20);
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.4px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2.5px;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #c0b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  min-height: 1.8em;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
}

.hero-subtitle .typed-text {
  display: inline;
}

.hero-subtitle .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.25);
}

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

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

/* ===========================
   SOCIAL ICONS
=========================== */
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-socials {
  margin-top: 8px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #7c3aed;
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.10);
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.40);
}


.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

/* ===========================
   SECTIONS SHARED
=========================== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 460px;
  font-size: 0.95rem;
  text-align: center;
}

/* ===========================
   ABOUT
=========================== */
.about {
  padding: 110px 0;
  background: var(--bg-secondary);
  position: relative;
}

/* Subtle graph grid in about section */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 65%);
  opacity: 0;
  transition: var(--transition);
  border-radius: inherit;
}

.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.09);
}

.card-icon i {
  font-size: 1.1rem;
  color: #7c3aed;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  position: relative;
}

/* ===========================
   CONTACT / CONNECT
=========================== */
.contact {
  padding: 110px 0;
  background: var(--bg-primary);
  position: relative;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #7c3aed;
  border: 1.5px solid rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.09);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.platform-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.platform-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===========================
   ANIMATIONS
=========================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, #3b0764 0%, #5b21b6 60%, #7c3aed 100%);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

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

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

  .contact-card {
    padding: 18px 20px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}