:root {
  --bg-image: url('assets/background.jpg');
  --accent: #0596F7;
  --text: #E1E1E1;
  --accent-rgb: 5 150 247;
  --text-rgb: 225 225 225;
  --hero-padding: clamp(1.5rem, 4vw, 3rem);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3, 6, 12, 0.9),
    rgba(10, 32, 58, 0.78)
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: transparent;
  -webkit-backdrop-filter: grayscale(0.95) contrast(1.05);
  backdrop-filter: grayscale(0.95) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: var(--hero-padding);
  padding-bottom: calc(
    var(--hero-padding) + 1.2rem + env(safe-area-inset-bottom, 0px)
  );
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@supports (-webkit-touch-callout: none) {
  :root {
    height: -webkit-fill-available;
  }

  body,
  .hero {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
}

.centerpiece {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.logo {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.tagline {
  max-width: 30rem;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text);
  opacity: 0.85;
  line-height: 1.4;
}

.demo-form {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  background: rgba(var(--accent-rgb) / 0.12);
  padding: 1.25rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(var(--text-rgb) / 0.12);
  backdrop-filter: blur(10px);
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.75;
}

.input-group {
  display: flex;
  gap: 0.6rem;
}

input[type='email'] {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(var(--text-rgb) / 0.25);
  background: rgba(var(--accent-rgb) / 0.2);
  color: var(--text);
  font-size: 1rem;
}

input[type='email']::placeholder {
  color: rgba(var(--text-rgb) / 0.7);
}

button {
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 12px 30px rgba(var(--accent-rgb) / 0.35);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb) / 0.55);
}

button:active {
  transform: translateY(0);
}

@media (max-width: 540px) {
  .hero {
    padding: 1.4rem;
  }

  .input-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
