/* ============================================
   Warmframe — Photo Collage Cards
   Premium dark warm-toned design system
   Inspired by snig.digital depth + wantedfornothing typography
   ============================================ */

/* ---------- Variables ---------- */
:root {
  /* Backgrounds — warm-tinted dark with depth */
  --bg-base: #0A0E17;
  --bg-deep: #060810;
  --bg-surface: #111827;
  --bg-elevated: #1A1F2E;
  --bg-card: #1E2433;

  /* Accents — warm earth tones */
  --amber: #D4A574;
  --amber-bright: #E8B888;
  --amber-glow: rgba(212, 165, 116, 0.15);
  --terracotta: #C47A4F;
  --terracotta-dark: #A8653F;
  --cream: #FAF0E6;
  --rose: #B86B5C;

  /* Text — warm-tinted */
  --text-primary: #E8E0D5;
  --text-secondary: #9B9489;
  --text-muted: #6B655D;

  /* Borders */
  --border: #2A2D35;
  --border-warm: #3A3530;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.4s var(--ease);
  --transition-fast: 0.2s var(--ease);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: 'Fraunces', Georgia, serif;

  /* Z-index scale */
  --z-grain: 9990;
  --z-progress: 9995;
  --z-toast: 1000;

  /* Layout */
  --studio-max: 880px;
}

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

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

::selection {
  background: var(--amber);
  color: var(--bg-base);
}

/* ============================================
   Atmospheric Background — Layered Mesh Gradients
   Creates depth like snig.digital's navy atmosphere
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* Top-left warm amber bloom */
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    /* Top-right terracotta bloom */
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(196, 122, 79, 0.06) 0%, transparent 50%),
    /* Bottom-left deep rose */
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(184, 107, 92, 0.05) 0%, transparent 50%),
    /* Bottom-right amber */
    radial-gradient(ellipse 70% 60% at 90% 85%, rgba(212, 165, 116, 0.04) 0%, transparent 50%),
    /* Center subtle warmth */
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(212, 165, 116, 0.02) 0%, transparent 60%);
}

/* Animated gradient orbs — slow drift for atmosphere */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 400px at var(--orb1-x, 20%) var(--orb1-y, 30%), rgba(212, 165, 116, 0.06) 0%, transparent 100%),
    radial-gradient(circle 500px at var(--orb2-x, 80%) var(--orb2-y, 70%), rgba(196, 122, 79, 0.04) 0%, transparent 100%);
  animation: orbDrift 20s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes orbDrift {
  0%   { opacity: 0.6; transform: translate(0, 0) scale(1); }
  50%  { opacity: 1;   transform: translate(20px, -20px) scale(1.05); }
  100% { opacity: 0.7; transform: translate(-15px, 10px) scale(0.98); }
}

/* All content sits above background layers */
.hero, .studio, .footer {
  position: relative;
  z-index: 1;
}

/* ============================================
   Grain Texture Overlay
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber), var(--amber-bright));
  z-index: var(--z-progress);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--amber-glow);
}

/* ============================================
   Hero — Dramatic typography-forward design
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

/* Vignette overlay for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(6, 8, 16, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Particle Canvas ---------- */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* ---------- Hero Glow — larger, more prominent ---------- */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, rgba(196, 122, 79, 0.03) 30%, transparent 60%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
  will-change: transform, opacity;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* ---------- Hero Content ---------- */
.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--amber);
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s var(--ease) forwards;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber), 0 0 20px rgba(212, 165, 116, 0.4);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---------- Layered Title — BIGGER, more dramatic ---------- */
.layered-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 2.5rem;
}

.layered-title .layer {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.layered-title .layer-3 {
  position: relative;
}

.layered-title .layer-1 {
  color: var(--terracotta);
  opacity: 0;
  transform: translate(12px, 12px);
  animation: layerIn1 1.2s 0.3s var(--ease) forwards;
}

.layered-title .layer-2 {
  color: var(--amber);
  opacity: 0;
  transform: translate(6px, 6px);
  animation: layerIn2 1.2s 0.5s var(--ease) forwards;
}

.layered-title .layer-3 {
  color: var(--cream);
  opacity: 0;
  animation: layerIn3 1.2s 0.7s var(--ease) forwards;
  text-shadow: 0 0 80px rgba(212, 165, 116, 0.15);
}

@keyframes layerIn1 { to { opacity: 0.5; transform: translate(8px, 8px); } }
@keyframes layerIn2 { to { opacity: 0.7; transform: translate(4px, 4px); } }
@keyframes layerIn3 { to { opacity: 1;   transform: translate(0, 0);   } }

@media (hover: hover) {
  .layered-title:hover .layer-1 { transform: translate(14px, 14px); opacity: 0.7; }
  .layered-title:hover .layer-2 { transform: translate(7px, 7px);   opacity: 0.9; }
}

/* ---------- Hero Sub ---------- */
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s var(--ease) forwards;
}

/* ---------- CTA Button (Magnetic) ---------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: var(--amber);
  color: var(--bg-base);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  opacity: 0;
  animation: fadeUp 0.8s 1.1s var(--ease) forwards;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.2);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.cta:hover {
  background: var(--amber-bright);
  box-shadow: 0 8px 40px rgba(212, 165, 116, 0.4), 0 0 60px rgba(212, 165, 116, 0.15);
}

.cta:hover::before {
  transform: translateX(100%);
}

.cta-icon {
  display: flex;
  transition: transform 0.3s var(--ease);
}

.cta:hover .cta-icon {
  transform: translateX(4px);
}

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

/* ---------- Hero Scroll Indicator ---------- */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fadeUp 0.8s 1.5s var(--ease) forwards;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1);   transform-origin: top; }
  50%      { transform: scaleY(0.4); transform-origin: top; }
}

/* ============================================
   Studio — Aligned, centered, cohesive
   ============================================ */
.studio {
  padding: 6rem 2rem 8rem;
  max-width: var(--studio-max);
  margin: 0 auto;
  position: relative;
}

.studio-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* ---------- Section Ornament ---------- */
.section-ornament {
  width: 40px;
  height: 1px;
  background: var(--terracotta);
  margin: 0 auto 1.5rem;
  position: relative;
}

.section-ornament::before,
.section-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-50%);
}

.section-ornament::before { left: -8px; }
.section-ornament::after { right: -8px; }

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============================================
   Steps — with depth and active states
   ============================================ */
.step {
  margin-bottom: 3rem;
  width: 100%;
}

.step-hidden {
  display: none;
}

.step:not(.step-hidden) {
  animation: fadeInUp 0.6s var(--ease);
}

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

/* ---------- Step Label with Badge ---------- */
.step-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
}

.step.active .step-badge {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--bg-base);
  box-shadow: 0 0 24px var(--amber-glow);
}

.step-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-text {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  font-weight: 500;
}

.step.active .step-text {
  color: var(--amber);
}

.step-bar {
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.6s var(--ease);
}

.step.active .step-bar {
  width: 60px;
}

/* ============================================
   Upload Zone — with glow and depth
   ============================================ */
.upload-zone {
  position: relative;
  border: 2px dashed var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: var(--bg-surface);
  overflow: hidden;
  width: 100%;
}

.upload-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.upload-zone:hover,
.upload-zone:focus {
  border-color: var(--amber);
  background: var(--bg-elevated);
  outline: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(212, 165, 116, 0.05);
}

.upload-zone:hover .upload-glow,
.upload-zone:focus .upload-glow {
  opacity: 1;
}

.upload-zone.dragover {
  border-color: var(--amber);
  background: rgba(212, 165, 116, 0.05);
  transform: scale(1.01);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 80px rgba(212, 165, 116, 0.1);
}

.upload-zone.dragover .upload-glow {
  opacity: 1;
}

.upload-inner {
  position: relative;
  pointer-events: none;
  z-index: 1;
}

.upload-icon {
  color: var(--text-muted);
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.upload-zone:hover .upload-icon,
.upload-zone.dragover .upload-icon {
  color: var(--amber);
  transform: translateY(-4px);
}

.upload-text {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.upload-link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Photo Grid — with depth
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.photo-grid:empty { display: none; }

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  border: 2px solid var(--border-warm);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
  animation: photoEnter 0.5s var(--ease-spring) both;
}

@keyframes photoEnter {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.photo-item:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.photo-item.dragging { opacity: 0.5; }
.photo-item:active { cursor: grabbing; }

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.85);
  color: var(--cream);
  border: 1px solid var(--border-warm);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s var(--ease-spring), background 0.2s;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.photo-item:hover .photo-remove {
  opacity: 1;
  transform: scale(1);
}

.photo-remove:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.photo-num {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(196, 122, 79, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-body);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================
   Controls — consistent width, proper alignment
   ============================================ */
.create-controls,
.email-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.title-input,
.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.title-input:focus,
.email-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.title-input::placeholder,
.email-input::placeholder {
  color: var(--text-muted);
}

/* ---------- Primary Button ---------- */
.btn-primary {
  position: relative;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--bg-base);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  background: var(--amber-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary.loading { pointer-events: none; }
.btn-primary.loading .btn-text { opacity: 0; }
.btn-primary.loading .btn-spinner { opacity: 1; }

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(10, 14, 23, 0.3);
  border-top-color: var(--bg-base);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secondary Button ---------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-secondary svg {
  transition: transform 0.4s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-secondary:hover svg {
  transform: rotate(180deg);
}

/* ============================================
   Preview — floating with glow
   ============================================ */
.preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preview-frame {
  position: relative;
  max-width: 450px;
  width: 100%;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-warm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 165, 116, 0.03);
  overflow: hidden;
}

.preview-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--amber-glow) 0%, transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  animation: previewGlowRotate 12s linear infinite;
}

.preview-frame:hover .preview-glow {
  opacity: 1;
}

@keyframes previewGlowRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#previewCanvas {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  position: relative;
  z-index: 1;
}

/* ============================================
   Status Messages
   ============================================ */
.status-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  min-height: 20px;
  transition: color 0.3s;
}

.status-msg.status-loading { color: var(--amber); }
.status-msg.status-success { color: #88A060; }
.status-msg.status-error   { color: var(--terracotta); }

/* ============================================
   Footer
   ============================================ */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  border-top: 1px solid var(--border);
}

.footer-ornament {
  width: 40px;
  height: 1px;
  background: var(--terracotta);
  margin: 0 auto 2rem;
  position: relative;
}

.footer-ornament::before,
.footer-ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-50%);
}

.footer-ornament::before { left: -8px; }
.footer-ornament::after { right: -8px; }

.footer-text {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 0.5rem;
}

.footer-mark {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  color: var(--terracotta);
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all 0.4s var(--ease-spring);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.toast-error {
  background: rgba(74, 42, 32, 0.9);
  color: #FFB088;
  border: 1px solid var(--terracotta);
}

.toast-error .toast-icon {
  background: var(--terracotta);
  color: #fff;
}

.toast-success {
  background: rgba(42, 58, 32, 0.9);
  color: #B8D088;
  border: 1px solid #88A060;
}

.toast-success .toast-icon {
  background: #88A060;
  color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .studio { padding: 4rem 1.5rem 6rem; }

  .create-controls,
  .email-controls {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .upload-zone { padding: 2rem 1rem; }

  .hero-scroll { display: none; }

  .step-badge {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    transform: translateY(100px);
    max-width: none;
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-eyebrow,
  .hero-sub,
  .cta,
  .hero-scroll,
  .layered-title .layer-1,
  .layered-title .layer-2,
  .layered-title .layer-3 {
    opacity: 1 !important;
    transform: none !important;
  }

  .layered-title .layer-1 { opacity: 0.5 !important; transform: translate(8px, 8px) !important; }
  .layered-title .layer-2 { opacity: 0.7 !important; transform: translate(4px, 4px) !important; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .grain { animation: none; }
  .hero-glow { animation: none; }
  body::after { animation: none; }
  .hero-particles { display: none; }
}
