/* ===== ProposeAI Landing Page Styles ===== */
:root {
  --pai-brand: #4318FF;
  --pai-brand-dark: #3311CC;
  --pai-brand-light: #6C5CE7;
  --pai-dark: #0f0f23;
  --pai-dark-2: #1a1a3e;
  --pai-gray-50: #f8fafc;
  --pai-gray-100: #f1f5f9;
  --pai-gray-200: #e2e8f0;
  --pai-gray-400: #94a3b8;
  --pai-gray-500: #64748b;
  --pai-gray-600: #475569;
  --pai-gray-700: #334155;
  --pai-gray-800: #1e293b;
  --pai-gray-900: #0f172a;
  --pai-radius: 16px;
  --pai-radius-sm: 12px;
  --pai-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --pai-shadow-lg: 0 20px 60px rgba(67,24,255,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--pai-gray-800); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Container */
.pai-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.pai-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.04); transition: all .3s; }
.pai-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.pai-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--pai-gray-900); }
.pai-logo-icon { width: 36px; height: 36px; background: var(--pai-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; border-radius: 10px; }
.pai-nav-links { display: flex; gap: 32px; }
.pai-nav-links a { font-size: 14px; font-weight: 600; color: var(--pai-gray-600); transition: color .2s; }
.pai-nav-links a:hover { color: var(--pai-brand); }
.pai-nav-actions { display: flex; align-items: center; gap: 12px; }
.pai-mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--pai-gray-700); }

/* Buttons */
.pai-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; background: var(--pai-brand); color: #fff; font-weight: 700; font-size: 15px; border-radius: var(--pai-radius-sm); border: none; cursor: pointer; transition: all .25s ease; box-shadow: 0 8px 24px rgba(67,24,255,0.3); }
.pai-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(67,24,255,0.4); background: var(--pai-brand-dark); color: #fff; }
.pai-btn-primary-sm { display: inline-flex; align-items: center; padding: 10px 20px; background: var(--pai-brand); color: #fff; font-weight: 700; font-size: 13px; border-radius: 10px; transition: all .2s; }
.pai-btn-primary-sm:hover { background: var(--pai-brand-dark); color: #fff; }
.pai-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; background: transparent; color: var(--pai-gray-700); font-weight: 700; font-size: 15px; border-radius: var(--pai-radius-sm); border: 2px solid var(--pai-gray-200); cursor: pointer; transition: all .25s ease; }
.pai-btn-outline:hover { border-color: var(--pai-brand); color: var(--pai-brand); }
.pai-btn-ghost { font-size: 14px; font-weight: 600; color: var(--pai-gray-600); padding: 8px 16px; border-radius: 8px; transition: all .2s; }
.pai-btn-ghost:hover { color: var(--pai-brand); background: rgba(67,24,255,0.06); }
.pai-btn-full { width: 100%; }

/* ===== HERO ===== */
.pai-hero { padding: 160px 0 100px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--pai-gray-50) 100%); }
.pai-hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, rgba(67,24,255,0.08) 0%, transparent 70%); pointer-events: none; }
.pai-hero-glow-2 { position: absolute; top: 100px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(108,92,231,0.06) 0%, transparent 70%); pointer-events: none; }
.pai-hero-inner { position: relative; z-index: 2; }
.pai-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(67,24,255,0.08); color: var(--pai-brand); font-size: 13px; font-weight: 700; border-radius: 50px; margin-bottom: 28px; border: 1px solid rgba(67,24,255,0.15); }
.pai-hero-title { font-size: clamp(36px, 5.5vw, 68px); font-weight: 900; line-height: 1.1; color: var(--pai-gray-900); margin-bottom: 24px; letter-spacing: -0.03em; }
.pai-gradient-text { background: linear-gradient(135deg, var(--pai-brand) 0%, #a855f7 50%, #ec4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pai-hero-subtitle { font-size: 18px; color: var(--pai-gray-500); max-width: 580px; margin: 0 auto 40px; font-weight: 500; line-height: 1.7; }
.pai-hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }

/* Hero Stats */
.pai-hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.pai-stat-value { font-size: 28px; font-weight: 900; color: var(--pai-gray-900); }
.pai-stat-label { font-size: 13px; color: var(--pai-gray-500); font-weight: 600; margin-top: 2px; }
.pai-stat-divider { width: 1px; height: 40px; background: var(--pai-gray-200); }

/* ===== SECTIONS ===== */
.pai-section { padding: 100px 0; }
.pai-section-dark { background: var(--pai-dark); }
.pai-section-gray { background: var(--pai-gray-50); }
.pai-section-header { text-align: center; margin-bottom: 60px; }
.pai-section-badge { display: inline-block; padding: 6px 16px; background: rgba(67,24,255,0.1); color: var(--pai-brand); font-size: 12px; font-weight: 800; border-radius: 50px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.pai-section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.15; color: var(--pai-gray-900); letter-spacing: -0.02em; }
.pai-section-desc { font-size: 16px; color: var(--pai-gray-500); max-width: 520px; margin: 16px auto 0; font-weight: 500; }

/* ===== FEATURES ===== */
.pai-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pai-feature-card { background: #fff; border: 1px solid var(--pai-gray-100); border-radius: var(--pai-radius); padding: 32px; transition: all .3s ease; }
.pai-feature-card:hover { transform: translateY(-4px); box-shadow: var(--pai-shadow-lg); border-color: transparent; }
.pai-feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.pai-feature-card h3 { font-size: 18px; font-weight: 800; color: var(--pai-gray-900); margin-bottom: 10px; }
.pai-feature-card p { font-size: 14px; color: var(--pai-gray-500); font-weight: 500; line-height: 1.7; }

/* ===== HOW IT WORKS ===== */
.pai-steps { display: flex; align-items: flex-start; justify-content: center; gap: 20px; }
.pai-step { flex: 1; max-width: 300px; text-align: center; }
.pai-step-number { width: 56px; height: 56px; background: linear-gradient(135deg, var(--pai-brand), var(--pai-brand-light)); color: #fff; font-size: 22px; font-weight: 900; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(67,24,255,0.3); }
.pai-step h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.pai-step p { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; line-height: 1.7; }
.pai-step-arrow { font-size: 28px; color: rgba(255,255,255,0.2); margin-top: 20px; font-weight: 300; }

/* ===== PRICING ===== */
.pai-pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.pai-pricing-card { background: #fff; border: 2px solid var(--pai-gray-100); border-radius: 20px; padding: 40px 32px; position: relative; transition: all .3s ease; }
.pai-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--pai-shadow); }
.pai-pricing-featured { border-color: var(--pai-brand); box-shadow: var(--pai-shadow-lg); }
.pai-pricing-badge { position: absolute; top: -14px; right: 24px; background: var(--pai-brand); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 14px; border-radius: 50px; letter-spacing: 1px; }
.pai-pricing-name { font-size: 14px; font-weight: 800; color: var(--pai-brand); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.pai-pricing-price { font-size: 48px; font-weight: 900; color: var(--pai-gray-900); margin-bottom: 4px; }
.pai-pricing-price span { font-size: 16px; font-weight: 500; color: var(--pai-gray-400); }
.pai-pricing-desc { font-size: 14px; color: var(--pai-gray-500); font-weight: 500; margin-bottom: 28px; }
.pai-pricing-features { list-style: none; margin-bottom: 32px; }
.pai-pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--pai-gray-700); padding: 8px 0; }

/* ===== FAQ ===== */
.pai-faq-list { max-width: 700px; margin: 0 auto; }
.pai-faq-item { border-bottom: 1px solid var(--pai-gray-200); }
.pai-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--pai-gray-800); text-align: left; font-family: inherit; transition: color .2s; }
.pai-faq-q:hover { color: var(--pai-brand); }
.pai-faq-q svg { transition: transform .3s; flex-shrink: 0; margin-left: 16px; }
.pai-faq-a { max-height: 0; overflow: hidden; font-size: 14px; color: var(--pai-gray-500); font-weight: 500; line-height: 1.7; transition: all .3s ease; }
.pai-faq-item.open .pai-faq-a { max-height: 200px; padding-bottom: 20px; }
.pai-faq-item.open .pai-faq-q svg { transform: rotate(180deg); }

/* ===== AUTH SECTION ===== */
.pai-auth-card { background: var(--pai-dark-2); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 48px 40px; text-align: center; box-shadow: 0 32px 64px rgba(0,0,0,0.3); }
.pai-auth-title { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.pai-auth-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 500; margin-bottom: 32px; }

/* Form */
.pai-form-group { margin-bottom: 16px; text-align: left; }
.pai-form-group label { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.pai-form-group input { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 15px; font-weight: 500; outline: none; transition: all .2s; font-family: inherit; }
.pai-form-group input::placeholder { color: rgba(255,255,255,0.25); }
.pai-form-group input:focus { border-color: var(--pai-brand); background: rgba(67,24,255,0.08); }
.pai-form-error { color: #f43f5e; font-size: 13px; font-weight: 600; margin-top: 12px; min-height: 20px; }

/* Auth Divider */
.pai-auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.pai-auth-divider::before, .pai-auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.pai-auth-divider span { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.pai-auth-switch { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 20px; font-weight: 500; }
.pai-auth-switch a { color: var(--pai-brand-light); font-weight: 700; }
.pai-auth-switch a:hover { color: #fff; }
.pai-auth-resend { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 16px; font-weight: 500; }
.pai-auth-resend a { color: var(--pai-brand-light); font-weight: 700; cursor: pointer; }

/* Verification Code Inputs */
.pai-verify-icon { font-size: 48px; margin-bottom: 16px; }
.pai-verify-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.pai-verify-desc { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 28px; font-weight: 500; }
.pai-code-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }
.pai-code-digit { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 800; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12); border-radius: 14px; color: #fff; outline: none; transition: all .2s; font-family: 'Inter', monospace; }
.pai-code-digit:focus { border-color: var(--pai-brand); background: rgba(67,24,255,0.1); }

/* Spinner */
.pai-spinner { display: none; animation: pai-spin 0.8s linear infinite; }
@keyframes pai-spin { to { transform: rotate(360deg); } }
.pai-btn-primary.loading .pai-spinner { display: inline; }
.pai-btn-primary.loading span { opacity: 0.5; }

/* Social Login Override */
.pai-social-login { margin-bottom: 8px; }
.pai-social-login .nsl-container { display: flex !important; justify-content: center !important; }

/* ===== FOOTER ===== */
.pai-footer { background: var(--pai-gray-900); padding: 48px 0 0; }
.pai-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pai-footer-left p { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 12px; font-weight: 500; max-width: 280px; }
.pai-footer-left .pai-logo-text { color: #fff; }
.pai-footer-right { display: flex; gap: 28px; }
.pai-footer-right a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5); transition: color .2s; }
.pai-footer-right a:hover { color: #fff; }
.pai-footer-bottom { padding: 20px 0; }
.pai-footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 500; }

/* ===== LOGIN MODAL ===== */
.pai-modal-overlay { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.6); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); align-items:center; justify-content:center; padding:24px; }
.pai-modal-overlay.open { display:flex; animation: pai-fadein .25s ease; }
.pai-modal-card { background:var(--pai-dark-2); border:1px solid rgba(255,255,255,0.08); border-radius:24px; padding:48px 40px; max-width:440px; width:100%; position:relative; text-align:center; box-shadow:0 32px 64px rgba(0,0,0,0.4); animation: pai-slideup .3s ease; }
.pai-modal-close { position:absolute; top:16px; right:20px; background:none; border:none; color:rgba(255,255,255,0.4); font-size:28px; cursor:pointer; line-height:1; transition:color .2s; }
.pai-modal-close:hover { color:#fff; }
.pai-modal-icon { font-size:40px; margin-bottom:12px; }
@keyframes pai-fadein { from { opacity:0; } to { opacity:1; } }
@keyframes pai-slideup { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pai-features-grid { grid-template-columns: repeat(2, 1fr); }
  .pai-pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pai-steps { flex-direction: column; align-items: center; }
  .pai-step-arrow { transform: rotate(90deg); margin: 0; }
  .pai-nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border-top: 1px solid var(--pai-gray-100); }
  .pai-nav-links.open { display: flex; }
  .pai-mobile-toggle { display: block; }
  .pai-nav-actions { gap: 8px; }
  .pai-btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .pai-features-grid { grid-template-columns: 1fr; }
  .pai-hero { padding: 120px 0 60px; }
  .pai-hero-title { font-size: 32px; }
  .pai-hero-stats { gap: 20px; }
  .pai-stat-divider { display: none; }
  .pai-auth-card { padding: 32px 20px; }
  .pai-code-digit { width: 44px; height: 52px; font-size: 20px; }
  .pai-footer-inner { flex-direction: column; gap: 24px; }
}
