
/* Base styles */
:root {
  --background: hsl(210, 40%, 98%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --primary: hsl(209, 100%, 24%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(166, 91%, 29%);
  --accent: hsl(166, 91%, 29%);
  --blue-900: #1a365d;
  --blue-700: #2a4365;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  overflow-x: hidden;
}

.page-container {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
}

/* Animated background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -10;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
}

.blob-1 {
  top: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background-color: rgba(59, 130, 246, 0.1);
  animation: float 6s ease-in-out infinite;
}

.blob-2 {
  bottom: 33%;
  left: 25%;
  width: 20rem;
  height: 20rem;
  background-color: rgba(30, 58, 138, 0.1);
  animation: pulse 8s ease-in-out infinite;
}

.blob-3 {
  top: 66%;
  right: 33%;
  width: 10rem;
  height: 10rem;
  background-color: rgba(191, 219, 254, 0.2);
  animation: float 9s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 1rem 0;
  animation: fadeIn 0.7s ease-out;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  position: relative;
  height: 2rem;
  width: 2rem;
  background: linear-gradient(to bottom right, var(--blue-900), var(--blue-500));
  border-radius: 0.5rem;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-letter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--blue-900);
}

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

.nav-link {
  color: var(--blue-900);
  text-decoration: none;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--blue-600);
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  animation: fadeIn 0.7s ease-out;
}

.hero .container {
  text-align: center;
  max-width: 64rem;
  padding: 2.5rem 1rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  background-color: rgba(219, 234, 254, 0.5);
  backdrop-filter: blur(0.25rem);
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-700);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: bold;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--blue-700);
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  background-color: var(--blue-600);
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: var(--blue-700);
}

.button::after {
  content: "→";
  margin-left: 0.5rem;
}

.button-outline {
  background-color: transparent;
  color: var(--blue-600);
  border: 1px solid var(--blue-600);
}

.button-outline:hover {
  background-color: var(--blue-100);
}

.button-outline::after {
  content: none;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.75rem;
  }
  
  .hero p {
    font-size: 1.5rem;
  }
}

/* Features section */
.features {
  padding: 4rem 0 6rem;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--blue-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--blue-700);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(0.25rem);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue-600);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--blue-700);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
}

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

/* Footer */
footer {
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 0.875rem;
  color: #64748b;
}

.link-button {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--blue-600);
}

.imprint-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

.imprint-content h3 {
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.imprint-content p {
  margin-bottom: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

/* Animation utilities */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
