/* ========================================================
   NAILSBYDHRUVI - COMING SOON
   Brand Theme Tokens & Editorial Styling
   ======================================================== */

:root {
  /* Exact Brand Theme Tokens */
  --porcelain: #FAF6F8;      /* page background */
  --plum-ink: #33142B;       /* headings, primary text */
  --plum-900: #220B1D;
  --plum-700: #42243C;
  --plum-500: #6B4E65;
  --plum-400: #8C6D85;       /* secondary / helper text */
  --plum-200: #D8CCD3;
  --plum-100: #EDE6EA;       /* hairlines */
  --peony: #B8325F;          /* primary accent */
  --peony-hover: #9E284F;
  --peony-active: #821D3F;
  --peony-light: #FBEAF1;
  --petal: #F5D3E0;
  --petal-light: #FDF4F8;
  --petal-dark: #E8B9CC;
  --leaf: #8FB09A;           /* tiny accent only */
  --pistil: #B98F3E;         /* tiny gold accent only */
  --pistil-light: #F8F3E6;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Editorial Motion Easing */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-float: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Base Reset & Zero Horizontal Overflow */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
  background-color: var(--porcelain);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--porcelain);
  color: var(--plum-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Slow-Drifting Radial Glows */
.ambient-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.glow-orb--petal-light {
  width: min(580px, 80vw);
  height: min(580px, 80vw);
  background: radial-gradient(circle, var(--petal-light) 0%, rgba(253, 244, 248, 0) 70%);
  filter: blur(80px);
  opacity: 0.85;
  top: -10%;
  left: 10%;
  animation: driftSlow1 28s var(--ease-float) infinite alternate;
}

.glow-orb--petal {
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  background: radial-gradient(circle, var(--petal) 0%, rgba(245, 211, 224, 0) 70%);
  filter: blur(100px);
  opacity: 0.6;
  bottom: -15%;
  right: -5%;
  animation: driftSlow2 32s var(--ease-float) infinite alternate;
}

.glow-orb--petal-dark {
  width: min(460px, 70vw);
  height: min(460px, 70vw);
  background: radial-gradient(circle, var(--petal-dark) 0%, rgba(232, 185, 204, 0) 70%);
  filter: blur(90px);
  opacity: 0.45;
  top: 42%;
  left: -8%;
  animation: driftSlow3 26s var(--ease-float) infinite alternate;
}

/* Barely Visible Tactile Film-Grain Texture */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.008;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.2 0 0 0 0.2  0 0.08 0 0 0.08  0 0 0.17 0 0.17  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Floating SVG Nail Motifs */
.nail-motifs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.nail-wrapper {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 14px 28px rgba(51, 20, 43, 0.08));
  opacity: 0;
}

.nail-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Staggered Floating Coordinates & Animations */
.nail--almond-top-left {
  width: clamp(75px, 8vw, 115px);
  top: 3.5%;
  left: 2.5%;
  transform: rotate(-18deg);
  animation:
    nailEntrance 1.2s var(--ease-editorial) 0.3s forwards,
    nailFloat1 8s var(--ease-float) infinite alternate 1.5s;
}

.nail--coffin-top-right {
  width: clamp(80px, 8.5vw, 125px);
  top: 4.5%;
  right: 3%;
  transform: rotate(22deg);
  animation:
    nailEntrance 1.2s var(--ease-editorial) 0.35s forwards,
    nailFloat2 10.5s var(--ease-float) infinite alternate 1.55s;
}

.nail--almond-mid-right {
  width: clamp(65px, 6.5vw, 95px);
  top: 48%;
  right: 2%;
  transform: rotate(-28deg);
  animation:
    nailEntrance 1.2s var(--ease-editorial) 0.4s forwards,
    nailFloat3 9s var(--ease-float) infinite alternate 1.6s;
}

.nail--almond-bottom-left {
  width: clamp(75px, 7.5vw, 110px);
  bottom: 5.5%;
  left: 3%;
  transform: rotate(30deg);
  animation:
    nailEntrance 1.2s var(--ease-editorial) 0.38s forwards,
    nailFloat4 11s var(--ease-float) infinite alternate 1.58s;
}

.nail--coffin-bottom-right {
  width: clamp(75px, 7.5vw, 115px);
  bottom: 4.5%;
  right: 3.5%;
  transform: rotate(-16deg);
  animation:
    nailEntrance 1.2s var(--ease-editorial) 0.42s forwards,
    nailFloat5 8.5s var(--ease-float) infinite alternate 1.62s;
}

/* Page Shell Layout (Full 100dvh single screen, mobile-safe) */
.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: clamp(24px, 4vh, 44px) clamp(16px, 4.5vw, 60px);
  padding-top: calc(clamp(24px, 4vh, 44px) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(clamp(20px, 3.5vh, 36px) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(clamp(16px, 4.5vw, 60px) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(16px, 4.5vw, 60px) + env(safe-area-inset-right, 0px));
}

/* Header & Wordmark */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.02s both;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--plum-ink);
  text-align: center;
  user-select: none;
}

/* Main Focal Area */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: clamp(16px, 3vh, 40px) 0;
}

.content-container {
  max-width: 660px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Eyebrow with Pistil Gold Line */
.eyebrow-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(14px, 2.2vh, 22px);
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.08s both;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--pistil);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--plum-700);
}

/* Headline */
.headline {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--plum-ink);
  margin-bottom: clamp(16px, 2.4vh, 24px);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.14s both;
}

.headline-accent {
  color: var(--peony);
  font-style: italic;
  font-weight: 400;
}

/* Subline */
.subline {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--plum-500);
  max-width: 480px;
  margin-bottom: clamp(24px, 4vh, 38px);
  text-wrap: pretty;
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.20s both;
}

/* Action Wrapper & Instagram Button */
.action-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.26s both;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--peony);
  background-color: var(--porcelain);
  color: var(--peony);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 50, 95, 0.08);
  transition:
    background-color 0.28s var(--ease-editorial),
    border-color 0.28s var(--ease-editorial),
    color 0.28s var(--ease-editorial),
    transform 0.28s var(--ease-editorial),
    box-shadow 0.28s var(--ease-editorial);
  -webkit-tap-highlight-color: transparent;
}

.instagram-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.28s var(--ease-editorial);
}

/* Button States: Hover, Active, Focus */
.instagram-btn:hover {
  background-color: var(--peony-hover);
  border-color: var(--peony-hover);
  color: var(--porcelain);
  transform: translateY(-2.5px);
  box-shadow: 0 10px 24px -4px rgba(184, 50, 95, 0.28);
}

.instagram-btn:hover .instagram-icon {
  transform: scale(1.04);
}

.instagram-btn:active {
  background-color: var(--peony-active);
  border-color: var(--peony-active);
  color: var(--porcelain);
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(184, 50, 95, 0.18);
}

.instagram-btn:focus-visible {
  outline: 2px solid var(--peony);
  outline-offset: 4px;
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  animation: entranceFadeUp 0.45s var(--ease-editorial) 0.32s both;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.95vw, 0.825rem);
  font-weight: 500;
  color: var(--plum-500);
  letter-spacing: 0.01em;
  text-align: center;
}

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */

@keyframes entranceFadeUp {
  0% {
    opacity: 0.85;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nailEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Gentle looping float for nails */
@keyframes nailFloat1 {
  0% { transform: translateY(0) rotate(-18deg); }
  100% { transform: translateY(-10px) rotate(-15deg); }
}

@keyframes nailFloat2 {
  0% { transform: translateY(0) rotate(22deg); }
  100% { transform: translateY(-12px) rotate(25deg); }
}

@keyframes nailFloat3 {
  0% { transform: translateY(0) rotate(-28deg); }
  100% { transform: translateY(-8px) rotate(-25deg); }
}

@keyframes nailFloat4 {
  0% { transform: translateY(0) rotate(30deg); }
  100% { transform: translateY(-10px) rotate(33deg); }
}

@keyframes nailFloat5 {
  0% { transform: translateY(0) rotate(-16deg); }
  100% { transform: translateY(-9px) rotate(-13deg); }
}

/* Ambient glow drift */
@keyframes driftSlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, 25px) scale(1.08); }
}

@keyframes driftSlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.06); }
}

@keyframes driftSlow3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, -18px) scale(1.05); }
}

/* ========================================================
   RESPONSIVE TUNING
   ======================================================== */

@media (max-width: 768px) {
  .nail--almond-top-left {
    top: 1%;
    left: 1%;
    width: 68px;
  }
  .nail--coffin-top-right {
    top: 2%;
    right: 1.5%;
    width: 72px;
  }
  .nail--almond-mid-right {
    top: 52%;
    right: 1%;
    width: 58px;
  }
  .nail--almond-bottom-left {
    bottom: 2%;
    left: 1.5%;
    width: 68px;
  }
  .nail--coffin-bottom-right {
    bottom: 2%;
    right: 1.5%;
    width: 70px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 22px 16px;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .headline {
    font-size: clamp(1.75rem, 8.2vw, 2.15rem);
    line-height: 1.16;
  }
  .subline {
    font-size: 0.95rem;
    max-width: 320px;
  }
  .nail--almond-mid-right {
    display: none; /* Keep mobile viewport clean and airy */
  }
  .nail--almond-top-left {
    width: 58px;
  }
  .nail--coffin-top-right {
    width: 60px;
  }
  .nail--almond-bottom-left {
    width: 58px;
  }
  .nail--coffin-bottom-right {
    width: 60px;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .nail-wrapper {
    opacity: 1 !important;
  }
}
