/* SpiritFlow shared styles — all public pages */
:root {
  --sf-primary: #1D4ED8;
  --sf-secondary: #0F172A;
  --sf-accent: #10B981;
  --sf-bg: #F8FAFC;
  --sf-card: #ffffff;
  --sf-border: #E2E8F0;
  --sf-text: #0F172A;
  --sf-muted: #475569;
  --sf-radius: 16px;
  --sf-shadow: 0 12px 36px rgba(15,23,42,.07);
  --sf-shadow-lg: 0 20px 50px rgba(15,23,42,.1);
  --sf-transition: .25s cubic-bezier(.4,0,.2,1);
}

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--sf-secondary) 0%, var(--sf-primary) 100%);
  color: #F8FAFC;
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.platform-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 0 24px 0;
  filter: drop-shadow(0 8px 20px rgba(15,23,42,.2));
  transition: transform var(--sf-transition);
}
.platform-logo:hover { transform: scale(1.03); }
h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.lead {
  font-size: 17px;
  max-width: 560px;
  color: #DBEAFE;
  line-height: 1.75;
}

/* Trust strip */
.trust-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background var(--sf-transition), transform var(--sf-transition);
}
.trust-pill:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }

/* Hero points */
.hero-points { display: grid; gap: 14px; }
.hero-point {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--sf-radius);
  padding: 20px 22px;
  backdrop-filter: blur(4px);
  transition: transform var(--sf-transition), background var(--sf-transition), box-shadow var(--sf-transition);
}
.hero-point:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hero-point strong { font-size: 15px; display: block; margin-bottom: 4px; }
.hero-point div { color: #CBD5E1; font-size: 14px; line-height: 1.55; }

/* CTA row */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15px;
  transition: transform var(--sf-transition), box-shadow var(--sf-transition), background var(--sf-transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--sf-accent);
  color: #06281E;
  box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(16,185,129,.4); background: #0D9668; }
.btn-secondary {
  background: rgba(255,255,255,.12);
  color: #F8FAFC;
  border: 1px solid rgba(255,255,255,.18);
}
.btn-secondary:hover { background: rgba(255,255,255,.2); }
.btn-outline {
  background: transparent;
  color: var(--sf-primary);
  border: 2px solid var(--sf-primary);
}
.btn-outline:hover { background: var(--sf-primary); color: #fff; }

/* Cards */
.card {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 28px;
  box-shadow: var(--sf-shadow);
  transition: transform var(--sf-transition), box-shadow var(--sf-transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-lg);
}
.card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.card p { color: var(--sf-muted); margin: 0; line-height: 1.7; }

/* Feature cards with icons */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: #EFF6FF;
  color: var(--sf-primary);
}

/* Section label */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sf-primary);
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 17px;
  color: var(--sf-muted);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 0 32px;
}

/* Sections */
.section { padding: 64px 0; }
.section-muted {
  background: #EFF6FF;
  border-top: 1px solid #DBEAFE;
  border-bottom: 1px solid #DBEAFE;
}

/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Testimonials */
.testimonial {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 28px;
  box-shadow: var(--sf-shadow);
  position: relative;
  transition: transform var(--sf-transition), box-shadow var(--sf-transition);
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--sf-shadow-lg);
}
.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--sf-text);
  font-style: italic;
  margin: 0 0 16px;
}
.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-text);
}
.testimonial-role {
  font-size: 13px;
  color: var(--sf-muted);
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 48px;
  color: var(--sf-primary);
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 0;
}
.stat {
  text-align: center;
  min-width: 120px;
}
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--sf-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-label {
  font-size: 14px;
  color: var(--sf-muted);
  margin-top: 4px;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--sf-text); }
input, textarea, select {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color var(--sf-transition), box-shadow var(--sf-transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
textarea { min-height: 120px; resize: vertical; }

/* Notices */
.notice {
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
  line-height: 1.6;
  animation: fadeSlideIn .4s ease-out;
}
.notice-ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.notice-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.notice-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* Pill badges */
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pill-success { background: #D1FAE5; color: #065F46; }
.pill-warn { background: #FEF3C7; color: #92400E; }

/* Note blocks */
.note {
  background: var(--sf-bg);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  padding: 18px;
  line-height: 1.65;
  color: #334155;
}

/* Lists */
.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 8px; line-height: 1.6; }

/* Utility */
.muted { color: var(--sf-muted); }
.small { font-size: 13px; color: var(--sf-muted); }
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.text-center { text-align: center; }

/* Footer */
.footer {
  padding: 40px 0 56px;
  color: var(--sf-muted);
  font-size: 14px;
  border-top: 1px solid var(--sf-border);
  line-height: 1.7;
}

/* Centered page layout (give success, cancel, etc.) */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.center-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.center-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}
.icon-success { background: #D1FAE5; color: #059669; }
.icon-cancel { background: #FEF3C7; color: #D97706; }
.center-card h1 { font-size: 28px; margin: 0 0 12px; }
.center-card p { color: var(--sf-muted); font-size: 16px; margin: 0 0 24px; line-height: 1.7; }

/* Animations */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
.fade-in { animation: fadeIn .5s ease-out; }
.slide-in { animation: fadeSlideIn .5s ease-out; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 32px; }
  .lead { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .center-card h1 { font-size: 24px; }
  .stats-row { gap: 20px; }
  .stat-value { font-size: 28px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 44px 0 40px; }
  h1 { font-size: 28px; }
  .wrap { padding: 0 16px; }
  .wrap-narrow { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .stats-row { flex-direction: column; align-items: center; gap: 16px; }
}
