/* =====================================================
   FORGE & FOUNDRY - MOLTEN DESIGN SYSTEM
   Premium brand application with ember particle aesthetic
   ===================================================== */

/* CSP Allowlist Required:
     font-src: fonts.gstatic.com fonts.googleapis.com
     style-src: fonts.googleapis.com 'unsafe-inline'
     script-src: 'self' 'unsafe-inline' (for analytics) */

/* ===== DESIGN TOKENS ===== */
:root {
  /* BRAND TOKENS - Internal use only */
  --forge-obsidian: #0a0a0a;
  --forge-charcoal: #1a1a1a;
  --forge-steel: #2a2a2a;
  --forge-ember: #ff5a2a;
  --forge-gold: #ffd700;
  --forge-copper: #b87333;
  --forge-silver: #c0c0c0;
  --forge-spark: #ffaa44;
  
  /* SEMANTIC TOKENS - Components MUST use only these */
  --bg-primary: var(--forge-obsidian);
  --bg-secondary: var(--forge-charcoal);
  --bg-elevated: var(--forge-steel);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --accent-primary: var(--forge-ember);
  --accent-secondary: var(--forge-gold);
  --success: #22c55e;
  --warning: var(--forge-copper);
  --error: #ef4444;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  
  /* Typography Scale */
  --font-primary: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Animation */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  
  /* Layout */
  --nav-height: 70px;
  --container-max-width: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

a:hover {
  color: var(--accent-secondary);
}

/* ===== LAYOUT SYSTEM ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

.section {
  padding: var(--space-16) 0;
}

.section.alt {
  background: var(--bg-secondary);
}

.section.center {
  text-align: center;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ===== NAVIGATION SYSTEM ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(27, 27, 27, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background var(--duration-fast) var(--easing-standard);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-2);
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--duration-fast) var(--easing-standard);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a[aria-current="page"] {
  color: var(--accent-secondary);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  
  .hamburger {
    display: none;
  }
}

/* Auth Dropdown */
.auth-dropdown {
  position: relative;
}

.auth-dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--duration-normal) var(--easing-decelerate);
  pointer-events: none;
}

.auth-dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--duration-fast) var(--easing-standard);
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  min-height: 44px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.dropdown-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-2) 0;
}

/* Mobile Navigation */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: var(--space-3);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--easing-standard);
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  transform: translateY(-100%);
  transition: transform var(--duration-normal) var(--easing-decelerate);
  overflow: hidden;
}

.mobile-menu.show {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  padding: var(--space-4);
}

.mobile-menu li {
  margin-bottom: var(--space-2);
}

.mobile-nav-item,
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--duration-fast) var(--easing-standard);
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  width: 100%;
}

.mobile-nav-item:hover,
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.mobile-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-4) 0;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing-standard);
  position: relative;
  overflow: hidden;
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-medium {
  padding: var(--space-3) var(--space-5);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
  border-radius: var(--border-radius-lg);
}

.btn-ember {
  background: linear-gradient(135deg, var(--accent-primary), #ff7744);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 90, 42, 0.2);
}

.btn-ember:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 90, 42, 0.3);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
}

.btn-outline-gold:hover {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-text {
  font-weight: 600;
}

.btn-subtext {
  font-size: var(--text-sm);
  opacity: 0.8;
  font-weight: 400;
}

.btn-arrow {
  transition: transform var(--duration-fast) var(--easing-standard);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== FORM SYSTEM ===== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--easing-standard);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 42, 0.1);
}

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

.form-error {
  color: var(--error);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--error);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Auth Forms */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
}

.auth-title {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.auth-form {
  margin-bottom: var(--space-6);
}

.auth-links {
  text-align: center;
}

.auth-links a {
  color: var(--accent-primary);
  font-size: var(--text-sm);
}

.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 90, 42, 0.1) 0%, transparent 50%);
}

/* ===== BACKGROUND SYSTEM ===== */
#molten-veins-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 90, 42, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

#ember-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.heat-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 90, 42, 0.02) 50%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.forge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 90, 42, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.ember-glow-orbs {
  position: absolute;
  inset: 0;
}

/* ===== CONTENT BLOCKS ===== */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-fullscreen {
  min-height: calc(100vh - var(--nav-height));
  text-align: center;
  padding: var(--space-24) 0 var(--space-16);
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
}

/* ===== PREMIUM DESIGN ENHANCEMENTS ===== */

/* Premium Hero Centered Layout */
.hero-content-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Enhanced Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 90, 42, 0.1);
  border: 1px solid rgba(255, 90, 42, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: 50px;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.eyebrow-icon {
  font-size: 1rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.2); }
}

.eyebrow-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Premium Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.title-line--primary {
  color: var(--text-secondary);
  font-size: 0.8em;
  font-weight: 600;
}

.title-line--highlight {
  color: var(--text-primary);
  margin: var(--space-2) 0;
  position: relative;
}

.title-line--secondary {
  color: var(--text-primary);
  font-size: 1em;
}

.gradient-text-premium {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.gradient-text-premium::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
  opacity: 0.3;
}

.hero-lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 90%;
}

/* Premium CTA Button */
.btn-ember-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, var(--accent-primary), #ff7744);
  color: white;
  padding: var(--space-4) var(--space-6);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-lg);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(255, 90, 42, 0.3);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ember-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255, 90, 42, 0.4);
}

.btn-ember-premium:hover .btn-glow {
  opacity: 1;
}

.btn-arrow-premium {
  transition: transform 0.3s ease;
}

.btn-ember-premium:hover .btn-arrow-premium {
  transform: translateX(4px);
}

/* Social Proof */
.hero-social-proof {
  margin-top: var(--space-6);
}

.social-proof-avatars {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.avatar-stack {
  display: flex;
  margin-right: var(--space-2);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.avatar-1 { background: linear-gradient(135deg, #ff5a2a, #ff7744); }
.avatar-2 { background: linear-gradient(135deg, #ffd700, #ffdd33); }
.avatar-3 { background: linear-gradient(135deg, #22c55e, #4ade80); }
.avatar-more { 
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
}

.social-proof-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Hero Features */
.hero-proof-features {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (max-width: 768px) {
  .hero-proof-features {
    flex-direction: column;
    gap: var(--space-4);
  }
}

.proof-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.proof-icon {
  font-size: 1.2rem;
}

.proof-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual - Brand Preview Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-preview-mockup {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.mockup-container {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: var(--space-6);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.mockup-screen {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
}

.preview-brand-kit {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.preview-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.logo-placeholder {
  position: relative;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.preview-colors {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.color-swatch {
  background: transparent;
  border: none;
}

.preview-typography {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.font-sample {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.font-primary {
  font-family: var(--font-primary);
}

.font-display {
  font-family: var(--font-display);
}

.mockup-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(255, 90, 42, 0.1) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Premium Feature Cards */
.features-section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-header-premium {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title-premium {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-subtitle-premium {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-premium {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: var(--space-8);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  overflow: hidden;
  cursor: pointer;
}

.feature-card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 90, 42, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(255, 90, 42, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 42, 0.2);
}

.card-icon-premium {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 90, 42, 0.1), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 90, 42, 0.2);
  border-radius: 20px;
  color: var(--accent-primary);
}

.card-icon-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(255, 90, 42, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-premium:hover .card-icon-glow {
  opacity: 1;
}

.card-title-premium {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.card-description-premium {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-ember-rim {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 90, 42, 0.3), transparent, rgba(255, 215, 0, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-premium:hover .card-ember-rim {
  opacity: 1;
}

.card-hover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 90, 42, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-premium:hover .card-hover-glow {
  opacity: 1;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

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

/* ===== PRICING CARDS ===== */
.pricing-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--duration-normal) var(--easing-standard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.pricing-card.featured,
.pricing-card.founders {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(255, 90, 42, 0.2);
  transform: scale(1.05);
}

.pricing-card.standard {
  min-height: 300px;
}

.plan-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.plan-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.plan-price,
.plan-price-hero {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.plan-price span,
.plan-price-hero span {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.plan-period,
.lifetime-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: block;
}

.plan-features {
  list-style: none;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.plan-features.compact {
  font-size: var(--text-sm);
}

.plan-features li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-cta {
  text-align: center;
  margin-top: auto;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-badge.urgent {
  animation: pulse-glow 2s ease-in-out infinite;
}

.value-prop {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.urgency-text {
  color: var(--success);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  font-weight: 600;
}

.scarcity {
  color: var(--warning) !important;
  font-weight: 600;
}

.price-amount {
  color: var(--accent-primary);
}

/* Pricing Grid */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .pricing-preview-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .pricing-card.featured,
  .pricing-card.founders {
    grid-row: span 1;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .pricing-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .pricing-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  text-align: center;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.proof-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent-primary);
}

.proof-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-highlight {
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ===== CTA SECTIONS ===== */
.cta-section {
  background: linear-gradient(135deg, rgba(255, 90, 42, 0.05), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 90, 42, 0.1);
  border-radius: var(--border-radius-xl);
  padding: var(--space-16);
  margin: var(--space-16) 0;
}

.final-cta-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.primary-option {
  text-align: center;
}

.cta-urgency {
  color: var(--accent-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.priority-final {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-xl);
}

.cta-icon {
  font-size: 1.5rem;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.cta-title {
  font-weight: 700;
}

.cta-subtitle {
  font-size: var(--text-base);
  opacity: 0.9;
}

.alternative-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.alternative-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* ===== FOOTER ===== */
.footer-modern {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-6);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
}

@media (max-width: 768px) {
  .footer-nav {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

.footer-auth {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .footer-auth {
    justify-content: center;
  }
}

.footer-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.footer-btn:not(.footer-btn--primary) {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border-subtle);
}

.footer-btn:not(.footer-btn--primary):hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

.footer-btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), #ff7744);
  color: white;
  border: none;
}

.footer-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 90, 42, 0.3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
  }
}

.footer-divider {
  color: var(--border-strong);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-copy {
  margin: 0;
}

/* ===== FADE UP ANIMATION ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-footer {
  text-align: center;
  margin-top: var(--space-8);
}

.link-secondary {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color var(--duration-fast) var(--easing-standard);
}

.link-secondary:hover {
  color: var(--accent-primary);
}

/* ===== PLAN BADGE ===== */
.plan-badge {
  display: none;
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  z-index: 50;
  backdrop-filter: blur(10px);
}

.plan-badge.plan-free {
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.plan-badge.plan-premium {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.plan-badge.plan-pro,
.plan-badge.plan-founders {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===== DIFFERENTIATION GRID ===== */
.differentiation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .differentiation-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.differentiation-content {
  /* Styles for differentiation content */
}

.differentiation-list {
  list-style: none;
  padding: 0;
}

.differentiation-list li {
  padding: var(--space-3) 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.differentiation-list strong {
  color: var(--text-primary);
}

/* ===== MOLTEN PANELS ===== */
.molten-panel {
  /* Styles for molten panels */
}

.molten-glow-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
}

.proof-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ===== MOLTEN SCROLLBARS ===== */
/* Custom scrollbar styling for all elements */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--forge-ember) rgba(255, 255, 255, 0.1);
}

/* Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    var(--forge-ember) 0%, 
    var(--forge-gold) 50%, 
    var(--forge-copper) 100%);
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 0 10px rgba(255, 90, 42, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, 
    #ff6b3a 0%, 
    #ffe055 50%, 
    #d4924a 100%);
  box-shadow: 
    0 0 15px rgba(255, 90, 42, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, 
    #e55a2a 0%, 
    #f0d045 50%, 
    #b87333 100%);
  box-shadow: 
    0 0 20px rgba(255, 90, 42, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.3);
}

/* Horizontal scrollbar specific styling */
::-webkit-scrollbar:horizontal {
  height: 8px;
}

::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, 
    var(--forge-ember) 0%, 
    var(--forge-gold) 50%, 
    var(--forge-copper) 100%);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

/* ===== ADVANCED MOLTEN DESIGN SYSTEM ===== */
.molten-border {
  position: relative;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, 
    rgba(255, 90, 42, 0.05) 0%,
    rgba(255, 215, 0, 0.03) 25%,
    rgba(184, 115, 51, 0.04) 50%,
    rgba(255, 90, 42, 0.06) 100%);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.molten-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg,
    var(--forge-ember) 0%,
    var(--forge-gold) 25%,
    transparent 50%,
    var(--forge-copper) 75%,
    var(--forge-ember) 100%);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0.6;
  animation: moltenFlow 8s ease-in-out infinite;
}

@keyframes moltenFlow {
  0%, 100% { 
    background: linear-gradient(135deg,
      var(--forge-ember) 0%,
      var(--forge-gold) 25%,
      transparent 50%,
      var(--forge-copper) 75%,
      var(--forge-ember) 100%);
  }
  33% { 
    background: linear-gradient(225deg,
      var(--forge-gold) 0%,
      var(--forge-copper) 25%,
      transparent 50%,
      var(--forge-ember) 75%,
      var(--forge-gold) 100%);
  }
  66% { 
    background: linear-gradient(315deg,
      var(--forge-copper) 0%,
      var(--forge-ember) 25%,
      transparent 50%,
      var(--forge-gold) 75%,
      var(--forge-copper) 100%);
  }
}

.molten-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(10, 10, 10, 0.95);
  border-radius: calc(var(--border-radius-xl) - 2px);
  backdrop-filter: blur(20px);
}

.molten-border > * {
  position: relative;
  z-index: 1;
}

.molten-glow {
  box-shadow: 
    0 0 20px rgba(255, 90, 42, 0.1),
    0 0 40px rgba(255, 215, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 90, 42, 0.2);
}

.molten-interactive {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.molten-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 30px rgba(255, 90, 42, 0.2),
    0 0 60px rgba(255, 215, 0, 0.1),
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 90, 42, 0.3);
}

.molten-interactive:hover::before {
  opacity: 0.8;
  animation-duration: 4s;
}

/* ===== REFINED COLOR SWATCHES SYSTEM ===== */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-6);
  margin: var(--space-6) 0;
  padding: var(--space-6) var(--space-5);
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.5s ease forwards;
}

/* ===== BRAND CARD SWATCHES (LARGER VERSION) ===== */
.brand-card .color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  padding: var(--space-6) 0;
  max-width: 100%;
  justify-items: center;
}

.brand-card .color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 100px;
}

.color-swatch:nth-child(2) { animation-delay: 0.08s; }
.color-swatch:nth-child(3) { animation-delay: 0.16s; }
.color-swatch:nth-child(4) { animation-delay: 0.24s; }
.color-swatch:nth-child(5) { animation-delay: 0.32s; }

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

.swatch-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px; /* Perfect squircle: 25% of width/height */
  border: none;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.swatch-circle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ===== BRAND CARD LARGER SWATCHES ===== */
.brand-card .swatch-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px; /* Perfect squircle: 25% of width/height */
  border: none;
  box-shadow: 
    0 3px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  flex-shrink: 0;
}

.brand-card .swatch-circle:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.swatch-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-card .swatch-role {
  bottom: -4px;
  right: -4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.swatch-circle:hover .swatch-role {
  opacity: 1;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.8;
  text-align: center;
}

.brand-card .swatch-hex {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: var(--space-1);
}

.swatch-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-2);
}

.swatch-name {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;
}

.brand-card .swatch-name {
  font-size: var(--text-sm);
  font-weight: 600;
  max-width: 90px;
  margin-top: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== MOLTEN CARD VARIANTS ===== */
.molten-card-premium {
  position: relative;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, 
    rgba(255, 90, 42, 0.05) 0%,
    rgba(255, 215, 0, 0.03) 25%,
    rgba(184, 115, 51, 0.04) 50%,
    rgba(255, 90, 42, 0.06) 100%);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(255, 90, 42, 0.1),
    0 0 40px rgba(255, 215, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 90, 42, 0.2);
  padding: var(--space-6);
  margin: var(--space-4) 0;
}

.molten-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg,
    var(--forge-ember) 0%,
    var(--forge-gold) 25%,
    transparent 50%,
    var(--forge-copper) 75%,
    var(--forge-ember) 100%);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0.6;
  animation: moltenFlow 8s ease-in-out infinite;
}

.molten-card-premium::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(10, 10, 10, 0.95);
  border-radius: calc(var(--border-radius-xl) - 2px);
  backdrop-filter: blur(20px);
}

.molten-card-premium > * {
  position: relative;
  z-index: 1;
}

.molten-swatch-container {
  position: relative;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(135deg, 
    rgba(255, 90, 42, 0.02) 0%,
    rgba(255, 215, 0, 0.01) 50%,
    rgba(184, 115, 51, 0.02) 100%);
  backdrop-filter: blur(16px);
  overflow: hidden;
  padding: var(--space-5);
}

.molten-swatch-container::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg,
    var(--forge-ember) 0%,
    var(--forge-gold) 50%,
    var(--forge-copper) 100%);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0.3;
}

.molten-swatch-container::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(10, 10, 10, 0.90);
  border-radius: calc(var(--border-radius-xl) - 1px);
  backdrop-filter: blur(15px);
}

.molten-swatch-container > * {
  position: relative;
  z-index: 1;
}

/* ===== ENHANCED FORM STYLES ===== */
.form-container-streamlined {
  max-width: 900px;
  margin: 0 auto;
}

.form-header-clean {
  text-align: center;
  margin-bottom: var(--space-8);
}

.form-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 768px) {
  .form-field-group {
    grid-template-columns: 1fr;
  }
}

.form-field-modern {
  position: relative;
}

.form-label-clean {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.25px;
}

.form-input-clean,
.form-select-clean {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.form-input-clean:focus,
.form-select-clean:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px rgba(255, 90, 42, 0.15),
    0 8px 24px rgba(255, 90, 42, 0.1);
  transform: translateY(-1px);
}

.form-input-clean::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-field-optional .optional-tag {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.8;
}

.form-actions-clean {
  text-align: center;
  margin-top: var(--space-8);
}

.form-actions-clean .form-hint {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ===== MODERN BRAND CARD ENHANCEMENT ===== */
.brand-preview-card-modern {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.preview-header-enhanced {
  text-align: center;
  margin-bottom: var(--space-8);
  padding: var(--space-6) var(--space-4);
  background: linear-gradient(135deg, 
    rgba(255, 90, 42, 0.05) 0%, 
    rgba(255, 215, 0, 0.05) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-card {
  padding: var(--space-6);
}

.brand-header {
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.brand-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.9;
}

.brand-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-subtle);
}

.brand-detail {
  text-align: center;
}

.brand-detail-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.brand-detail-value {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 600;
}

.brand-bio {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-lg);
  border-left: 4px solid var(--accent-primary);
}

/* ===== LOGO UPLOAD ENHANCEMENT ===== */
.logo-upload-modern {
  margin: var(--space-6) 0;
}

.logo-drop-zone-clean {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.logo-drop-zone-clean:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 90, 42, 0.05);
  transform: translateY(-2px);
}

.logo-drop-zone-clean input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-content {
  pointer-events: none;
}

.drop-icon-minimal {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.drop-text-clean {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.drop-subtext-clean {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ===== BUSINESS EXPANDER ENHANCEMENT ===== */
.expander-form {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.expander-form input,
.expander-form select {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.expander-form input:focus,
.expander-form select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 90, 42, 0.15);
}

.expander-form input::placeholder {
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-2);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-subtle);
}

.tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

/* ===== ACTIONS SECTION ENHANCEMENT ===== */
.actions-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.download-actions,
.share-section {
  margin-bottom: var(--space-6);
}

.actions-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
  .download-buttons {
    grid-template-columns: 1fr;
  }
}

.share-input-group {
  display: flex;
  gap: var(--space-3);
  max-width: 600px;
  margin: 0 auto;
}

.share-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .share-input-group {
    flex-direction: column;
  }
}

/* ===== MOLTEN BUTTON ENHANCEMENTS ===== */
.btn-ember {
  position: relative;
  background: linear-gradient(135deg, 
    var(--forge-ember) 0%, 
    var(--forge-gold) 100%);
  border: none;
  box-shadow: 
    0 4px 16px rgba(255, 90, 42, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.btn-ember::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2) 0%, 
    transparent 50%, 
    rgba(184, 115, 51, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ember:hover::before {
  opacity: 1;
}

.btn-ember:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(255, 90, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline-gold {
  position: relative;
  border: 2px solid var(--forge-gold);
  background: rgba(255, 215, 0, 0.05);
  color: var(--forge-gold);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(255, 90, 42, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-outline-gold:hover {
  transform: translateY(-1px);
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--forge-ember);
  color: white;
  box-shadow: 
    0 4px 16px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline-gold:hover::before {
  opacity: 1;
}

/* ===== MOLTEN FORM ENHANCEMENTS ===== */
.form-input-clean:focus,
.form-select-clean:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 4px rgba(255, 90, 42, 0.15),
    0 8px 24px rgba(255, 90, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ===== MOLTEN LOGO UPLOAD ENHANCEMENT ===== */
.logo-drop-zone-clean:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 90, 42, 0.05);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(255, 90, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== HISTORY COLOR SWATCHES ===== */
.history-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: none;
  display: inline-block;
  margin-right: var(--space-1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.history-color-swatch:hover {
  transform: scale(1.1);
}

/* ===== HISTORY ITEMS ENHANCEMENT ===== */
.history-item {
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.4s ease forwards;
}

.history-item:nth-child(2) { animation-delay: 0.1s; }
.history-item:nth-child(3) { animation-delay: 0.2s; }
.history-item:nth-child(4) { animation-delay: 0.3s; }
.history-item:nth-child(5) { animation-delay: 0.4s; }

.kit-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kit-preview.clickable {
  cursor: pointer;
}

.kit-preview.clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 90, 42, 0.02) 0%, 
    rgba(255, 215, 0, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kit-preview.clickable:hover {
  transform: translateX(4px);
  border-color: rgba(255, 90, 42, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 90, 42, 0.1);
}

.kit-preview.clickable:hover::before {
  opacity: 1;
}

.kit-preview.active {
  border-color: rgba(255, 90, 42, 0.4);
  background: rgba(255, 90, 42, 0.05);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 90, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kit-preview.active::after {
  content: '●';
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  color: var(--forge-ember);
  font-size: 8px;
  opacity: 0.8;
}

.kit-main-info {
  flex: 1;
  min-width: 0;
}

.kit-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.kit-snippet {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.kit-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.8;
}

.kit-color-preview {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  flex-shrink: 0;
}

.kit-actions {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  text-align: right;
}

/* ===== PNG USAGE INDICATORS ===== */
.usage-indicator {
  font-size: var(--text-xs);
  opacity: 0.7;
  font-weight: 400;
  margin-left: var(--space-1);
}

.btn-locked {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-muted) !important;
  border-color: var(--border-muted) !important;
}

.btn-locked:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ===== BUSINESS EXPANDER STYLES ===== */
.mt-6 { margin-top: 1.5rem; }
.error { color: #ff5252; }
/* Password Requirements Styling */
.password-requirements {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.req-item.valid {
  opacity: 1;
  color: #22c55e;
}

.req-item.invalid {
  opacity: 0.6;
  color: var(--color-text-muted);
}

.req-icon {
  font-size: 0.75rem;
}

/* Checkbox Group Styling */
.checkbox-group {
  margin: 1rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  opacity: 0;
  position: absolute;
}

.checkmark {
  min-width: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  color: var(--color-text);
}

.link-primary {
  color: var(--accent-primary);
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

/* =========================================================
   Forge & Foundry — Design Consistency Additions
   (typography modifiers, timeline, section headers)
   ========================================================= */

/* Typography modifiers (normalize premium variants) */
.hero-title--premium {
  font-size: clamp(2.25rem, 3.2vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-lead--premium {
  opacity: .92;
  font-size: clamp(1.1rem, 0.6vw + .9rem, 1.4rem);
}
.eyebrow--premium {
  color: var(--forge-ember);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Section header system */
.section-header { text-align:left; margin-bottom: 1.25rem; }
.section-header--center { text-align:center; }
.section-sub { color: var(--text-muted); font-size: 1rem; }

/* Timeline (tokenized) */
.live-timeline-enhanced { margin-top: 4rem; position: relative; }
.timeline-progress-container { display:flex; align-items:center; margin-bottom:3rem; position:relative; }
.timeline-nav-btn {
  background: color-mix(in oklab, var(--forge-ember) 15%, transparent);
  border: 2px solid var(--forge-ember);
  border-radius: 50%;
  width: 40px; height: 40px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.timeline-nav-btn:hover { transform: translateY(-2px); }
.timeline-nav-btn span { color: var(--forge-ember); font-size: 1.2rem; line-height: 1; }
.timeline-track {
  flex:1; height: 6px; background: rgba(255,255,255,.1);
  border-radius: 3px; position: relative; overflow: hidden;
}
.timeline-progress {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--forge-ember), color-mix(in oklab, var(--forge-ember) 25%, transparent));
  border-radius: inherit; width: 0%;
}
.timeline-dots { display: flex; justify-content: space-between; margin-top: .75rem; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.timeline-dot.active { background: var(--forge-ember); }

/* Minor utilities for gaps (replacing old inline margins) */
.mr-1rem { margin-right: 1rem; }
.ml-1rem { margin-left: 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline-nav-btn, .hero-title, .fade-up {
    transition: none !important;
    animation: none !important;
  }
}
