/* /public/css/landing.css — Premium public pages */

/* ---------- ONE HEADER ---------- */
.pub-header {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px;
  background: var(--bg-secondary);
  background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.pub-header::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--accent), transparent); }
.pub-brand { font-size: 22px; font-weight: 800; text-decoration: none; }
.pub-nav { display: flex; gap: 18px; }
.pub-nav a { color: var(--text-secondary); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color .15s; }
.pub-nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .pub-nav { display: none; } }
.pub-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: 13px; background: transparent; transition: .15s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-prim { padding: 9px 18px; border-radius: 12px; background: linear-gradient(90deg, var(--accent), #4338ca); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; box-shadow: 0 6px 18px var(--accent-glow); transition: .15s; }
.btn-prim:hover { transform: translateY(-1px); }

/* ---------- HERO + ORBS ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 20px 70px; text-align: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; animation: floatOrb 12s ease-in-out infinite alternate; pointer-events: none; }
.orb1 { width: 420px; height: 420px; background: var(--accent); top: -140px; left: -120px; }
.orb2 { width: 380px; height: 380px; background: #4338ca; bottom: -140px; right: -100px; animation-delay: 3s; }
@keyframes floatOrb { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.15); } }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; margin: 0 0 18px; font-weight: 900; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), #7c3aed); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { max-width: 640px; margin: 0 auto 30px; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-big { padding: 14px 26px; border-radius: 14px; font-weight: 800; font-size: 15px; text-decoration: none; transition: .2s; }
.cta-primary { background: linear-gradient(90deg, var(--accent), #4338ca); color: #fff; box-shadow: 0 10px 30px var(--accent-glow); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--accent-glow); }
.cta-outline { border: 1px solid var(--border); color: var(--text-primary); background: var(--bg-secondary); }
.cta-outline:hover { border-color: var(--accent); color: var(--accent); }

.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; max-width: 900px; margin: 44px auto 0; }
.stat-tile { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stat-num { font-size: 26px; font-weight: 900; color: var(--accent); }
.stat-cap { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; }

/* ---------- SECTIONS ---------- */
.section { padding: 70px 20px; max-width: 1040px; margin: 0 auto; }
.section h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; text-align: center; margin-bottom: 12px; }
.section .sub { text-align: center; color: var(--text-secondary); margin-bottom: 40px; font-size: 14px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: .2s; }
.feat-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.feat-icon { font-size: 26px; margin-bottom: 12px; }
.feat-card h3 { font-size: 16px; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 18px; padding: 30px 20px 20px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -16px; left: 18px; background: linear-gradient(90deg, var(--accent), #4338ca); color: #fff; font-weight: 900; padding: 6px 12px; border-radius: 10px; font-size: 13px; }
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- PUBLIC FOOTER ---------- */
.pub-footer { border-top: 1px solid var(--border); background: var(--bg-secondary); padding: 34px 20px; margin-top: 60px; }
.pf-inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.pf-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pf-links a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.pf-links a:hover { color: var(--accent); }
.pf-copy { color: var(--text-muted); font-size: 12px; }

/* ---------- FLIP AUTH CARD ---------- */
.auth-stage { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 30px 16px 90px; position: relative; overflow: hidden; }
.flip-scene { perspective: 1800px; width: min(94vw, 460px); position: relative; z-index: 2; }
.flip-card { position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.25,.8,.25,1); height: 680px; }
.flip-card.flipped { transform: rotateY(180deg); }
@media (max-height: 800px) { .flip-card { height: 660px; } }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--bg-secondary);
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 26px 24px; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
}
.flip-face.back { transform: rotateY(180deg); }
.face-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.face-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.flip-switch { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.flip-switch a { color: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.role-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.role-seg button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-secondary); font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.role-seg button.active { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.chip-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 150px; overflow-y: auto; margin-bottom: 14px; }
.chip2 { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; }
.chip2 input { width: auto; }
.ref-badge { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); border-radius: 12px; padding: 8px 12px; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.f-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.f-input { width: 100%; padding: 12px 13px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); margin-bottom: 14px; font-size: 14px; }
.f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ---------- LEGAL PAGES ---------- */
.legal-hero { padding: 70px 20px 30px; text-align: center; position: relative; overflow: hidden; }
.legal-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin-bottom: 8px; }
.legal-hero .upd { color: var(--text-muted); font-size: 13px; }
.legal-body { max-width: 820px; margin: 0 auto; padding: 10px 20px 60px; }
.legal-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; }
.legal-card h2 { font-size: 18px; margin: 26px 0 10px; color: var(--accent); }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--text-secondary); font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.legal-card ul { padding-left: 20px; }
.disclaimer-box { background: var(--error-bg); border: 1px solid var(--error); color: var(--error); border-radius: 14px; padding: 16px; font-weight: 600; font-size: 13.5px; margin-bottom: 20px; }
