@import url("https://fonts.bunny.net/css?family=syne:400,500,600,700,800&display=swap");

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

:root {
  --red: #e63946;
  --yellow: #ffbe0b;
  --blue: #1d3557;
  --black: #0a0a0a;
  --white: #f8f7f2;
  --orange: #ff6b35;
  --green: #2d6a4f;
  --cyan: #0096c7;
  --pink: #ff006e;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ═══════ GEOMETRIC SHAPES ═══════ */
.shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.circle-1 {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--red);
  top: -100px;
  left: -80px;
  opacity: 0.85;
  animation: drift1 22s ease-in-out infinite;
}

.circle-2 {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--blue);
  bottom: 8%;
  right: 6%;
  animation: drift2 26s ease-in-out infinite;
}

.circle-3 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--pink);
  top: 18%;
  right: 30%;
  opacity: 0.7;
  animation: pulse-dot 3s ease-in-out infinite;
}

.rect-1 {
  width: 220px;
  height: 70px;
  background: var(--yellow);
  top: 10%;
  right: -40px;
  animation: drift3 20s ease-in-out infinite;
}

.rect-2 {
  width: 100px;
  height: 100px;
  background: var(--blue);
  bottom: 18%;
  left: -25px;
  animation: drift1 18s ease-in-out infinite reverse;
}

.rect-3 {
  width: 60px;
  height: 180px;
  background: var(--orange);
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  opacity: 0.6;
  animation: drift2 24s ease-in-out infinite;
}

.triangle-1 {
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 156px solid var(--orange);
  top: -30px;
  right: 18%;
  transform: rotate(12deg);
  animation: drift2 21s ease-in-out infinite;
}

.triangle-2 {
  width: 0;
  height: 0;
  border-left: 55px solid transparent;
  border-right: 55px solid transparent;
  border-bottom: 95px solid var(--green);
  bottom: 5%;
  right: -20px;
  transform: rotate(-8deg);
  animation: drift3 19s ease-in-out infinite;
}

.line-1 {
  width: 380px;
  height: 5px;
  background: var(--black);
  top: 28%;
  left: -80px;
  transform: rotate(-28deg);
  animation: drift2 30s ease-in-out infinite;
}

.line-2 {
  width: 200px;
  height: 5px;
  background: var(--red);
  bottom: 22%;
  right: -40px;
  transform: rotate(42deg);
  animation: drift1 28s ease-in-out infinite;
}

.line-3 {
  width: 140px;
  height: 3px;
  background: var(--cyan);
  top: 65%;
  left: 3%;
  transform: rotate(-15deg);
  opacity: 0.7;
  animation: drift3 25s ease-in-out infinite;
}

.dot-1 {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  top: 38%;
  left: 9%;
  animation: pulse-dot 3.5s ease-in-out infinite;
}

.dot-2 {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  bottom: 35%;
  right: 22%;
  animation: pulse-dot 4s ease-in-out infinite 1s;
}

.half-circle {
  width: 180px;
  height: 90px;
  border-radius: 180px 180px 0 0;
  background: var(--cyan);
  bottom: -45px;
  left: 18%;
  opacity: 0.75;
  animation: drift3 22s ease-in-out infinite;
}

.cross-1 {
  top: 75%;
  left: 8%;
  animation: drift1 20s ease-in-out infinite;
}

.cross-1::before,
.cross-1::after {
  content: "";
  position: absolute;
  background: var(--green);
}

.cross-1::before {
  width: 4px;
  height: 30px;
  left: 13px;
  top: 0;
}

.cross-1::after {
  width: 30px;
  height: 4px;
  left: 0;
  top: 13px;
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(12px, -18px) rotate(2deg);
  }

  66% {
    transform: translate(-10px, 12px) rotate(-1.5deg);
  }
}

@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-14px, 10px) rotate(-2deg);
  }

  66% {
    transform: translate(10px, -14px) rotate(1deg);
  }
}

@keyframes drift3 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(16px, -12px);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.6);
  }
}

/* ═══════ CORNER BRACKETS ═══════ */
.bracket {
  position: absolute;
  z-index: 5;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

.bracket-tl {
  top: 10%;
  left: 10%;
  border-top: 4px solid var(--black);
  border-left: 4px solid var(--black);
}

.bracket-br {
  bottom: 10%;
  right: 10%;
  border-bottom: 4px solid var(--black);
  border-right: 4px solid var(--black);
}

/* ═══════ CARD ═══════ */
.card {
  position: relative;
  z-index: 10;
  background: var(--white);
  border: 3px solid var(--black);
  max-width: 500px;
  width: 92%;
  animation: card-enter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px) rotate(-1deg);
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* ── Header ── */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 3px solid var(--black);
  background: var(--black);
  color: var(--white);
}

.geo-shapes {
  display: flex;
  gap: 8px;
  align-items: center;
}

.geo-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.geo-square {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  flex-shrink: 0;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid var(--cyan);
  flex-shrink: 0;
}

.card-header-label {
  font-family: "Syne", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.card-header-number {
  margin-left: auto;
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
}

/* ── Body ── */
.card-body {
  padding: 36px 24px 28px;
  position: relative;
}

/* Large background number */
.bg-number {
  position: absolute;
  top: -10px;
  right: 8px;
  font-family: "Syne", sans-serif;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10, 10, 10, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.card-body h1 {
  font-family: "Syne", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.accent-red {
  color: var(--red);
}

.accent-blue {
  color: var(--blue);
}

.accent-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--black);
}

.subtitle {
  font-family: "Syne", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Divider */
.divider {
  height: 4px;
  background: var(--black);
  margin: 22px 0;
  position: relative;
  overflow: hidden;
}

.divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: var(--red);
  animation: divider-pulse 4s ease-in-out infinite;
}

@keyframes divider-pulse {
  0%,
  100% {
    width: 25%;
  }

  50% {
    width: 40%;
  }
}

.divider::before {
  content: "";
  position: absolute;
  left: 40%;
  top: 0;
  height: 100%;
  width: 12%;
  background: var(--yellow);
}

.card-body p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #444;
  font-weight: 400;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

/* ── Buttons ── */
.buttons {
  display: flex;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 0;
  flex: 1;
  font-family: "Syne", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn span,
.btn svg {
  position: relative;
  z-index: 1;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

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

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-left: none;
}

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

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-left: none;
}

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

/* ── Footer ── */
.card-footer {
  padding: 14px 24px;
  border-top: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
}

.footer-left {
  font-family: "Syne", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
  }

  50% {
    opacity: 0.3;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0);
  }
}

.status-label {
  font-family: "Syne", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 600px) {
  .circle-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -50px;
  }

  .rect-1 {
    width: 130px;
    height: 45px;
  }

  .rect-3 {
    display: none;
  }

  .triangle-1 {
    border-left-width: 55px;
    border-right-width: 55px;
    border-bottom-width: 95px;
    right: 8%;
  }

  .line-1 {
    width: 180px;
  }

  .line-2 {
    width: 100px;
  }

  .half-circle {
    width: 120px;
    height: 60px;
  }

  .bracket {
    display: none;
  }

  .card-body h1 {
    font-size: 23px;
  }

  .bg-number {
    font-size: 80px;
  }

  .card-body {
    padding: 28px 18px 22px;
  }

  .card-header,
  .card-footer {
    padding: 14px 18px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn-yellow,
  .btn-blue {
    border-left: 3px solid var(--black);
    border-top: none;
  }
}
