/* === VARIABLES === */
:root {
  --dark: #0f0f1f;
  --dark-lighter: #111;
  --primary-start: #6633cc;
  --primary-end: #4747e6;
  --cta-gradient-start: #1a1a3f;
  --cta-gradient-end: #2d1a4a;
  --white: #FFFFFF;
  --gray-100: #F3F4F6;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--cta-gradient-start), var(--cta-gradient-end));
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 2rem auto;
  padding: 4rem 2rem;
  box-shadow: 0 8px 32px rgba(102, 51, 204, 0.15);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(102, 51, 204, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .fade-in {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
  color: var(--gray-100);
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.cta-section .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 51, 204, 0.3);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--dark);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(to right, var(--primary-start), var(--primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(102, 51, 204, 0.3);
}

/* === NAVIGATION === */
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(to right, var(--primary-start), var(--primary-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-start), var(--primary-end));
  color: var(--white);
  border: none;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-secondary {
  border: 2px solid var(--primary-start);
  color: var(--white);
}

.btn-secondary:hover {
  background: linear-gradient(to right, var(--primary-start), var(--primary-end));
  border-color: transparent;
}

/* === CARDS === */
.card {
  background-color: var(--dark-lighter);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(102, 51, 204, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(71, 71, 230, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(102, 51, 204, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(71, 71, 230, 0.1) 75%);
  background-size: 100px 100px;
  background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
  animation: backgroundMove 20s linear infinite;
  opacity: 0.5;
}

@keyframes backgroundMove {
  0% {
    background-position: 0 0, 0 50px, 50px -50px, -50px 0px;
  }
  100% {
    background-position: 100px 0, 100px 50px, 150px -50px, 50px 0px;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(102, 51, 204, 0.2) 0%, transparent 50%);
}

/* === GRID === */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* === FOOTER === */
.footer {
  background-color: var(--dark-lighter);
  padding: 3rem 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-start);
}

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

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

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

/* === FORM === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--gray-600);
  background-color: var(--dark-lighter);
  color: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-start);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav-list.active {
    transform: translateX(0);
  }

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