/* =============================================================
   Plenity Landing — Shared design system
   ============================================================= */

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

:root {
  --bg: #0B0B12;
  --bg-elev: #12131C;
  --bg-elev-2: #181926;
  --text: #F5F5F7;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --primary: #7C3AED;
  --primary-hover: #8B4BF3;
  --primary-soft: rgba(124,58,237,0.12);
  --primary-glow: rgba(124,58,237,0.35);
  --accent-magenta: #C026D3;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

/* ===== HEADER ===== */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,11,18,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
header.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-magenta) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px var(--primary-glow);
}
.brand-mark svg { width: 16px; height: 16px; color: white; }

nav.main-nav { display: flex; align-items: center; gap: 22px; }
nav.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s; white-space: nowrap;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }

.header-buttons { display: flex; gap: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; font-family: inherit;
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); color: var(--text); border-color: var(--border-strong); }
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 2px 12px -2px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px var(--primary-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-large { padding: 16px 32px; font-size: 16px; border-radius: 12px; font-weight: 700; }
.btn-block { display: flex; width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: 168px 0 120px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(124,58,237,0.22) 0%,
    rgba(192,38,211,0.10) 30%,
    transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; top: 80%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid rgba(124,58,237,0.25);
  font-size: 13px; font-weight: 500; color: #C4B5FD;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 800;
  line-height: 1.08; margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 920px; margin-left: auto; margin-right: auto;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #A78BFA 0%, #E879F9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 18px; color: var(--text-muted); max-width: 760px;
  margin: 0 auto 40px; line-height: 1.65;
}
.hero-cta { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-note {
  font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px;
}
.hero-note svg { width: 14px; height: 14px; }

/* Compact hero variant for inner pages */
.hero.hero-compact { padding: 144px 0 80px; }
.hero.hero-compact h1 { font-size: clamp(30px, 4.4vw, 50px); }
.hero.hero-compact p.lead { font-size: 17px; margin-bottom: 32px; }

/* ===== SECTION ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-header p {
  font-size: 17px; color: var(--text-muted); max-width: 760px; margin: 0 auto;
  line-height: 1.6;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ===== ADVANTAGES (8 cards) ===== */
.advantages-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.adv-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.25s;
  position: relative;
}
.adv-card:hover {
  border-color: rgba(124,58,237,0.35);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px var(--primary-glow);
}
.adv-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--primary);
}
.adv-icon svg { width: 22px; height: 22px; }
.adv-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.adv-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Soon-badge — outlined, gray (per UX designer recommendation) */
.soon-badge {
  display: inline-block; margin-top: 10px;
  padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-strong);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ===== PROBLEMS ===== */
.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.prob-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: all 0.25s;
}
.prob-card:hover {
  border-color: rgba(239,68,68,0.3);
  background: var(--bg-elev-2);
}
.prob-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--danger);
  margin-bottom: 16px;
}
.prob-icon svg { width: 20px; height: 20px; }
.prob-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.prob-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===== FEATURES (system process — 9 cards, fixed 3-col grid) ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feat-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px;
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.feat-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px var(--primary-glow);
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.feat-card .feat-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 13px; font-weight: 600;
  color: var(--primary); transition: gap 0.2s;
}
.feat-card .feat-cta:hover { gap: 10px; }
.feat-card .feat-cta svg { width: 14px; height: 14px; }

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== TEAM COMPARISON ("One Plenity instead of a team") ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  position: relative;
  transition: all 0.25s;
}
.team-card:hover { border-color: rgba(124,58,237,0.3); background: var(--bg-elev-2); }
.team-card .role-line {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.team-card .role-strike {
  flex: 1; height: 1px; background: var(--border);
  position: relative;
}
.team-card h3 {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.5);
  text-decoration-thickness: 2px;
}
.team-card .salary {
  display: inline-block;
  font-size: 13px; color: var(--text-dim);
  padding: 3px 10px; border-radius: 999px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.18);
  margin-bottom: 14px;
}
.team-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(124,58,237,0.3); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform 0.25s;
  margin-bottom: 2px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 5px; margin-bottom: 0; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
}
.faq-item .faq-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.faq-item .faq-body a:hover { color: var(--primary-hover); }

/* ===== FINAL CTA ===== */
.final-cta { padding: 120px 0 140px; text-align: center; position: relative; }
.final-cta::before {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 820px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.18) 0%, transparent 65%);
}
.final-cta-box {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(192,38,211,0.05) 100%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 24px; padding: 72px 48px;
  max-width: 900px; margin: 0 auto;
}
.final-cta-box h2 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 28px;
}
.final-cta-points {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.final-cta-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--text-muted);
  list-style: none;
}
.final-cta-points li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ===== "Learn more about full functionality" block (reused on inner pages) ===== */
.learn-more-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.learn-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 22px;
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.learn-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -24px var(--primary-glow);
}
.learn-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.learn-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.learn-card .btn { align-self: flex-start; width: auto; padding: 10px 18px; font-size: 13px; }

/* ===== Inner page — "How it works" steps (numbered counter, single column) ===== */
.split-rows {
  counter-reset: step;
  display: flex; flex-direction: column; gap: 56px;
  max-width: 760px; margin: 0 auto;
}
.split-row {
  counter-increment: step;
  display: block;
}
.split-row .text-side {
  padding-left: 32px;
  border-left: 2px solid var(--border);
  position: relative;
}
.split-row .text-side::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-feature-settings: "tnum";
}
.split-row .text-side h3 {
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2;
}
.split-row .text-side p {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 12px;
}
.split-row .text-side ul {
  list-style: none; padding: 0; margin-top: 14px;
}
.split-row .text-side ul li {
  padding-left: 24px; position: relative;
  font-size: 15px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 8px;
}
.split-row .text-side ul li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

@media (max-width: 860px) {
  .split-rows { gap: 48px; }
  .split-row .text-side { padding-left: 24px; }
}

/* ===== FOOTER ===== */
footer.site-footer {
  padding: 64px 0 56px; border-top: 1px solid var(--border);
  background: var(--bg);
}
footer.site-footer .container {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-col .footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.footer-brand-col .footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.footer-brand-col .footer-brand .brand-mark svg { width: 14px; height: 14px; }
.footer-brand-col p {
  font-size: 13px; color: var(--text-dim); line-height: 1.7; max-width: 320px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ===== STICKY MOBILE CTA (per UX designer) ===== */
.sticky-mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(11,11,18,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  animation: slideUp 0.3s ease-out;
}
.sticky-mobile-cta .btn { width: 100%; padding: 14px; font-size: 15px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ===== MOBILE ===== */
@media (max-width: 960px) {
  nav.main-nav { display: none; }
  .header-buttons .btn-ghost { display: none; }
  header.site-header .container { gap: 12px; }
  footer.site-footer .container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 860px) {
  .hero { padding: 128px 0 80px; }
  .hero.hero-compact { padding: 120px 0 60px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .final-cta-box { padding: 48px 24px; }
  .final-cta-points { flex-direction: column; align-items: center; gap: 12px; }
  /* show sticky CTA on mobile after scroll (JS-toggled) */
  .sticky-mobile-cta.visible { display: block; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-note { justify-content: center; }
  .container { padding: 0 16px; }
}
