:root{
  --cream:#FBF3E7;
  --cream-2:#F5E8D6;
  --terracotta:#C1622D;
  --terracotta-dark:#A34E22;
  --terracotta-light:#E8935C;
  --brown:#4A3428;
  --gold:#D9A566;
  --gold-light:#F0C892;
  --sage:#8A9A5B;
  --white:#FFFDF9;
}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  font-family:'Poppins', sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(217,165,102,.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(138,154,91,.28) 0%, transparent 45%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 55%, #EFDDC2 100%);
  background-size:200% 200%, 200% 200%, 100% 100%;
  animation:drift 18s ease-in-out infinite;
  color:var(--brown);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  position:relative;
}
@keyframes drift{
  0%{background-position:0% 0%, 100% 100%, 0 0;}
  50%{background-position:30% 20%, 70% 80%, 0 0;}
  100%{background-position:0% 0%, 100% 100%, 0 0;}
}

/* floating decorative shapes */
.float{position:absolute;border-radius:50%;z-index:0;pointer-events:none;}
.float1{width:26px;height:26px;background:var(--terracotta-light);top:12%;left:10%;opacity:.5;animation:bob 7s ease-in-out infinite;}
.float2{width:16px;height:16px;background:var(--sage);top:22%;right:14%;opacity:.55;animation:bob 5.5s ease-in-out infinite .8s;}
.float3{width:12px;height:12px;background:var(--gold);bottom:18%;left:16%;opacity:.6;animation:bob 6.5s ease-in-out infinite 1.4s;}
.float4{width:20px;height:20px;background:var(--terracotta);bottom:12%;right:10%;opacity:.4;animation:bob 8s ease-in-out infinite .4s;}
@keyframes bob{
  0%,100%{transform:translateY(0) scale(1);}
  50%{transform:translateY(-18px) scale(1.08);}
}

.blob{position:absolute;border-radius:50%;opacity:.3;filter:blur(6px);z-index:0;}
.blob1{width:380px;height:380px;background:var(--gold);top:-160px;left:-140px;}
.blob2{width:300px;height:300px;background:var(--sage);bottom:-140px;right:-110px;opacity:.22;}

/* product photos, floating either side of the card */
.product-pic{
  position:absolute;
  width:150px;
  height:150px;
  padding:8px;
  background:var(--white);
  border-radius:18px;
  box-shadow:0 16px 32px rgba(74,52,40,0.22);
  z-index:2;
  animation:floatSide 6s ease-in-out infinite;
}
.product-pic img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.product-pic .tag{
  position:absolute;
  bottom:-10px;
  left:50%;
  transform:translateX(-50%);
  background:var(--terracotta);
  color:var(--white);
  font-size:.62rem;
  font-weight:600;
  letter-spacing:.5px;
  padding:3px 10px;
  border-radius:20px;
  white-space:nowrap;
  box-shadow:0 4px 10px rgba(74,52,40,.25);
}

.pic-left-top{top:5%; left:3%; animation-delay:0s;}
.pic-left-mid{top:38%; left:0.5%; width:130px; height:130px; animation-delay:.9s;}
.pic-left-bottom{top:72%; left:4%; width:120px; height:120px; animation-delay:1.6s;}
.pic-right-top{top:14%; right:3%; animation-delay:.5s;}
.pic-right-bottom{top:58%; right:1%; width:130px; height:130px; animation-delay:1.2s;}

@keyframes floatSide{
  0%,100%{transform:translateY(0) rotate(var(--r, 0deg));}
  50%{transform:translateY(-16px) rotate(var(--r, 0deg));}
}
.pic-left-top{--r:-7deg;}
.pic-left-mid{--r:5deg;}
.pic-left-bottom{--r:-4deg;}
.pic-right-top{--r:7deg;}
.pic-right-bottom{--r:-6deg;}

@media (max-width:1300px){
  .product-pic{display:none;}
}

.wrap{
  position:relative;
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:50px 20px;
  z-index:1;
}

.card{
  background:rgba(255,253,249,0.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.6);
  border-radius:32px;
  padding:56px 48px 44px;
  max-width:560px;
  width:100%;
  box-shadow:0 20px 60px rgba(74,52,40,0.15);
  animation:riseIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes riseIn{
  from{opacity:0; transform:translateY(24px);}
  to{opacity:1; transform:translateY(0);}
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--white);
  color:var(--terracotta-dark);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  padding:7px 16px;
  border-radius:50px;
  box-shadow:0 4px 14px rgba(74,52,40,0.1);
  margin-bottom:22px;
}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--sage);animation:pulse 1.8s ease-in-out infinite;}
@keyframes pulse{
  0%,100%{opacity:1; transform:scale(1);}
  50%{opacity:.4; transform:scale(1.4);}
}

.logo{
  font-family:'Playfair Display', serif;
  font-size:2.3rem;
  font-weight:800;
  letter-spacing:.5px;
  margin-bottom:6px;
  background:linear-gradient(90deg, var(--terracotta-dark) 0%, var(--gold) 22%, var(--terracotta) 45%, var(--gold) 68%, var(--terracotta-dark) 100%);
  background-size:250% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  animation:shimmer 5s linear infinite;
}
@keyframes shimmer{
  0%{background-position:0% center;}
  100%{background-position:250% center;}
}

.tagline{
  font-size:.82rem;
  color:#8a6f5c;
  letter-spacing:2.5px;
  text-transform:uppercase;
  margin-bottom:18px;
  font-weight:500;
}

.illustration{
  width:210px;
  height:170px;
  margin:0 auto 26px;
  display:block;
  filter:drop-shadow(0 14px 18px rgba(74,52,40,.18));
}

/* plant: gentle sway + pop-in */
.illustration .sway{
  transform-origin:80px 150px;
  animation:popIn .7s cubic-bezier(.34,1.56,.64,1) .1s both, sway 4s ease-in-out 1s infinite;
}
@keyframes sway{
  0%,100%{transform:rotate(-2deg);}
  50%{transform:rotate(2deg);}
}
@keyframes popIn{
  0%{opacity:0; transform:translateY(14px) scale(.7);}
  100%{opacity:1; transform:translateY(0) scale(1);}
}

/* lamp: pop-in + gentle glow pulse */
.illustration .lamp-group{
  animation:popIn .7s cubic-bezier(.34,1.56,.64,1) .3s both;
}
.illustration .glow{
  animation:glowPulse 2.6s ease-in-out infinite;
  transform-origin:35px 82px;
}
@keyframes glowPulse{
  0%,100%{opacity:.25; transform:scale(1);}
  50%{opacity:.65; transform:scale(1.25);}
}
.illustration .rays{animation:spin 30s linear infinite; transform-origin:35px 78px;}
@keyframes spin{from{transform:rotate(0deg);} to{transform:rotate(360deg);}}

/* mug: pop-in + gentle rock, plus rising steam */
.illustration .mug-group{
  animation:popIn .7s cubic-bezier(.34,1.56,.64,1) .5s both, rock 3.4s ease-in-out 1.2s infinite;
  transform-origin:134px 150px;
}
@keyframes rock{
  0%,100%{transform:rotate(0deg);}
  50%{transform:rotate(2deg);}
}
.illustration .steam path{
  opacity:0;
  animation:steamRise 2.8s ease-in infinite;
}
.illustration .steam path:nth-child(2){animation-delay:.7s;}
.illustration .steam path:nth-child(3){animation-delay:1.4s;}
@keyframes steamRise{
  0%{opacity:0; transform:translateY(0) scaleX(1);}
  20%{opacity:.55;}
  80%{opacity:.25;}
  100%{opacity:0; transform:translateY(-16px) scaleX(1.4);}
}

/* books: pop-in + tiny bounce */
.illustration .books{
  animation:popIn .7s cubic-bezier(.34,1.56,.64,1) .65s both, floatY 3.8s ease-in-out 1.4s infinite;
}
@keyframes floatY{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-4px);}
}

h1{
  font-family:'Playfair Display', serif;
  font-size:2.5rem;
  line-height:1.25;
  color:var(--brown);
  margin-bottom:14px;
  font-weight:700;
}
h1 em{
  font-style:italic;
  color:var(--terracotta);
}

p.sub{
  max-width:440px;
  margin-left:auto;
  margin-right:auto;
  font-size:1rem;
  font-weight:300;
  color:#6d5847;
  margin-bottom:32px;
  line-height:1.7;
}

form{
  display:flex;
  width:100%;
  max-width:400px;
  margin:0 auto 14px;
  background:var(--white);
  border-radius:50px;
  padding:6px;
  box-shadow:0 10px 28px rgba(74,52,40,0.16);
  border:1px solid rgba(255,255,255,0.8);
}
form input[type="email"]{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  padding:13px 20px;
  font-size:.92rem;
  font-family:'Poppins', sans-serif;
  color:var(--brown);
}
form input[type="email"]::placeholder{color:#c2b09b;}
form button{
  border:none;
  background:linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color:var(--white);
  font-weight:600;
  font-family:'Poppins', sans-serif;
  padding:13px 24px;
  border-radius:50px;
  cursor:pointer;
  font-size:.9rem;
  display:flex;
  align-items:center;
  gap:6px;
  transition:transform .18s ease, box-shadow .18s ease;
}
form button svg{width:14px;height:14px;fill:var(--white); transition:transform .18s ease;}
form button:hover{transform:translateY(-2px); box-shadow:0 8px 18px rgba(163,78,34,.35);}
form button:hover svg{transform:translateX(3px);}

.note{font-size:.78rem;color:#a3907c;margin-bottom:30px;}

.divider{
  width:60px;height:2px;
  background:var(--gold);
  margin:0 auto 26px;
  border-radius:2px;
  opacity:.6;
}

.socials{display:flex;gap:14px; justify-content:center;}
.socials a{
  width:46px;height:46px;
  border-radius:50%;
  background:var(--white);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(74,52,40,0.1);
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.socials a:hover{transform:translateY(-4px) scale(1.06); background:var(--gold); box-shadow:0 10px 20px rgba(217,165,102,.4);}
.socials svg{width:19px;height:19px;fill:var(--terracotta-dark); transition:fill .2s ease;}
.socials a:hover svg{fill:var(--white);}

footer{
  text-align:center;
  font-size:.78rem;
  color:#a3907c;
  padding:20px;
  position:relative;
  z-index:1;
  font-weight:300;
}

/* toast shown after email submit (see script.js) */
.toast{
  position:fixed;
  left:50%;
  bottom:30px;
  transform:translate(-50%, 20px);
  background:var(--brown);
  color:var(--white);
  padding:12px 22px;
  border-radius:50px;
  font-size:.85rem;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  z-index:10;
}
.toast.show{
  opacity:1;
  transform:translate(-50%, 0);
}

@media (max-width:600px){
  .card{padding:42px 26px 34px; border-radius:24px;}
  h1{font-size:1.9rem;}
  .logo{font-size:1.7rem;}
  form{flex-direction:column;border-radius:22px;padding:10px;}
  form button{margin-top:8px;border-radius:22px;justify-content:center;}
  .illustration{width:170px;height:140px;}
}
