/* ==========================================================================
   WishMyBuddy.com — Studio Humanized Design System
   Crafted with precision: Editorial luxury + Tactile interactions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Cinzel:wght@700;900&family=Caveat:wght@600;700&display=swap');

:root {
  --bg: #07080d;
  --bg-surface: #0e111a;
  --bg-surface-elevated: #161a26;
  --bg-card: rgba(18, 22, 34, 0.75);
  
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-glow: rgba(245, 158, 11, 0.25);
  
  --coral: #ff477e;
  --coral-glow: rgba(255, 71, 126, 0.25);
  
  --cyan: #38bdf8;
  --emerald: #10b981;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --border-highlight: rgba(255, 255, 255, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px rgba(245, 158, 11, 0.2);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-cinzel: 'Cinzel', serif;
  --font-hand: 'Caveat', cursive;
}

/* Reset & Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Film Grain Texture Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b, #ff477e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--amber-glow);
}

.nav-logo-text {
  font-family: var(--font-cinzel);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: #09090b !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--amber-glow);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & MICRO-INTERACTIONS
   ========================================================================== */
.btn-primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  color: #09090b;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 34px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION (HUMAN & PUNCHY)
   ========================================================================== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Atmospheric Glow Backgrounds */
.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(255, 71, 126, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 24px;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulseDot 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #ffd166 20%, #ff477e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 6px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-avatars {
  display: flex;
  align-items: center;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.hero-avatars .hero-avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   HOMEPAGE INTERACTIVE DEMO STAGE
   ========================================================================== */
.demo-stage-section {
  padding: 20px 0 100px;
  position: relative;
}

.demo-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.demo-stage::after {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 400px; height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}

.demo-controls-side h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.demo-controls-side p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.demo-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.demo-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.demo-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.demo-feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.demo-feature-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Phone Mockup Screen in Stage */
.mock-phone-frame {
  max-width: 360px;
  margin: 0 auto;
  border: 10px solid #1e2433;
  border-radius: 44px;
  background: #0b0914;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  aspect-ratio: 9/19;
}

.mock-phone-notch {
  width: 120px;
  height: 20px;
  background: #1e2433;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.mock-phone-content {
  height: 100%;
  overflow-y: auto;
  padding: 30px 16px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.15), #0b0914 70%);
}

.mock-phone-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber-light);
  margin-bottom: 12px;
}

.mock-phone-title {
  font-family: var(--font-cinzel);
  color: var(--amber);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
}

.mock-phone-card {
  background: linear-gradient(135deg, #151928, #0d101a);
  border: 1.5px solid var(--amber);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  position: relative;
}

.mock-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  margin: 0 auto 10px;
  object-fit: cover;
  background: #23293e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.mock-card-score {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

/* ==========================================================================
   TEMPLATE GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-btn.active, .filter-pill-btn:hover {
  background: var(--amber-glow);
  border-color: var(--amber);
  color: var(--amber-light);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.template-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.template-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--amber-glow);
}

.template-card-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #111420;
}

.template-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-card-preview img {
  transform: scale(1.05);
}

.template-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.template-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.template-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.template-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.template-features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.template-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.template-card-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: #09090b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: opacity 0.2s ease;
}

.template-card-btn:hover {
  opacity: 0.92;
}

/* ==========================================================================
   CREATOR STUDIO (SPLIT SCREEN EXPERIENCE)
   ========================================================================== */
.studio-wrapper {
  padding: 110px 0 60px;
  min-height: 100vh;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Studio Editor Left Panel */
.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}

.studio-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.studio-header h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.studio-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stepper Bar */
.studio-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  background: var(--bg);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.studio-step-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-step-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--amber-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.studio-step-btn.done {
  color: var(--emerald);
}

/* Form Controls */
.form-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.text-input, .select-input, .textarea-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus, .select-input:focus, .textarea-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}

.textarea-input {
  resize: vertical;
  min-height: 120px;
}

/* Photo Drag & Drop Area */
.photo-drop-zone {
  border: 2px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.photo-drop-zone:hover {
  border-color: var(--amber);
  background: var(--amber-glow);
}

.photo-drop-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.photo-previews-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.photo-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--amber);
  object-fit: cover;
}

/* Subdomain Slug Builder */
.slug-builder-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding-right: 14px;
  overflow: hidden;
}

.slug-builder-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--amber-light);
  font-family: monospace;
  font-size: 1.05rem;
  padding: 13px 16px;
  outline: none;
}

.slug-builder-domain {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  user-select: none;
}

.slug-chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.slug-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.slug-chip:hover {
  background: var(--amber-glow);
  border-color: var(--amber);
  color: var(--amber-light);
}

/* Studio Live Simulator Right Panel */
.studio-simulator-sticky {
  position: sticky;
  top: 96px;
}

.simulator-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-size: 0.75rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 1.5s infinite;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.footer-brand {
  font-family: var(--font-cinzel);
  font-size: 1.2rem;
  color: var(--amber);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-simulator-sticky {
    display: none; /* Hide sticky preview on smaller screens, or stack below */
  }
  .demo-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
}
