@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Inter:wght@400;600;700;800&display=swap");

:root{
  --gold:#d4af37;
  --gold2:#f1cf63;
  --pink:#ff00c8;
  --cyan:#00e6d0;
  --radius:22px;
  --cardMax:640px;
}

*{ box-sizing:border-box; }

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

body{
  font-family:Inter, Arial, sans-serif;
  background:#050505;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:white;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 45%, rgba(212,175,55,.24), transparent 45%),
    radial-gradient(circle at 53% 45%, rgba(255,0,200,.06), transparent 34%),
    linear-gradient(180deg,#151515,#020202);
}

.stage{
  width:100%;
  height:100svh;
  display:grid;
  place-items:center;
  perspective:1200px;
  position:relative;
  padding:24px;
}

.card3d{
  width:min(92vw,var(--cardMax));
  aspect-ratio:3 / 2;
  position:relative;
  border-radius:var(--radius);
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  cursor:pointer;
  user-select:none;
  touch-action:none;

  --rx:0deg;
  --ry:0deg;
  --fy:0deg;

  transform:rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--fy)));
  transition:transform .55s cubic-bezier(.2,.8,.2,1);
}

.card3d.flipped{ --fy:180deg; }

.face{
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius:var(--radius);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  border:2px solid rgba(212,175,55,.9);
  box-shadow:
    0 30px 80px rgba(0,0,0,.65),
    0 0 45px rgba(212,175,55,.18);
}

.front{
  transform:translateZ(2px);
  background:#111;
}

.frontImage{
  width:100%;
  height:100%;
  background:url("front-card.png") center/cover no-repeat;
}

.back{
  transform:rotateY(180deg) translateZ(2px);
  background:
    radial-gradient(circle at 78% 28%, rgba(255,0,200,.15), transparent 28%),
    radial-gradient(circle at 20% 86%, rgba(0,230,208,.12), transparent 34%),
    linear-gradient(135deg,#030303,#111,#030303);
}

.backInner{
  position:relative;
  width:100%;
  height:100%;
  padding:22px 30px 18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}

.back h1{
  margin:0;
  font-size:clamp(22px,3.4vw,34px);
  font-weight:800;
  line-height:1;
  letter-spacing:.4px;
  background:linear-gradient(#ffe89a,#d4af37,#b8860b);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.subtitle{
  margin:4px 0 0;
  font-size:clamp(13px,1.8vw,18px);
  color:rgba(255,255,255,.95);
}

.miniBrand{
  font-family:"Great Vibes", cursive;
  color:rgba(212,175,55,.92);
  font-size:clamp(19px,2.5vw,28px);
  line-height:1;
  margin:2px 0 12px;
  text-shadow:0 0 12px rgba(212,175,55,.25);
}

.goldLine{ display:none; }

.infoGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  text-align:left;
  margin-bottom:12px;
}

.infoGrid > div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:82px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(212,175,55,.16);
  backdrop-filter:blur(10px);
}

.infoGrid h2{
  margin:0 0 5px;
  color:var(--gold2);
  font-size:clamp(13px,1.7vw,16px);
  text-transform:uppercase;
  letter-spacing:.6px;
}

.infoGrid p{
  margin:3px 0;
  color:rgba(255,255,255,.92);
  font-size:clamp(11.5px,1.55vw,15px);
  line-height:1.22;
}

.infoGrid p span{
  display:inline-block;
  width:19px;
}

.finePrint{
  font-size:10.5px !important;
  opacity:.65;
  font-style:italic;
}

.infoGrid a,
.infoGrid a:visited,
.infoGrid a:hover,
.infoGrid a:active{
  color:rgba(255,255,255,.92);
  text-decoration:none;
}

.servicesBox{
  border:1.5px solid rgba(212,175,55,.75);
  border-radius:12px;
  padding:10px 12px;
  display:block;
  color:#fff;
  background:
    linear-gradient(90deg, rgba(255,0,200,.08), transparent 18%, transparent 82%, rgba(0,230,208,.08)),
    rgba(0,0,0,.34);
  box-shadow:
    inset 0 0 18px rgba(212,175,55,.08),
    0 0 18px rgba(212,175,55,.08);
}

.servicesLabel{
  display:inline-block;
  padding:3px 14px;
  margin-bottom:6px;
  border-radius:999px;
  background:rgba(212,175,55,.16);
  border:1px solid rgba(212,175,55,.45);
  color:var(--gold2);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.8px;
}

.servicesList{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  font-size:clamp(11.5px,1.55vw,14.5px);
}

.tagline{
  max-width:88%;
  margin:8px auto 6px;
  color:rgba(241,207,99,.88);
  font-size:10.5px;
  font-weight:500;
  font-style:italic;
  line-height:1.2;
  text-align:center;
}

.saveBtn{
  width:min(300px,86%);
  margin:4px auto 0;
  padding:7px 14px;
  border-radius:12px;
  border:1px solid rgba(212,175,55,.8);
  background:linear-gradient(#1d1d1d,#050505);
  color:var(--gold2);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.8px;
  text-transform:uppercase;
  cursor:pointer;
}

.saveBtn:hover{ background:#000; }

.corner{
  position:absolute;
  width:58px;
  height:34px;
  pointer-events:none;
  opacity:.45;
}

.cornerPink{
  top:16px;
  left:16px;
  border-top:4px solid var(--pink);
  border-left:4px solid var(--pink);
  filter:drop-shadow(0 0 6px rgba(255,0,200,.55));
}

.cornerCyan{
  right:16px;
  bottom:16px;
  border-right:4px solid var(--cyan);
  border-bottom:4px solid var(--cyan);
  filter:drop-shadow(0 0 6px rgba(0,230,208,.55));
}

.hint{
  position:absolute;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  color:rgba(255,255,255,.65);
  font-family:Georgia, serif;
  font-size:13px;
  text-align:center;
  pointer-events:none;
  transition:opacity 220ms ease;
}

.hint.isHidden{ opacity:0; }

/* MOBILE */
@media (max-width:520px){
  .stage{
    padding:10px;
    place-items:center;
  }

  .card3d{
    width:90vw;
    aspect-ratio:3 / 2;
  }

  .backInner{
      padding:8px 13px 10px;
      justify-content:flex-start;
  }

  .back h1{
      font-size:clamp(16px,5vw,22px);
      margin-bottom:1px;
  }

  .subtitle{
      margin:0 0 4px;
  }

  .miniBrand{
    display:none;
  }

  .infoGrid{
    gap:7px;
    margin-bottom:7px;
  }

  .infoGrid > div{
    min-height:58px;
    padding:6px 7px;
    border-radius:12px;
  }

  .infoGrid h2{
    font-size:9.5px;
    margin-bottom:2px;
    letter-spacing:.5px;
  }

  .infoGrid p{
    font-size:8.8px;
    line-height:1.08;
    margin:2px 0;
  }

  .infoGrid p span{
    width:15px;
  }

  .finePrint{
    font-size:7.8px !important;
    line-height:1.05;
  }

  .servicesBox{
    padding:6px 7px;
    border-radius:10px;
  }

  .servicesLabel{
    font-size:9px;
    padding:2px 9px;
    margin-bottom:3px;
  }

  .servicesList{
    font-size:8.5px;
    gap:3px;
    line-height:1.5;
  }

  .tagline{
    font-size:7.2px;
    line-height:1.05;
    margin:3px auto 2px;
    max-width:92%;
  }

  .saveBtn{
    width:78%;
    margin-top:2px;
    padding:4px 8px;
    font-size:8px;
    line-height:1;
    border-radius:10px;
  }

  .corner{
    width:38px;
    height:22px;
  }

  .cornerPink{
    top:14px;
    left:14px;
  }

  .cornerCyan{
    right:10px;
    bottom:8px;
  }

  .hint{
    bottom:18px;
    font-size:12px;
  }
}

/* Short browser height phones like Galaxy S23 with visible address bar */
@media (max-width:520px) and (max-height:760px){
  .stage{
    padding:8px;
  }

  .card3d{
    width:86vw;
  }

  .backInner{
    padding:10px 12px;
  }

  .back h1{
    font-size:18px;
  }

  .subtitle{
    font-size:11px;
    margin-bottom:5px;
  }

  .infoGrid > div{
    min-height:52px;
  }

  .servicesList{
    font-size:8px;
  }

  .tagline{
    font-size:6.8px;
  }

  .saveBtn{
    font-size:7.5px;
    padding:4px 8px;
  }
}

@media (max-width:380px){
  .card3d{
    width:88vw;
  }

  .backInner{
    padding:10px 12px;
  }
}