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

:root {
  --color-primary: #6366f1;
  --color-secondary: #0f172a;
  --color-accent: #10b981;
  --color-accent-pink: #f472b6;
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-glass: rgba(30, 41, 59, 0.7);
  --color-border: rgba(255, 255, 255, 0.1);

  --font-family: 'Space Grotesk', sans-serif;
  
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition: var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.btn-primary:hover {
  background-color: #4f46e5;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

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

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

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

.syntax-purple { color: #a78bfa; }
.syntax-green { color: var(--color-accent); }
.syntax-blue { color: #60a5fa; }
.syntax-pink { color: var(--color-accent-pink); }

.code-window {
  background: #010816;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.code-header {
  background: #1e293b;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-body {
  padding: 1.5rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
}

.section-padding {
  padding: 6rem 0;
}

.footer {
  background-color: #020617;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 1000;
  transition: 0.4s ease-in-out;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
  right: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  padding: 1.5rem;
  z-index: 2000;
  border-top: 2px solid var(--color-primary);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.8));
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

input, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: 0.5rem;
  color: white;
  transition: var(--transition-base);
}

input:focus, textarea:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--color-text-muted);
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
