/* Apernic — Confident, modern parking page */

:root {
  --color-bg: #0f172a;
  --color-bg-soft: #1e293b;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-accent: #38bdf8;
  --color-accent-dim: rgba(56, 189, 248, 0.15);
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-x: hidden;
}

/* Background shapes — aperture / light metaphor */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
  animation-delay: -7s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

.aperture-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 600px);
  height: min(90vw, 600px);
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 50%;
  animation: pulse-ring 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-lg);
}

.hero {
  text-align: center;
  max-width: 40rem;
}

.hero .logo,
.hero .pronunciation,
.hero .hero-text,
.hero .tagline,
.hero .cta {
  animation: fade-up 0.8s ease-out forwards;
  opacity: 0;
}

.hero .logo { animation-delay: 0.1s; }
.hero .hero-text { animation-delay: 0.25s; }
.hero .tagline { animation-delay: 0.4s; }
.hero .cta { animation-delay: 0.55s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  margin: 0 0 var(--space-xs);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
}

.tagline {
  margin: 0 0 var(--space-xl);
  font-size: 1.125rem;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cta {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-bg);
  background: var(--color-accent);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.cta--disabled {
  cursor: default;
  opacity: 0.9;
}

.cta--disabled:hover {
  transform: none;
  box-shadow: none;
}

footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
  main {
    padding: var(--space-md);
  }

  .hero {
    max-width: 100%;
  }

  .tagline {
    margin-bottom: var(--space-lg);
  }

  .aperture-ring {
    width: 120vw;
    height: 120vw;
  }
}
