/* ----------------------------------------------------
   ANTL - CSS Design System & Aesthetics (Refactored)
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cabin:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --beer-yellow: #e9cc30;
  --dusty-pink: #de959b; /* Exact dusty rose color from Figma/Mockup */
  --text-black: #000000;
  --tilt-angle: -18deg; /* Beautifully parallel angle that reduces top overlap */
  --bg-image: url('../images/shutterstock_1384887293 1.jpg'); /* Shared background texture defined once */
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0c0c0c;
  font-family: 'Anton', sans-serif;
  overflow: hidden;
}

/* Main Container - Mobile aspect ratio wrapper */
.main-container {
  width: 100%;
  max-width: 420px; /* Bounded perfectly for 375px - 420px mobile range */
  height: 100dvh; /* Dynamic viewport height to guarantee fitting in 1 screen height */
  background-color: var(--beer-yellow);
  background-image: var(--bg-image);
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Container */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  padding: 0 24px 2dvh 24px; /* Proportional vertical padding */
}

.logo-img {
  width: clamp(120px, 38vw, 160px); /* Prominent 160px max width, scaling down proportionately on smaller devices */
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0; /* Perfectly vertically centered */
  z-index: 5;
}

/* Tilted Header */
.tilted-header {
  position: absolute;
  top: clamp(-42px, -5dvh, -32px); /* Proportional top offset above pink section */
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 8;
  transform: rotate(var(--tilt-angle));
  transform-origin: center;
}

.tilted-header span {
  font-family: 'Anton', sans-serif;
  font-size: clamp(20px, 6.8vw, 28px); /* Fluid size increased by 4px to be more prominent */
  color: var(--text-black);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background-color: transparent;
  padding: 0px 8px;
  margin-top: -4px;
  display: inline-block;
  white-space: nowrap;
}

/* Pink Container */
.pink-container {
  position: relative;
  width: 120%;
  left: -10%;
  min-height: clamp(200px, 44dvh, 400px); /* Proportional height that scales down on short viewports */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3dvh 12%; /* Proportional vertical padding */
  box-sizing: border-box;
}

/* Pink Background Pseudo-element (handles the tilt and organic grain texture, 100% color-correct and texture-blended) */
.pink-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--dusty-pink); /* Solid, pure, color-correct Figma pink (#de959b) */
  background-image: var(--bg-image); /* Reuses the shared background image texture */
  background-blend-mode: multiply; /* Blends the image texture with the solid pink color */
  background-size: cover;
  background-position: center;
  transform: skewY(var(--tilt-angle));
  z-index: 1;
}

/* Pink Content (completely horizontal text) */
.pink-section-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80%;
  text-align: center;
  margin: 0 auto;
}

#prompt-text {
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 4dvh, 36px); /* Highly responsive height-based font size to prevent overlaps */
  line-height: 1.4;
  color: var(--text-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  padding-block: 3dvh; /* 1dvh */
}

/* Footer & Actions */
.footer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 10;
  padding: 1.5dvh 24px; /* Proportional footer padding */
}

/* Action Section */
.action-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-end;
  /* margin-bottom: 5dvh; */
  /* transform: translateY(-5dvh); */
}

.next-label {
  font-family: 'Anton', sans-serif;
  font-size: clamp(12px, 2dvh, 16px);
  line-height: 1.2;
  text-align: center;
  color: var(--text-black);
  margin-bottom: 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover {
  transform: scale(1.05);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn img {
  width: clamp(64px, 22vw, 94px); /* Prominent 96px max size, scaling down fluidly on mobile viewports */
  height: auto;
  display: block;
}

/* Footer text */
.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 0.5dvh;
}

.warning {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-black);
}

.link {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-black);
  text-decoration: none;
  border-bottom: 1px solid var(--text-black);
  transition: opacity 0.2s ease;
}

.link:hover {
  opacity: 0.7;
}
