/* PromptUp — Global Styles v2 */
:root {
  --bg: #FBF5ED;
  --bg-warm: #F7EDDF;
  --bg-accent: #F2E6D4;
  --surface: #FFFFFF;
  --border: #F0E6D9;
  --border-light: #F5EFE7;
  --text: #1E1B18;
  --text-secondary: #44403C;
  --text-muted: #9C8E82;
  --primary: #F97316;
  --primary-hover: #EA580C;
  --primary-light: #FFEDD5;
  --primary-soft: rgba(249, 115, 22, 0.1);
  --accent: #E85D04;
  --success: #16A34A;
  --error: #DC2626;
  --gradient: linear-gradient(135deg, #F97316, #FB923C);
  --shadow-sm: 0 1px 3px rgba(140, 120, 100, 0.08);
  --shadow: 0 4px 16px rgba(140, 120, 100, 0.1);
  --shadow-lg: 0 8px 32px rgba(140, 120, 100, 0.12);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* --- Shader Hero --- */
.shader-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

#shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.shader-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shader-nav { width: 100%; }
.shader-nav .nav-logo { color: #fff; flex-shrink: 0; }
.shader-nav .nav-links a { color: rgba(255,255,255,0.75); }
.shader-nav .nav-links a:hover { color: #fff; }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.shader-hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 80px;
}

.shader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(249,115,22,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 40px;
  font-size: 14px;
  color: rgba(255,237,213,0.9);
  margin-bottom: 32px;
  animation: shader-fade-down 0.8s ease-out both;
}

.shader-h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.shader-line1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #fdba74, #facc15, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shader-fade-up 0.8s ease-out 0.2s both;
}

.shader-line2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(to right, #fcd34d, #fb923c, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shader-fade-up 0.8s ease-out 0.4s both;
}

.shader-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: rgba(255,237,213,0.85);
  max-width: 640px;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 40px;
  animation: shader-fade-up 0.8s ease-out 0.6s both;
}

.shader-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: shader-fade-up 0.8s ease-out 0.8s both;
}

.btn-shader-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, #f97316, #eab308);
  color: #000;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 24px rgba(249,115,22,0.3);
  transition: all 0.3s ease;
}
.btn-shader-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(249,115,22,0.4);
}

.btn-shader-secondary {
  padding: 14px 32px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  color: rgba(255,237,213,0.95);
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.btn-shader-secondary:hover {
  background: rgba(249,115,22,0.2);
  border-color: rgba(249,115,22,0.5);
  transform: translateY(-2px) scale(1.03);
}

@keyframes shader-fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shader-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Legacy hero-buttons (used in CTA section) --- */
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Demo Video --- */
.demo-video {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- How It Works --- */
.section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-accent);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* --- Pricing --- */
.pricing-section {
  background: var(--bg-warm);
  padding: 80px 0;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  margin: 16px 0 8px;
  color: var(--text);
}
.pricing-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.pricing-features {
  list-style: none;
  margin: 24px 0;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
  align-items: center;
}
.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Install Section --- */
.install-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}
.install-btn {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: 14px;
  gap: 10px;
}
.install-btn svg { flex-shrink: 0; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0 0;
  color: white;
}
.cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}
.cta-banner .btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
}
.cta-banner .btn:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Web App --- */
.app-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 0 24px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.app-card h2 { margin-bottom: 20px; color: var(--text); }
.textarea-wrap { margin-bottom: 16px; }
.textarea-wrap label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.textarea-wrap textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.15s;
}
.textarea-wrap textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.select-wrap select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 16px;
}
.select-wrap select:focus {
  outline: none;
  border-color: var(--primary);
}
.app-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.copy-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--bg-accent); }

/* --- Auth Pages --- */
.auth-container {
  max-width: 420px;
  margin: 100px auto;
  padding: 0 24px;
  text-align: center;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin-bottom: 8px; color: var(--text); }
.auth-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.auth-card input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* --- Dashboard --- */
.dashboard {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 24px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.dash-card h3 { margin-bottom: 16px; color: var(--text); }
.tier-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.tier-free { background: var(--bg-warm); color: var(--text-muted); }
.tier-plus { background: var(--primary-light); color: var(--primary); }
.tier-pro { background: #FEF3C7; color: #B45309; }
.usage-bar {
  height: 8px;
  background: var(--bg-accent);
  border-radius: 4px;
  margin: 12px 0;
  overflow: hidden;
}
.usage-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.3s;
}
.usage-text { font-size: 14px; color: var(--text-muted); }

/* --- Glowing Effect --- */
.glow-card {
  position: relative;
  overflow: visible;
}

.glow-border {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  --start: 0;
  --spread: 40;
  --active: 0;
  --glow-border-width: 3px;
}

.glow-border::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--glow-border-width));
  border: var(--glow-border-width) solid transparent;
  border-radius: inherit;
  background:
    radial-gradient(circle, #dd7bbb 10%, transparent 20%),
    radial-gradient(circle at 40% 40%, #d79f1e 5%, transparent 15%),
    radial-gradient(circle at 60% 60%, #5a922c 10%, transparent 20%),
    radial-gradient(circle at 40% 60%, #4c7894 10%, transparent 20%),
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #dd7bbb 0%,
      #d79f1e 5%,
      #5a922c 10%,
      #4c7894 15%,
      #dd7bbb 20%
    );
  background-attachment: fixed;
  opacity: var(--active);
  transition: opacity 0.3s ease;
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
  -webkit-mask-image:
    linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #00000000 0deg,
      #fff,
      #00000000 calc(var(--spread) * 2deg)
    );
}

.glow-card:hover .glow-border {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .nav-links { gap: 14px; }
  .section { padding: 48px 0; }
  .cta-banner { padding: 40px 24px; border-radius: 16px; }
  .pricing-section { margin: 0; }
}
