/* =========================================================
   Sivakasi Gift Box — Coming Soon
   Tokens
   ========================================================= */
:root {
  --bg-base: #fdf6ec;
  --bg-soft: #fbeed9;
  --panel-bg: #ffffff;
  --gold: #d98a00;
  --gold-bright: #f5b400;
  --amber: #e8a659;
  --amber-deep: #c9863b;
  --logo-red: #e2231a;
  --logo-red-deep: #a3160f;
  --ink: #2b1608;
  --muted: #7a6a58;
  --muted-soft: #a5947e;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Jost", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --space-unit: 1vh;
  --panel-max: 640px;
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   Background scene
   ========================================================= */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 50% 15%, #fff8ee 0%, #fdf1dd 45%, var(--bg-base) 100%);
  overflow: hidden;
}

.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.scene__glow--amber {
  width: 62vmax;
  height: 62vmax;
  left: 50%;
  top: 8%;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(245, 180, 0, 0.16) 0%, rgba(245, 180, 0, 0) 68%);
  animation: driftGlowA 22s ease-in-out infinite;
}

.scene__glow--gold {
  width: 44vmax;
  height: 44vmax;
  left: 18%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(226, 35, 26, 0.08) 0%, rgba(226, 35, 26, 0) 70%);
  animation: driftGlowB 26s ease-in-out infinite;
}

@keyframes driftGlowA {
  0%, 100% { transform: translate(-50%, -30%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-46%, -26%) scale(1.06); opacity: 1; }
}

@keyframes driftGlowB {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%      { transform: translate(3%, -4%) scale(1.08); opacity: 1; }
}

/* Faint light trails (SVG) */
.scene__trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.trail {
  stroke-dasharray: 6 14;
  animation: trailDrift 34s linear infinite;
  opacity: 0.4;
}

.trail--two { animation-duration: 40s; animation-direction: reverse; }
.trail--three { animation-duration: 46s; }

@keyframes trailDrift {
  to { stroke-dashoffset: -800; }
}

.spark circle {
  filter: drop-shadow(0 0 3px rgba(217, 138, 0, 0.6));
}

.spark--a { transform: translate(720px, 430px); animation: sparkPulse 5.5s ease-in-out infinite; }
.spark--b { transform: translate(980px, 560px); animation: sparkPulse 6.5s ease-in-out infinite 1.2s; }
.spark--c { transform: translate(760px, 420px); animation: sparkPulse 7.5s ease-in-out infinite 2.4s; }

@keyframes sparkPulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Floating particles (generated by script.js) */
.scene__particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  bottom: -5%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright) 0%, rgba(245, 180, 0, 0) 70%);
  opacity: 0;
  animation-name: floatUp;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes floatUp {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: var(--p-opacity, 0.4); }
  50%  { transform: translate3d(var(--p-drift, 10px), -52vh, 0); }
  90%  { opacity: 0; }
  100% { transform: translate3d(calc(var(--p-drift, 10px) * 2), -105vh, 0); opacity: 0; }
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 45%, rgba(255,255,255,0) 55%, rgba(230, 200, 160, 0.25) 100%);
  pointer-events: none;
}

.scene__grain {
  position: absolute;
  inset: -20%;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* =========================================================
   Stage / layout
   ========================================================= */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh clamp(20px, 6vw, 64px);
}

.panel {
  width: 100%;
  max-width: var(--panel-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 6vh, 64px) clamp(24px, 5vw, 56px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.85));
  border: 1px solid rgba(217, 138, 0, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 70px rgba(180, 120, 40, 0.14);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  animation: panelReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 clamp(14px, 2.4vh, 22px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.32em;
  color: var(--logo-red);
  opacity: 0.95;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  font-size: clamp(2.05rem, 3.1vw + 1rem, 3.6rem);
  color: var(--ink);
  background: linear-gradient(180deg, #4a2a10 0%, #b5680f 55%, #e2231a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.002em;
  text-wrap: balance;
}

.subtext {
  margin: clamp(16px, 3vh, 24px) 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.1vw + 0.6rem, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 34ch;
}

/* =========================================================
   CTA button
   ========================================================= */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 4.5vh, 42px);
  padding: clamp(18px, 2vh + 10px, 23px) clamp(34px, 4.2vw, 48px);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;

  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.92rem, 0.6vw + 0.78rem, 1.05rem);
  letter-spacing: 0.06em;
  color: #ffffff;

  background: linear-gradient(135deg, #f5b400 0%, #e2231a 100%);
  border: 1px solid rgba(226, 35, 26, 0.4);
  box-shadow:
    0 12px 30px rgba(226, 35, 26, 0.28),
    0 0 0 1px rgba(255,255,255,0.05) inset;

  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 18px 42px rgba(226, 35, 26, 0.38),
    0 0 0 1px rgba(255,255,255,0.05) inset;
}

.cta:focus-visible {
  outline: 2px solid var(--logo-red);
  outline-offset: 4px;
}

.cta:active {
  transform: translateY(-1px);
}

.cta__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.cta__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
  transform: translateX(4px);
}

.cta__sheen {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: sheenSweep 5.5s ease-in-out infinite;
}

@keyframes sheenSweep {
  0%   { left: -60%; }
  35%  { left: 130%; }
  100% { left: 130%; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Small phones */
@media (max-width: 380px) {
  .panel {
    padding: 30px 18px;
    border-radius: 18px;
  }
  .eyebrow { letter-spacing: 0.26em; }
  .cta {
    width: 100%;
    justify-content: center;
    padding-block: 18px;
  }
}

/* Tablet portrait */
@media (min-width: 600px) and (max-width: 1024px) {
  .panel { max-width: 560px; }
}

/* Laptop / desktop refinements */
@media (min-width: 1280px) {
  .panel { max-width: 700px; }
  .scene__glow--amber { width: 54vmax; height: 54vmax; }
}

/* Large desktop */
@media (min-width: 1920px) {
  .panel { max-width: 760px; }
  :root { --panel-max: 760px; }
}

/* Short viewports (landscape phones) */
@media (max-height: 480px) {
  .stage { padding: 3vh 24px; }
  .panel { padding: 22px clamp(20px, 4vw, 40px); }
  .headline { font-size: clamp(1.5rem, 3vw + 0.6rem, 2.4rem); }
  .cta { margin-top: 18px; }
}

/* =========================================================
   Accessibility: reduced motion
   ========================================================= */
@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;
  }

  .scene__particles { display: none; }
  .cta__sheen { display: none; }
}