:root {
  color-scheme: dark;
  --navy: #071424;
  --graphite: #11191f;
  --teal: #386f72;
  --gold: #d8b46a;
  --gold-bright: #ffe0a3;
  --white: #fffaf0;
  --mist: rgba(255, 250, 240, 0.8);
  --line: rgba(216, 180, 106, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow-x: hidden;
  background: #050d18;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 10, 18, 0.94), rgba(3, 10, 18, 0.46), rgba(3, 10, 18, 0.94)),
    url("assets/ata-lojistik-yaza-merhaba.png") center / cover no-repeat;
  filter: blur(30px) saturate(0.78);
  opacity: 0.48;
  transform: scale(1.08);
}

body::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(22, 34, 45, 0.26), transparent 42%),
    linear-gradient(90deg, #050d18 0%, rgba(5, 13, 24, 0.84) 28%, rgba(5, 13, 24, 0.84) 72%, #050d18 100%);
}

.invite {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.invite__background {
  position: absolute;
  inset: -2%;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 13, 24, 0.86), rgba(5, 13, 24, 0.28) 32%, rgba(5, 13, 24, 0.28) 68%, rgba(5, 13, 24, 0.86)),
    linear-gradient(180deg, rgba(5, 13, 24, 0.06), rgba(5, 13, 24, 0.42) 56%, rgba(5, 10, 18, 0.92)),
    url("assets/ata-lojistik-yaza-merhaba.png") center / cover no-repeat;
  filter: saturate(0.95);
  transform: scale(1.04);
}

.invite__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 17, 27, 0.18), rgba(7, 17, 27, 0.64) 74%, rgba(5, 10, 18, 0.94) 100%),
    linear-gradient(180deg, rgba(5, 13, 24, 0.08), transparent 24%, transparent 76%, rgba(5, 13, 24, 0.38));
}

.invite::before,
.invite::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: min(calc(100vw - 32px), 400px);
  border: 1px solid var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}

.invite::after {
  top: 27px;
  bottom: 27px;
  width: min(calc(100vw - 54px), 378px);
  border-color: rgba(247, 251, 255, 0.16);
}

.invite__content {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(18px, 5svh, 44px);
  padding: clamp(30px, 7svh, 58px) 28px 30px;
  background:
    radial-gradient(circle at 50% 43%, rgba(7, 17, 27, 0.7), rgba(7, 17, 27, 0.24) 42%, transparent 66%),
    linear-gradient(90deg, rgba(5, 12, 22, 0.06), rgba(255, 255, 255, 0.04), rgba(5, 12, 22, 0.06));
}

.card-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  perspective: 1200px;
}

.gate-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background:
    linear-gradient(180deg, rgba(255, 224, 163, 0.14), transparent 18%, transparent 80%, rgba(255, 224, 163, 0.1)),
    linear-gradient(90deg, rgba(5, 13, 24, 0.94), rgba(10, 25, 40, 0.76)),
    url("assets/ata-lojistik-yaza-merhaba.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.22);
  transition:
    transform 1.1s cubic-bezier(0.2, 0.74, 0.1, 1),
    filter 1.1s ease,
    opacity 0.6s ease 0.55s;
  will-change: transform;
}

.gate-panel--left {
  left: 0;
  transform-origin: left center;
}

.gate-panel--right {
  right: 0;
  transform-origin: right center;
  background-position: right center;
}

.gate-panel--left::after,
.gate-panel--right::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(216, 180, 106, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(255, 224, 163, 0.1), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.36));
}

.gate-panel--right::after {
  background:
    radial-gradient(ellipse at center, rgba(216, 180, 106, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 18%, transparent 82%, rgba(255, 224, 163, 0.1));
}

.gate-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(72vw, 300px);
  padding: 28px 24px;
  border: 1px solid rgba(255, 224, 163, 0.48);
  background:
    linear-gradient(180deg, rgba(7, 17, 27, 0.82), rgba(7, 17, 27, 0.62)),
    radial-gradient(circle at 50% 0%, rgba(255, 224, 163, 0.18), transparent 54%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
  transition:
    transform 0.75s ease,
    opacity 0.35s ease 0.18s;
}

.gate-seal::before,
.gate-seal::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42vw;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 163, 0.72));
}

.gate-seal::before {
  right: 100%;
}

.gate-seal::after {
  left: 100%;
  transform: scaleX(-1);
}

.gate-seal__mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.gate-seal__brand {
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gate-seal__title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 8vw, 2.45rem);
  font-style: italic;
  line-height: 1;
}

.gate-seal__hint {
  margin-top: 6px;
  color: var(--gold-bright);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invite.is-open .gate-panel--left {
  transform: translateX(-103%) rotateY(-18deg);
  filter: brightness(0.82);
  opacity: 0.88;
}

.invite.is-open .gate-panel--right {
  transform: translateX(103%) rotateY(18deg);
  filter: brightness(0.82);
  opacity: 0.88;
}

.invite.is-open .gate-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.invite.is-open .card-gate {
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand__mark {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--gold);
  background: rgba(216, 180, 106, 0.12);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand__name {
  color: var(--mist);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.headline {
  align-self: center;
  text-align: center;
  display: grid;
  gap: 16px;
  padding: 4svh 0 2svh;
}

.eyebrow {
  width: max-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 224, 163, 0.42);
  border-bottom: 1px solid rgba(255, 224, 163, 0.42);
  color: var(--gold-bright);
  background: rgba(7, 17, 27, 0.34);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.52);
}

.title {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.58);
}

.title::before {
  content: "";
  position: absolute;
  top: 47%;
  width: min(86%, 330px);
  height: 58px;
  border: 1px solid rgba(255, 224, 163, 0.2);
  transform: translateY(-50%) skewY(-2deg);
  pointer-events: none;
}

.title__top {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 8px;
  color: var(--white);
  font-size: clamp(2.8rem, 15.2vw, 4.1rem);
  font-weight: 950;
  letter-spacing: 0.015em;
  line-height: 0.86;
}

.title__top::after {
  content: "Yaza";
  position: absolute;
  inset: 2px auto auto 50%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 180, 106, 0.38);
  transform: translateX(-50%) translateY(7px);
}

.title__divider {
  width: min(190px, 56vw);
  height: 10px;
  background:
    radial-gradient(circle, var(--gold-bright) 0 3px, transparent 4px) center / 10px 10px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 224, 163, 0.8), transparent) center / 100% 1px no-repeat;
}

.title__script {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: -4px;
  padding: 0 10px 4px;
  color: transparent;
  background: linear-gradient(105deg, #fff3cf 6%, var(--gold-bright) 34%, var(--gold) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 15.4vw, 4.15rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

.title__script::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 163, 0.82), transparent);
}

.subtitle {
  max-width: 31ch;
  margin: 0 auto;
  padding: 11px 14px 0;
  border-top: 1px solid rgba(255, 224, 163, 0.22);
  color: var(--mist);
  font-size: clamp(0.96rem, 3.75vw, 1.05rem);
  font-weight: 560;
  line-height: 1.48;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.5);
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail {
  min-height: 88px;
  padding: 15px 13px;
  border: 1px solid rgba(216, 180, 106, 0.38);
  background: rgba(7, 20, 36, 0.62);
  backdrop-filter: blur(10px);
}

.detail--wide {
  grid-column: 1 / -1;
}

.detail__label,
.detail__value {
  display: block;
}

.detail__label {
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail__value {
  color: var(--white);
  font-size: clamp(1.04rem, 4.2vw, 1.14rem);
  font-weight: 650;
  line-height: 1.28;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: env(safe-area-inset-bottom);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255, 224, 163, 0.72);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #091522;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.footer p {
  margin: 0;
  color: rgba(233, 242, 248, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

@media (min-width: 520px) {
  body {
    padding: 0;
  }

  .invite {
    min-height: 100svh;
  }

  .invite__content {
    min-height: 100svh;
  }
}

@media (max-height: 720px) {
  .invite__content {
    gap: 14px;
    padding-top: 26px;
    padding-bottom: 22px;
  }

  .headline {
    gap: 12px;
    padding: 1svh 0;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .detail {
    min-height: 72px;
    padding: 11px;
  }
}
