/* ServiceTicket — coming soon
   Brand palette taken from the logo: royal blue, lime green, white. */

:root {
  --brand-blue: #1560b5;
  --brand-blue-deep: #0e3f7e;
  --brand-green: #8fc742;
  --white: #ffffff;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--brand-blue-deep);
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Animated brand background — always behind the video, shown when no clip
   is present. A slow drift of light keeps it modern without a real video. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 25%, rgba(143, 199, 66, 0.28), transparent 70%),
    radial-gradient(45% 55% at 80% 75%, rgba(35, 120, 220, 0.4), transparent 70%),
    linear-gradient(135deg, #0c356b 0%, var(--brand-blue) 55%, #0c356b 100%);
  animation: drift 22s ease-in-out infinite alternate;
}

/* Faint engineering grid for a subtle tech texture. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

/* Darken whatever is behind so the logo always reads. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 32, 66, 0.55),
    rgba(8, 32, 66, 0.7)
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  text-align: center;
}

/* ---------- logo lockup ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  text-decoration: none;
  color: var(--white);
}

.logo__mark {
  width: clamp(48px, 9vw, 76px);
  height: clamp(48px, 9vw, 76px);
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

.logo__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo__service {
  color: var(--white);
}

.logo__ticket {
  color: var(--brand-green);
}

/* ---------- coming soon + contact ---------- */
.coming {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.coming::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--brand-green);
}

.contact {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 0 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact:hover {
  color: var(--white);
  border-color: var(--brand-green);
}

.contact:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- contact dialog ---------- */
.dialog {
  width: min(440px, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #0f2d4d;
  color: var(--white);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.dialog::backdrop {
  background: rgba(6, 24, 48, 0.7);
  backdrop-filter: blur(3px);
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.dialog__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.dialog__close:hover {
  color: var(--white);
}

.dialog__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
}

.dialog__sub {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.cform__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.5rem;
}

.cform__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.cform__input:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 1px;
  border-color: transparent;
}

.cform__textarea {
  resize: vertical;
  min-height: 5rem;
}

/* Honeypot — visually and programmatically out of the way for humans. */
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cform__submit {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue-deep);
  background: var(--brand-green);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.12s ease;
}

.cform__submit:hover {
  filter: brightness(1.06);
}

.cform__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.cform__submit:focus-visible,
.dialog__close:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

.cform__msg {
  margin: 0.6rem 0 0;
  min-height: 1.1em;
  font-size: 0.85rem;
  color: var(--brand-green);
}

.cform__msg[data-state="error"] {
  color: #ff9d7a;
}

/* ---------- motion ---------- */
@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1.05);
  }
  to {
    transform: translate3d(2%, 1%, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}
