/* -------------------------------------------------------------------
   WSOGMM — Figma design implementation
   Purple gradient landing with hero, services, contact
   ------------------------------------------------------------------- */

:root {
  --color-bg: #301c75;
  --color-bg-dark: #1e104f;
  --color-text: #ffffff;
  --color-text-muted: rgba(191, 219, 254, 0.9);
  --color-text-subtle: rgba(191, 219, 254, 0.6);
  --color-accent: #301c75;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --max-width: 72rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

::selection {
  background: #ec4899;
  color: white;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-links a:hover {
  color: white;
}

.nav-social {
  display: flex;
  gap: 1rem;
}

.nav-social a {
  color: white;
  transition: color 0.2s, transform 0.2s;
}

.nav-social a:hover {
  color: var(--color-text-muted);
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .nav {
    padding: var(--space-md) 3rem;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--space-lg) 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #301c75 0%, #4a3596 50%, #6d5cb3 100%);
  opacity: 0.8;
}

.hero-bubbles {
  position: absolute;
  opacity: 0.4;
  mix-blend-mode: screen;
}

.hero-bubbles img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-bubbles-top {
  top: -5rem;
  right: -5rem;
  width: 600px;
  height: 600px;
  animation: fadeInScale 1.5s ease-out forwards;
}

.hero-bubbles-bottom {
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  transform: rotate(180deg);
  mix-blend-mode: overlay;
  animation: fadeInUp 2s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 0.4;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: rotate(180deg) translateY(100px);
  }
  to {
    opacity: 0.3;
    transform: rotate(180deg) translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  text-align: center;
  max-width: 42rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-md);
  background: linear-gradient(to right, #fbcfe8, white, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.hero-subtitle strong {
  color: white;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
}

.hero-social {
  display: flex;
  gap: 2rem;
  padding-top: 3rem;
  color: var(--color-text-subtle);
}

.hero-social a {
  color: inherit;
  transition: color 0.2s, transform 0.2s;
}

.hero-social a:hover {
  color: white;
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: white;
  color: var(--color-accent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon-arrow {
  display: inline-block;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.hero-ring-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(168, 85, 247, 0.2) 40%, rgba(59, 130, 246, 0.3) 100%);
  border-radius: 50%;
  filter: blur(100px);
  animation: pulse 2s ease-in-out infinite;
}

.hero-ring {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.25));
  animation: spin-slow 60s linear infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.7;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-social {
    justify-content: flex-start;
  }

  .hero-visual {
    flex: 1;
    max-width: 600px;
    max-height: 600px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.scroll-line {
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, rgba(191, 219, 254, 0.5), transparent);
}

/* Services */
.services {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  padding: 8rem var(--space-lg);
  min-height: 60vh;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  text-align: center;
  margin: 0 0 var(--space-md);
}

.services-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 5rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.service-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

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

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem;
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: #fbcfe8;
}

.service-card p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Contact */
.contact {
  position: relative;
  z-index: 10;
  padding: 6rem var(--space-lg);
}

.contact-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin: 0 0 2rem;
}

.contact-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.btn-contact {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border);
  background: rgba(30, 16, 79, 0.5);
  backdrop-filter: blur(12px);
  padding: 3rem var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-subtle);
}

.footer-social a {
  color: inherit;
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: white;
  transform: scale(1.1);
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}
