@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg-color: #FDFBF7;
  /* Warm Ivory */
  --text-color: #2D2D2D;
  /* Soft Black */
  --accent-warm: #F2EBE5;
  --gradient-start: #FDFBF7;
  /* New Visible Warm Blue Palette */
  --calm-blue: #DAE6F2;
  --calm-blue-accent: #C5D8ED;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Fallback for small screens */
@media (max-height: 500px) {
  body {
    overflow-y: auto;
    padding: 2rem 0;
    display: block;
    text-align: center;
  }
}

/* 
   VISIBLE GRADIENT LAYER 
   Using #DAE6F2 fading to transparent
   Fixed positioning ensures it sticks to the viewport bottom (no gaps)
*/
.gradient-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  /* ~3-4cm, clearly visible */
  background: linear-gradient(to top, var(--calm-blue) 0%, rgba(218, 230, 242, 0) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  animation: breathe 5s ease-in-out infinite alternate;
}

/* Floating Orbs for "Movement" */
.gradient-orb {
  position: fixed;
  bottom: -40px;
  right: 15%;
  width: 300px;
  height: 150px;
  background: radial-gradient(circle, var(--calm-blue-accent) 0%, transparent 60%);
  opacity: 0.6;
  filter: blur(50px);
  z-index: -1;
  animation: floatOrb 10s ease-in-out infinite alternate;
}

.gradient-orb-2 {
  position: fixed;
  bottom: -30px;
  left: 15%;
  width: 350px;
  height: 120px;
  background: radial-gradient(circle, #D8E1EA 0%, transparent 60%);
  opacity: 0.6;
  filter: blur(50px);
  z-index: -1;
  animation: floatOrb2 13s ease-in-out infinite alternate;
}

@keyframes breathe {
  0% {
    height: 140px;
    opacity: 0.8;
  }

  100% {
    height: 180px;
    opacity: 1.0;
  }
}

@keyframes floatOrb {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }

  100% {
    transform: translateX(40px) translateY(-20px) scale(1.1);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translateX(0) translateY(0) scale(1);
  }

  100% {
    transform: translateX(-50px) translateY(-15px) scale(1.05);
  }
}

main {
  text-align: center;
  z-index: 1;
  padding: 0 20px;
  animation: fadeIn 1.2s ease-out;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  max-width: 100%;
}

h1>span:first-child {
  white-space: nowrap;
}

.separator {
  opacity: 0.3;
  font-weight: 300;
  font-size: 1.8rem;
}

p {
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
  margin: 0 auto;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 8px;
  border-radius: 50%;
}

.icon-link:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.03);
}

.icon-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.icon-link::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: all 0.2s ease;
  pointer-events: none;
  margin-bottom: 8px;
}

.icon-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.billingrails-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.billingrails-link:hover {
  border-bottom-color: rgba(0, 0, 0, 0.6);
  opacity: 0.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.8rem;
    gap: 0.8rem;
  }
}