/* ============================================================
   DRINKAM — Coming Soon Landing Page
   Tropical / premium / Gen-Z beverage brand
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Tropical palette */
  --hot-pink: #ff2d95;
  --coral-orange: #ff7a1a;
  --mango-yellow: #ffd100;
  --turquoise: #00c9c3;
  --aqua-blue: #22b8f0;
  --deep-ocean: #0a6ebd;

  /* Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: 22px;

  /* Text */
  --text-dark: #1a1330;
  --text-light: #ffffff;

  /* Radii / shadow */
  --radius-card: 35px;
  --radius-pill: 999px;
  --shadow-soft: 0 25px 60px rgba(20, 10, 50, 0.25);

  /* Type */
  --font-main: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

  /* Motion */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--text-light);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* ---------- 3. Animated tropical background ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(
    120deg,
    var(--hot-pink),
    var(--coral-orange),
    var(--mango-yellow),
    var(--turquoise),
    var(--aqua-blue),
    var(--deep-ocean)
  );
  background-size: 400% 400%;
  animation: gradientFlow 22s ease-in-out infinite;
  will-change: background-position;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-lights {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.light--pink {
  width: 45vw;
  height: 45vw;
  background: var(--hot-pink);
  top: -10%;
  left: -10%;
  animation: floatLight 16s var(--ease-smooth) infinite;
}

.light--yellow {
  width: 38vw;
  height: 38vw;
  background: var(--mango-yellow);
  top: 5%;
  right: -12%;
  animation: floatLight 20s var(--ease-smooth) infinite reverse;
}

.light--aqua {
  width: 42vw;
  height: 42vw;
  background: var(--turquoise);
  bottom: -15%;
  left: 0%;
  animation: floatLight 18s var(--ease-smooth) infinite;
}

.light--blue {
  width: 36vw;
  height: 36vw;
  background: var(--deep-ocean);
  bottom: -10%;
  right: -8%;
  animation: floatLight 24s var(--ease-smooth) infinite reverse;
}

@keyframes floatLight {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-5%, -3%) scale(0.95); }
}

/* ---------- 4. Floating bubbles ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -10%;
  left: var(--x, 50%);
  width: var(--size, 30px);
  height: var(--size, 30px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: riseBubble var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

@keyframes riseBubble {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  50% { transform: translateY(-55vh) translateX(15px); }
  90% { opacity: 0.35; }
  100% {
    transform: translateY(-115vh) translateX(-10px);
    opacity: 0;
  }
}

/* ---------- 5. Tropical leaf decorations ---------- */
.leaf {
  position: fixed;
  width: clamp(90px, 16vw, 220px);
  height: clamp(90px, 16vw, 220px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  will-change: transform;
}

.leaf svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.leaf--top-left {
  top: -2%;
  left: -2%;
  animation: swayLeaf 7s ease-in-out infinite;
}

.leaf--top-right {
  top: -2%;
  right: -2%;
  animation: swayLeaf 8s ease-in-out infinite reverse;
}

.leaf--bottom-left {
  bottom: -2%;
  left: -2%;
  animation: swayLeaf 9s ease-in-out infinite reverse;
}

.leaf--bottom-right {
  bottom: -2%;
  right: -2%;
  animation: swayLeaf 7.5s ease-in-out infinite;
}

@keyframes swayLeaf {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}

/* ---------- 6. Page / layout ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ---------- 7. Glassmorphism card ---------- */
.glass-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 40px 28px 36px;
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* ---------- 8. Brand ---------- */
.brand__logo {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.brand__tagline {
  margin-top: 8px;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  color: var(--text-light);
  opacity: 0.95;
}

/* ---------- 9. Can stage (hero product shot) ---------- */
.can-stage {
  position: relative;
  width: min(70%, 260px);
  aspect-ratio: 9 / 14;
  margin: 4px auto;
  perspective: 1000px;
}

.can-shadow {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 70%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(10, 5, 30, 0.35), transparent 70%);
  transform: translateX(-50%);
  filter: blur(4px);
  border-radius: 50%;
  will-change: transform, opacity;
}

.can-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 35px rgba(10, 5, 30, 0.35));
  transform: translateY(0) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- 10. Coming soon copy ---------- */
.coming-soon__title {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 800;
  color: var(--text-light);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.coming-soon__subtitle {
  margin-top: 4px;
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.coming-soon__desc {
  margin-top: 12px;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42ch;
  margin-inline: auto;
}

/* ---------- 11. Progress bar ---------- */
.progress {
  width: 100%;
  max-width: 340px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 45%;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--hot-pink),
    var(--coral-orange),
    var(--mango-yellow),
    var(--turquoise)
  );
  background-size: 300% 100%;
  animation: progressMove 2.6s ease-in-out infinite, progressGradient 4s linear infinite;
  will-change: transform, background-position;
}

@keyframes progressMove {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(60%); }
  100% { transform: translateX(220%); }
}

@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ---------- 12. Contact ---------- */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}

.contact__item:hover,
.contact__item:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.4);
}

.contact__icon {
  font-size: 1.1rem;
}

/* ---------- 13. Social icons ---------- */
.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.social-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--text-light);
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-4px) scale(1.08);
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- 14. Responsive breakpoints ---------- */
@media (max-width: 420px) {
  .glass-card {
    padding: 32px 18px 28px;
    border-radius: 28px;
    gap: 18px;
  }

  .can-stage {
    width: 62%;
  }

  .leaf {
    width: 90px;
    height: 90px;
  }
}

@media (min-width: 421px) and (max-width: 600px) {
  .can-stage {
    width: 65%;
  }
}

@media (min-width: 768px) {
  .glass-card {
    max-width: 620px;
    padding: 56px 56px 48px;
  }

  .can-stage {
    width: 240px;
  }

  .leaf {
    width: clamp(140px, 14vw, 240px);
    height: clamp(140px, 14vw, 240px);
  }
}

@media (min-width: 1024px) {
  .glass-card {
    max-width: 680px;
  }

  .brand__logo {
    font-size: 4rem;
  }
}

/* Landscape / short viewports: keep can from overflowing */
@media (max-height: 700px) and (orientation: landscape) {
  .can-stage {
    width: 34vh;
  }
}
