@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  --bg-deep: #050608;
  --bg-main: #0a0c10;
  --bg-soft: #12151c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --brand-primary: #8b5cf6;
  --brand-secondary: #10b981;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

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

::selection {
  background: var(--brand-primary);
  color: white;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: var(--transition-smooth);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  filter: blur(80px);
  animation: pulse 10s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.hero-inner {
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

/* --- Cards & Grid --- */
h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: -0.02em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stats div {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.stats strong {
  display: block;
  font-size: 36px;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.stats span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.cards article h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cards article p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.tags {
  display: flex;
  gap: 12px;
  list-style: none;
}

.tags li {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(139, 92, 246, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1),
    transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* --- Form --- */
.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* --- Footer --- */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.site-footer nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.site-footer a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
  }

  .nav ul {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    transform: translateX(100%);
    transition: var(--transition-smooth);
  }

  .nav ul.open {
    transform: translateX(0);
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav a {
    font-size: 32px;
    font-weight: 800;
  }
}