/* ============================================================
   ARTISARA — Coming Soon Landing Page
   style.css
   Premium dark + gold aesthetic
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --gold-light:   #f5c842;
  --gold-mid:     #d4a843;
  --gold-dark:    #a87b2a;
  --gold-shine:   #fde68a;
  --bg-dark:      #111110;
  --bg-panel:     #191816;
  --bg-card:      #1e1c19;
  --border-gold:  rgba(212, 168, 67, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #f0ece4;
  --text-muted:   #8a8070;
  --text-faint:   #4a4540;
  --input-bg:     rgba(255,255,255,0.04);
  --input-border: rgba(212,168,67,0.2);
  --shadow-gold:  0 0 40px rgba(212,168,67,0.08);

  /* Countdown font size */
  --count-size: clamp(2.4rem, 5vw, 3.8rem);

  /* Layout */
  --left-width:  45%;
  --right-width: 55%;
}

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

html { scroll-behavior: smooth; }

@keyframes livePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.live-animate {
  animation: livePulse 1.5s ease-in-out infinite;
}
body {
  font-family: 'Jost', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Wrapper (flex split layout) ── */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ================================================================
   LEFT PANEL
   ================================================================ */
.left-panel {
  position: relative;
  width: var(--left-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  overflow: hidden;

  /* Textured dark background */
  background-color: var(--bg-panel);
  background-image:
    /* Subtle noise texture */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    /* Subtle vignette */
    radial-gradient(ellipse at 30% 40%, rgba(212,168,67,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(30,28,25,0.9) 0%, transparent 70%);
}

/* Grain overlay (layered PNG-style) */
.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='4' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Corner accent lines */
.corner-accent {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}
.corner-accent.tl {
  top: 1.5rem;
  left: 1.5rem;
  border-top: 1px solid var(--gold-mid);
  border-left: 1px solid var(--gold-mid);
  opacity: 0.5;
}
.corner-accent.br {
  bottom: 1.5rem;
  right: 1.5rem;
  border-bottom: 1px solid var(--gold-mid);
  border-right: 1px solid var(--gold-mid);
  opacity: 0.5;
}

/* All direct children stack above grain */
.left-panel > *:not(.grain-overlay):not(.corner-accent) {
  position: relative;
  z-index: 2;
}

/* ── Brand Mark ── */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.brand-diamond {
  font-size: 0.6rem;
  color: var(--gold-mid);
  letter-spacing: 0.1em;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

/* ── Hero Text ── */
.hero-text {
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
  /* Gold shimmer on the word */
  background: linear-gradient(135deg, #f0ece4 40%, var(--gold-light) 70%, #f0ece4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.headline em {
  font-style: italic;
  color: var(--gold-light);
  -webkit-text-fill-color: var(--gold-light);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.subheadline {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #f0ece4;
  line-height: 1.6;
}

/* ── Countdown ── */
.countdown-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}
.count-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--count-size);
  font-weight: 700;
  line-height: 1;
  /* Gold gradient number */
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Inner shadow illusion via text-shadow on pseudo */
  letter-spacing: -0.02em;
}
.count-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 400;
}
.count-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: calc(var(--count-size) * 0.7);
  color: var(--gold-mid);
  margin-bottom: 1.4rem;
  opacity: 0.6;
  user-select: none;
}

/* ── Form Section ── */
.form-section {
  margin-bottom: 2.2rem;
}
.form-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0ece4;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.form-group input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:focus {
  border-color: rgba(212,168,67,0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.06), inset 0 1px 0 rgba(212,168,67,0.05);
}

/* Input with checkmark icon */
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-right: 2.8rem;
}
.input-check {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  opacity: 0.5;
}
.input-check.valid {
  color: var(--gold-mid);
  opacity: 1;
}

/* Notify Me Button */
.notify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 0.3rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1500;

  /* Gold gradient */
  background: linear-gradient(90deg, #c8922a 0%, #e8b84b 35%, #f5c842 60%, #d4a843 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.15s ease;
  box-shadow: 0 4px 20px rgba(212,168,67,0.3), 0 1px 0 rgba(255,255,255,0.1) inset;
  position: relative;
  overflow: hidden;
}
.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.notify-btn:hover {
  background-position: right center;
  box-shadow: 0 6px 28px rgba(212,168,67,0.45), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.notify-btn:active { transform: translateY(1px); }
.notify-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.notify-btn:hover svg { transform: translateX(3px); }

/* Success Message */
.success-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 4px;
  background: rgba(212,168,67,0.06);
  font-size: 0.8rem;
  color: var(--gold-mid);
  letter-spacing: 0.05em;
  text-align: center;
  animation: fadeSlideIn 0.4s ease forwards;
}
.success-msg.show { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Social Row ── */
.social-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 50%;
      color: #f0ece4;
        text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.social-icon svg {
  width: 15px;
  height: 15px;
}
.social-icon:hover {
  color: var(--gold-mid);
  border-color: var(--gold-mid);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,168,67,0.15);
}

/* ── Footer ── */
.panel-footer {
  font-size: 0.68rem;
  color: #f0ece4;
  letter-spacing: 0.05em;
}

/* ================================================================
   RIGHT PANEL — SLIDER
   ================================================================ */
.right-panel {
  position: relative;
  width: var(--right-width);
  min-height: 100vh;
  background: #141310;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Subtle left gradient to blend into left panel */
.right-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, #191816, transparent);
  z-index: 10;
  pointer-events: none;
}
/* Right fade */
.right-panel::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, #141310, transparent);
  z-index: 10;
  pointer-events: none;
}

/* Vertical divider rule */
.vertical-rule {
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212,168,67,0.3) 30%, rgba(212,168,67,0.3) 70%, transparent);
  z-index: 11;
}

/* Gallery label */
.gallery-label {
  position: absolute;
  top: 2.2rem;
  left: 2.5rem;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.gallery-label span {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-mid);
  font-weight: 400;
}
.label-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--gold-mid), transparent);
}

/* ── Slider ── */
.slider-outer {
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
  cursor: grab;
  user-select: none;
}
.slider-outer:active { cursor: grabbing; }

.slider-track {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  /* Width set by JS based on item count */
  will-change: transform;
  /* CSS animation fallback — JS overrides */
}

/* Slide item */
.slide-item {
  flex-shrink: 0;
  width: clamp(180px, 22vw, 280px);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 0 rgba(212,168,67,0.08) inset;
  border: 1px solid rgba(212,168,67,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.slide-item:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,168,67,0.25);
}

.slide-item img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.05);
  transition: filter 0.4s ease;
}
.slide-item:hover img { filter: brightness(1) contrast(1.08); }

/* Caption overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 0.85rem;
  background: linear-gradient(to top, rgba(10,8,6,0.92) 0%, rgba(10,8,6,0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transform: translateY(30%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.slide-item:hover .slide-caption {
  transform: translateY(0);
  opacity: 1;
}
.caption-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.caption-code {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold-mid);
  text-transform: uppercase;
}

/* Sparkle icon */
.sparkle-icon {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  width: 36px;
  height: 36px;
  z-index: 12;
  opacity: 0.7;
  animation: sparklePulse 3s ease-in-out infinite;
}
@keyframes sparklePulse {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.9; transform: scale(1.15) rotate(15deg); }
}

/* Slider arrow */
.slider-arrow {
  position: absolute;
  bottom: 2rem;
  right: 5rem;
  color: var(--gold-mid);
  opacity: 0.6;
  z-index: 12;
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50%       { transform: translateX(5px); opacity: 1; }
}

/* ================================================================
   ENTRY ANIMATIONS
   ================================================================ */
.brand-mark,
.hero-text,
.countdown-wrapper,
.form-section,
.social-row,
.panel-footer {
  opacity: 0;
  transform: translateY(18px);
  animation: entryFade 0.7s ease forwards;
}

.brand-mark       { animation-delay: 0.1s; }
.hero-text        { animation-delay: 0.25s; }
.countdown-wrapper{ animation-delay: 0.4s; }
.form-section     { animation-delay: 0.55s; }
.social-row       { animation-delay: 0.7s; }
.panel-footer     { animation-delay: 0.8s; }

@keyframes entryFade {
  to { opacity: 1; transform: translateY(0); }
}

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

/* Tablet (≤ 900px): stack vertically */
@media (max-width: 900px) {
  :root {
    --left-width: 100%;
    --right-width: 100%;
  }
  .page-wrapper {
    flex-direction: column;
  }
  .left-panel {
    width: 100%;
    min-height: auto;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-gold);
  }
  .right-panel {
    width: 100%;
    min-height: 60vw;
  }
  .right-panel::before,
  .right-panel::after { width: 40px; }
  .vertical-rule { display: none; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .left-panel { padding: 2.5rem 1.5rem; }
  .countdown-wrapper { gap: 0.2rem; }
  .countdown-block { min-width: 52px; }
  .slide-item { width: clamp(150px, 48vw, 220px); }
  .gallery-label { top: 1.2rem; left: 1.5rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
