/* ============================================
   Fonts - Open Sans (Arial is system font)
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Colors */
  --brand-primary: #4397F7;
  --brand-primary-dark: #2E7DD6;
  --white: #FFFFFF;
  --dark: #282828;

  /* Typography */
  --font-primary: "Open Sans", Arial, sans-serif;
  --font-title: Arial, "Open Sans", sans-serif;
}

/* ============================================
   Base Styles & Reset
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  color: var(--white);
}

/* ============================================
   Background Layer with Animation
   ============================================ */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.logo-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/logo.png');
  background-size: 40%;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.4;
  animation: logoFloat 15s ease-in-out infinite;
  will-change: transform;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  opacity: 1;
}

/* Background animations */
@keyframes logoFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(-30px, -40px) scale(1.08) rotate(-2deg);
  }
  50% {
    transform: translate(30px, 30px) scale(0.92) rotate(2deg);
  }
  75% {
    transform: translate(-20px, 40px) scale(1.05) rotate(-1deg);
  }
}


/* ============================================
   Main Content - Centered
   ============================================ */
.content {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 2rem;
  padding-bottom: 3rem;
  z-index: 1;
}

/* ============================================
   Typography
   ============================================ */
.title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  max-width: 900px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out;
}

.description {
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 600px;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: backwards;
}

/* ============================================
   CTA Button
   ============================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 3rem;
  background: var(--white);
  color: var(--brand-primary);
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  min-height: 56px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: backwards;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.cta-button:active {
  transform: translateY(-2px);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Accessibility
   ============================================ */
a:focus {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-background,
  .gradient-overlay {
    animation: none !important;
  }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
  .content {
    padding: 1.5rem;
  }

  .logo-background {
    background-size: 60%;
    opacity: 0.35;
  }

  .description {
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo-background {
    background-size: 80%;
    opacity: 0.3;
  }

  .cta-button {
    width: 100%;
    max-width: 280px;
  }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .content {
    padding: 1rem;
  }

  .title {
    font-size: clamp(1.75rem, 5vw, 3rem);
  }

  .description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
}
