:root {
  --coffee: #9f5f22;
  --gold: #f6bf16;
  --green: #349000;
  --cream: #fff9f2;
  --text: #4d3727;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

/* Background */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(246, 191, 22, 0.2),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(52, 144, 0, 0.15),
      transparent 35%
    ),
    linear-gradient(135deg, #fffdf8, #fff5e8, #fff9f2);
  position: relative;
  padding: 20px;
}

/* Blur decoration */
body::before,
body::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

body::before {
  width: 320px;
  height: 320px;
  top: -120px;
  left: -120px;
  background: #f6bf1630;
}

body::after {
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -120px;
  background: #34900020;
}

/* Beans */
.bean {
  position: absolute;
  opacity: 0.12;
  font-size: 34px;
  animation: float 10s ease-in-out infinite;
}

.bean:nth-child(1) {
  top: 8%;
  left: 7%;
}

.bean:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.bean:nth-child(3) {
  bottom: 12%;
  left: 10%;
  animation-delay: 4s;
}

.bean:nth-child(4) {
  bottom: 15%;
  right: 8%;
  animation-delay: 6s;
}

@keyframes float {
  50% {
    transform: translateY(-20px) rotate(15deg);
  }
}

/* Main container */
.container {
  width: min(1200px, 95%);
  height: min(760px, 85vh);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 2;
}

/* Left */
.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
  padding: 3rem;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  width: clamp(220px, 28vw, 340px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.12));
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.05);
}

h1 {
  color: var(--coffee);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 420px;
}

.subtitle {
  color: #6b6b6b;
  max-width: 430px;
  line-height: 1.8;
}

.line {
  width: 120px;
  height: 6px;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--gold), var(--coffee), var(--green));
}

/* Right */
.right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.card {
  width: 100%;
  max-width: 360px;
  background: white;
  border-radius: 30px;
  border-top: 10px solid var(--gold);
  padding: 2rem;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.04);
}

.card h3 {
  color: var(--coffee);
  margin: 15px 0;
}

.card p {
  min-height: 110px;
  color: #666;
  line-height: 1.8;
}

button {
  width: 100%;
  border: none;
  cursor: pointer;
  color: white;
  padding: 15px;
  border-radius: 50px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--coffee), #884f1e);
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(135deg, var(--green), #2e7d00);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  position: absolute;
  bottom: 18px;
  color: #927d6c;
  font-size: 0.85rem;
}

.footer a {
  text-decoration: none;
  color: #884f1e;
  font-weight: 600;
}

/* Tablet */
@media (max-width: 900px) {
  .container {
    width: 95%;
    height: auto;
    max-height: 90vh;
    grid-template-columns: 1fr;
  }

  .left {
    padding: 2rem;
  }

  .right {
    padding: 0 2rem 2rem;
  }

  .footer {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .container {
    width: 100%;
    height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    border-radius: 26px;
  }

  .left {
    flex: 1;
    justify-content: center;
    padding: 1rem;
    gap: 0.8rem;
  }

  .right {
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .logo img {
    width: 150px;
  }

  h1 {
    font-size: 1.35rem;
  }

  .subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 300px;
  }

  .line {
    width: 80px;
    height: 4px;
  }

  .card {
    max-width: 320px;
    padding: 1.2rem;
    border-radius: 22px;
  }

  .card div {
    font-size: 50px !important;
  }

  .card p {
    min-height: 60px;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  button {
    padding: 12px;
    font-size: 0.85rem;
  }

  .bean {
    display: none;
  }
}

/* Spinner */

.spinner {
  width: 35px;
  height: 35px;
  border: 4px solid #f6bf1620;
  border-top: 4px solid var(--gold);
  border-right: 4px solid var(--coffee);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
