:root {
  --sofl-home-ink: #0f172a;
  --sofl-home-muted: #64748b;
  --sofl-home-line: #e2e8f0;
  --sofl-home-bg: #f8fafc;
  --sofl-home-card: #ffffff;
  --sofl-home-gold: #d4a843;
  --sofl-home-gold-soft: #fff6dc;
  --sofl-home-blue: #2563eb;
  --sofl-home-green: #059669;
  --sofl-home-shadow: 0 18px 48px rgba(15, 23, 42, .09);
  --sofl-home-radius: 8px;
}

.sofl-homepage {
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  color: var(--sofl-home-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sofl-homepage a {
  text-decoration: none;
}

.sofl-public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.sofl-public-nav .navbar-brand img {
  height: 42px;
  width: auto;
}

.sofl-public-nav .nav-link {
  color: #334155;
  font-weight: 700;
}

.sofl-public-nav .nav-link:hover {
  color: var(--sofl-home-ink);
}

.sofl-btn-primary,
.sofl-btn-secondary,
.sofl-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: var(--sofl-home-radius);
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sofl-btn-primary {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
}

.sofl-btn-primary:hover,
.sofl-card-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .2);
}

.sofl-btn-secondary {
  border: 1px solid var(--sofl-home-line);
  background: #fff;
  color: var(--sofl-home-ink);
}

.sofl-btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--sofl-home-ink);
  transform: translateY(-2px);
}

.sofl-hero-section {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0 clamp(44px, 7vw, 86px);
}

.sofl-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(212, 168, 67, .16), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(37, 99, 235, .12), transparent 26%);
}

.sofl-hero-section > .container {
  position: relative;
  z-index: 1;
}

.sofl-hero-kicker,
.sofl-section-label,
.sofl-section-heading > span,
.sofl-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a6514;
  background: var(--sofl-home-gold-soft);
  border: 1px solid rgba(212, 168, 67, .25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.sofl-hero-section h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  color: #0b1220;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: .97;
  font-weight: 900;
  letter-spacing: 0;
}

.sofl-hero-copy {
  max-width: 650px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.8;
}

.sofl-hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 26px 0 18px;
  padding: 8px;
  border: 1px solid #dbe2ea;
  border-radius: var(--sofl-home-radius);
  background: #fff;
  box-shadow: var(--sofl-home-shadow);
}

.sofl-hero-search i {
  padding-left: 8px;
  color: var(--sofl-home-muted);
}

.sofl-hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--sofl-home-ink);
}

.sofl-hero-search button {
  border: 0;
  border-radius: 6px;
  background: var(--sofl-home-gold);
  color: #111827;
  padding: 10px 15px;
  font-weight: 900;
}

.sofl-hero-actions,
.sofl-homepage-cta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sofl-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sofl-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--sofl-home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  color: #334155;
  font-weight: 800;
  font-size: .86rem;
}

.sofl-hero-visual {
  position: relative;
  min-height: 520px;
}

.sofl-hero-panel {
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: var(--sofl-home-radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sofl-home-shadow);
}

.sofl-hero-panel-main {
  position: absolute;
  inset: 24px 16px 84px 42px;
  padding: clamp(20px, 4vw, 34px);
}

.sofl-hero-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--sofl-home-muted);
  font-weight: 800;
}

.sofl-hero-panel-top strong {
  color: var(--sofl-home-green);
  font-size: 1.65rem;
}

.sofl-progress-rail {
  height: 12px;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.sofl-progress-rail span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sofl-home-gold), var(--sofl-home-green));
}

.sofl-lesson-stack {
  display: grid;
  gap: 14px;
}

.sofl-lesson-stack div,
.sofl-recommendation-stack article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
}

.sofl-lesson-stack i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
}

.sofl-lesson-stack span,
.sofl-recommendation-stack strong {
  color: var(--sofl-home-ink);
  font-weight: 900;
}

.sofl-lesson-stack small,
.sofl-recommendation-stack small {
  color: var(--sofl-home-muted);
}

.sofl-hero-panel-float {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: min(310px, 82%);
  padding: 18px;
}

.sofl-mini-label {
  display: block;
  margin-bottom: 6px;
  color: var(--sofl-home-muted);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-hero-orbit {
  position: absolute;
  left: 0;
  bottom: 112px;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: var(--sofl-home-radius);
  background: #111827;
  color: var(--sofl-home-gold);
  box-shadow: var(--sofl-home-shadow);
  font-size: 1.8rem;
}

.sofl-homepage-section {
  padding: clamp(54px, 7vw, 92px) 0;
}

.sofl-section-soft {
  background: #f8fafc;
}

.sofl-section-heading {
  display: grid;
  gap: 12px;
  max-width: 850px;
  margin-bottom: 32px;
}

.sofl-section-heading h2,
.sofl-recommended-panel h2,
.sofl-section-discovery h2,
.sofl-homepage-cta h2 {
  margin: 0;
  color: #0b1220;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.sofl-section-heading p,
.sofl-recommended-panel p,
.sofl-section-discovery p,
.sofl-homepage-cta p {
  max-width: 720px;
  margin: 0;
  color: var(--sofl-home-muted);
  line-height: 1.75;
}

.sofl-section-heading a {
  width: fit-content;
  color: #0f172a;
  font-weight: 900;
}

.sofl-featured-card,
.sofl-trending-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 276px;
  padding: 24px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: var(--sofl-home-card);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sofl-featured-card:hover,
.sofl-trending-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: var(--sofl-home-shadow);
}

.sofl-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #111827;
  color: var(--sofl-home-gold);
  font-size: 1.2rem;
}

.sofl-card-meta,
.sofl-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sofl-card-meta span,
.sofl-difficulty,
.sofl-locked,
.sofl-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--sofl-home-line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 900;
}

.sofl-featured-card h3 {
  margin: 14px 0 10px;
  color: var(--sofl-home-ink);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
}

.sofl-featured-card p {
  flex: 1;
  color: var(--sofl-home-muted);
  line-height: 1.65;
}

.sofl-card-footer a,
.sofl-card-cta {
  color: #0f172a;
  font-weight: 900;
}

.sofl-locked {
  color: #9f1239;
  background: #fff1f2;
}

.sofl-unlocked {
  color: #047857;
  background: #ecfdf5;
}

.sofl-editorial-thumb,
.sofl-video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 178px;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
  color: #fff;
}

.sofl-editorial-thumb img,
.sofl-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sofl-editorial-thumb i {
  font-size: 2rem;
  color: var(--sofl-home-gold);
}

.sofl-video-thumb span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}

.sofl-card-cta {
  width: fit-content;
  margin-top: auto;
  background: #111827;
  color: #fff;
}

.sofl-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.sofl-trending-card {
  min-height: 164px;
  color: var(--sofl-home-ink);
}

.sofl-trending-card i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--sofl-home-gold-soft);
  color: #8a6514;
}

.sofl-trending-card span {
  font-weight: 900;
}

.sofl-trending-card small {
  margin-top: auto;
  color: var(--sofl-home-muted);
  font-weight: 800;
}

.sofl-recommended-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--sofl-home-shadow);
}

.sofl-recommended-panel .sofl-btn-primary {
  margin-top: 22px;
}

.sofl-recommendation-stack {
  display: grid;
  gap: 12px;
}

.sofl-recommendation-stack article {
  grid-template-columns: minmax(0, 1fr);
}

.sofl-recommendation-stack span {
  color: var(--sofl-home-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-section-discovery {
  background: #0f172a;
  color: #fff;
}

.sofl-section-discovery h2 {
  color: #fff;
}

.sofl-section-discovery p {
  color: #cbd5e1;
}

.sofl-discovery-board {
  display: grid;
  gap: 14px;
}

.sofl-discovery-board div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--sofl-home-radius);
  background: rgba(255, 255, 255, .06);
}

.sofl-discovery-board strong {
  width: 150px;
  color: #fff;
}

.sofl-discovery-board a {
  color: #111827;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.sofl-homepage-cta {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--sofl-home-radius);
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
}

.sofl-homepage-cta > span {
  color: var(--sofl-home-gold);
  font-weight: 900;
  text-transform: uppercase;
}

.sofl-homepage-cta h2 {
  color: #fff;
}

.sofl-homepage-cta p {
  color: #dbe2ea;
}

.sofl-homepage-footer {
  padding: 44px 0 24px;
  background: #0b1220;
  color: #cbd5e1;
}

.sofl-homepage-footer img {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}

.sofl-homepage-footer h3,
.sofl-homepage-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.sofl-homepage-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.sofl-social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sofl-social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.sofl-footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #94a3b8;
  font-size: .9rem;
}

.sofl-homepage-builder {
  display: grid;
  gap: 22px;
  color: var(--sofl-home-ink);
}

.sofl-builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
  box-shadow: var(--sofl-home-shadow);
}

.sofl-builder-hero h1,
.sofl-builder-panel h2,
.sofl-builder-side-card h3 {
  margin: 0;
  color: var(--sofl-home-ink);
  font-weight: 900;
}

.sofl-builder-hero p,
.sofl-builder-panel p,
.sofl-builder-side-card p {
  margin: 8px 0 0;
  color: var(--sofl-home-muted);
}

.sofl-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.sofl-builder-panel,
.sofl-builder-side-card {
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.sofl-builder-panel {
  overflow: hidden;
}

.sofl-builder-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--sofl-home-line);
}

.sofl-section-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.sofl-section-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sofl-section-card:hover,
.sofl-section-card.is-dragging {
  border-color: #cbd5e1;
  box-shadow: var(--sofl-home-shadow);
}

.sofl-section-card.is-dragging {
  opacity: .65;
}

.sofl-homepage-order {
  display: grid;
  gap: 6px;
  place-items: center;
  min-width: 46px;
  color: var(--sofl-home-muted);
  font-weight: 900;
  cursor: grab;
}

.sofl-section-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sofl-section-card-title h3 {
  margin: 0;
  color: var(--sofl-home-ink);
  font-size: 1rem;
  font-weight: 900;
}

.sofl-section-card-title span {
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--sofl-home-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
}

.sofl-section-card-main p {
  margin: 6px 0 0;
  color: var(--sofl-home-muted);
}

.sofl-section-card-meta,
.sofl-section-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sofl-section-card-meta {
  margin-top: 10px;
  color: #64748b;
  font-size: .85rem;
  font-weight: 800;
}

.sofl-homepage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--sofl-home-line);
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 900;
}

.sofl-homepage-toggle.is-on {
  border-color: rgba(5, 150, 105, .22);
  background: #ecfdf5;
  color: #047857;
}

.sofl-builder-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.sofl-builder-side-card {
  padding: 18px;
}

.sofl-toggle-switch {
  cursor: pointer;
}

.sofl-toggle-switch input {
  position: absolute;
  opacity: 0;
}

.sofl-toggle-slider {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 180ms ease;
}

.sofl-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.sofl-toggle-switch input:checked + .sofl-toggle-slider {
  background: var(--sofl-home-green);
}

.sofl-toggle-switch input:checked + .sofl-toggle-slider::after {
  transform: translateX(18px);
}

.sofl-homepage-preview {
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.sofl-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--sofl-home-line);
}

.sofl-preview-toolbar span {
  display: block;
  color: var(--sofl-home-muted);
  font-size: .82rem;
}

.sofl-preview-switcher {
  display: flex;
  gap: 6px;
}

.sofl-preview-switcher button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--sofl-home-line);
  border-radius: 8px;
  background: #fff;
  color: #475569;
}

.sofl-preview-switcher button.active {
  background: #111827;
  color: #fff;
}

.sofl-preview-viewport {
  display: grid;
  justify-items: center;
  padding: 18px;
  background: #f8fafc;
  transition: all 180ms ease;
}

.sofl-preview-viewport[data-size="tablet"] .sofl-preview-page {
  max-width: 720px;
}

.sofl-preview-viewport[data-size="mobile"] .sofl-preview-page {
  max-width: 390px;
}

.sofl-preview-page {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
}

.sofl-preview-hero,
.sofl-preview-section,
.sofl-preview-empty,
.sofl-mini-preview {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.sofl-preview-hero {
  background: #111827;
  color: #fff;
}

.sofl-preview-section {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--sofl-home-line);
}

.sofl-preview-section.is-muted {
  opacity: .45;
}

.sofl-preview-section span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--sofl-home-gold-soft);
  color: #8a6514;
  font-weight: 900;
}

.sofl-preview-section small,
.sofl-preview-hero small,
.sofl-mini-preview p {
  color: var(--sofl-home-muted);
}

.sofl-preview-hero small {
  color: #cbd5e1;
}

.sofl-mini-preview a {
  width: fit-content;
  color: var(--sofl-home-ink);
  font-weight: 900;
}

.sofl-builder-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
}

.sofl-content-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sofl-content-option {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--sofl-home-line);
  border-radius: var(--sofl-home-radius);
  background: #fff;
  text-align: left;
}

.sofl-content-option i {
  color: var(--sofl-home-gold);
}

.sofl-content-option small {
  color: var(--sofl-home-muted);
}

.sofl-image-preview {
  display: none;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid var(--sofl-home-line);
  border-radius: 8px;
}

.sofl-image-preview.is-visible {
  display: block;
}

@media (max-width: 1199.98px) {
  .sofl-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sofl-builder-grid,
  .sofl-builder-form-grid {
    grid-template-columns: 1fr;
  }

  .sofl-builder-sidebar {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .sofl-hero-visual {
    min-height: 460px;
  }

  .sofl-recommended-panel {
    grid-template-columns: 1fr;
  }

  .sofl-section-card {
    grid-template-columns: 1fr;
  }

  .sofl-content-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sofl-hero-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sofl-hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sofl-hero-panel-main {
    inset: 18px 0 86px 0;
  }

  .sofl-hero-orbit {
    left: 10px;
  }

  .sofl-category-grid {
    grid-template-columns: 1fr;
  }

  .sofl-builder-hero {
    grid-template-columns: 1fr;
  }

  .sofl-discovery-board strong {
    width: 100%;
  }
}

/* Public SOFL homepage */
.sofl-public-home {
  --home-ink: #0f172a;
  --home-muted: #64748b;
  --home-gold: #d4a843;
  --home-gold-dark: #9b7324;
  --home-bg: #fbfaf6;
  --home-soft: #f5f1e8;
  --home-line: rgba(15, 23, 42, .09);
  --home-shadow: 0 22px 60px rgba(15, 23, 42, .1);
  background: var(--home-bg);
}

.sofl-public-home .sofl-public-nav {
  background: rgba(251, 250, 246, .9);
}

.sofl-public-hero {
  padding: 34px 0 70px;
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 168, 67, .16), transparent 22%),
    linear-gradient(180deg, #fbfaf6 0%, #fff 100%);
}

.sofl-hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 34px;
  padding: clamp(24px, 5vw, 52px);
  background: linear-gradient(135deg, #f6f1e5 0%, #fffdf7 52%, #efe2bc 120%);
  box-shadow: var(--home-shadow);
}

.sofl-hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px), linear-gradient(180deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 68%);
  pointer-events: none;
}

.sofl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  border: 1px solid rgba(212, 168, 67, .25);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff7df;
  color: var(--home-gold-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sofl-public-hero h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  color: var(--home-ink);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: .98;
}

.sofl-hero-subtitle {
  max-width: 650px;
  margin: 0 0 24px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.85;
}

.sofl-hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 650px;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.sofl-hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--home-ink);
}

.sofl-hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--home-gold);
  color: #111827;
  font-weight: 900;
}

.sofl-hero-actions,
.sofl-trust-badges,
.sofl-final-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sofl-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sofl-home-btn:hover {
  transform: translateY(-2px);
}

.sofl-home-btn-primary {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .18);
}

.sofl-home-btn-primary:hover {
  color: #fff;
}

.sofl-home-btn-light,
.sofl-home-btn-ghost {
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  color: var(--home-ink);
}

.sofl-home-btn-light:hover,
.sofl-home-btn-ghost:hover {
  color: var(--home-ink);
  border-color: rgba(15, 23, 42, .18);
}

.sofl-trust-badges {
  margin-top: 18px;
}

.sofl-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .68);
  color: #334155;
  font-weight: 800;
  font-size: .88rem;
}

.sofl-hero-visual-premium {
  position: relative;
  min-height: 500px;
}

.sofl-market-card,
.sofl-floating-note,
.sofl-stat-strip,
.sofl-home-card,
.sofl-benefit-card,
.sofl-ai-panel,
.sofl-subscription-panel,
.sofl-final-cta {
  border: 1px solid var(--home-line);
  background: #fff;
  box-shadow: var(--home-shadow);
}

.sofl-market-card {
  position: absolute;
  inset: 24px 20px 86px 34px;
  display: grid;
  align-content: space-between;
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(145deg, #0f172a, #1f2937);
  color: #fff;
}

.sofl-market-card span,
.sofl-final-cta span,
.sofl-price-card span,
.sofl-ai-stack span {
  color: var(--home-gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sofl-market-card strong {
  max-width: 310px;
  font-size: 2.1rem;
  line-height: 1.08;
}

.sofl-chart-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 170px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.sofl-chart-bars i {
  display: block;
  flex: 1;
  border-radius: 14px 14px 0 0;
  background: #d4a843;
}

.sofl-floating-note {
  position: absolute;
  display: grid;
  gap: 6px;
  width: min(260px, 80%);
  border-radius: 22px;
  padding: 18px;
}

.sofl-floating-note i {
  color: var(--home-gold);
  font-size: 1.35rem;
}

.sofl-floating-note strong {
  color: var(--home-ink);
}

.sofl-floating-note small {
  color: var(--home-muted);
  line-height: 1.5;
}

.note-one {
  left: 0;
  top: 58px;
}

.note-two {
  right: 0;
  bottom: 28px;
}

.sofl-stat-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1080px, calc(100% - 32px));
  margin: -28px auto 0;
  border-radius: 24px;
  padding: 18px;
}

.sofl-stat-strip div {
  display: grid;
  gap: 2px;
  border-radius: 18px;
  padding: 16px;
  background: #fbfaf6;
}

.sofl-stat-strip strong {
  color: var(--home-ink);
  font-size: 1.45rem;
}

.sofl-stat-strip span {
  color: var(--home-muted);
  font-weight: 700;
}

.sofl-public-section {
  padding: clamp(58px, 7vw, 96px) 0;
}

.sofl-soft-band {
  background: var(--home-soft);
}

.sofl-navy-band {
  background: #0f172a;
  color: #fff;
}

.sofl-section-head {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 34px;
}

.sofl-section-head h2,
.sofl-ai-panel h2,
.sofl-subscription-panel h2,
.sofl-final-cta h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.06;
}

.sofl-section-head p,
.sofl-ai-panel p,
.sofl-subscription-panel p,
.sofl-final-cta p {
  max-width: 720px;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.75;
}

.sofl-section-head a,
.sofl-card-link {
  width: fit-content;
  color: var(--home-ink);
  font-weight: 900;
}

.sofl-navy-band .sofl-section-head h2,
.sofl-navy-band .sofl-section-head a {
  color: #fff;
}

.sofl-navy-band .sofl-section-head p {
  color: #cbd5e1;
}

.sofl-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sofl-home-card:hover,
.sofl-category-tile:hover,
.sofl-benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 67, .32);
}

.sofl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sofl-card-top span,
.sofl-card-top small,
.sofl-tag-row span,
.sofl-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff7df;
  color: var(--home-gold-dark);
  font-size: .78rem;
  font-weight: 900;
}

.sofl-card-top small {
  background: #f1f5f9;
  color: #475569;
}

.sofl-home-card h3,
.sofl-benefit-card h3 {
  color: var(--home-ink);
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.35;
}

.sofl-home-card p,
.sofl-benefit-card p {
  flex: 1;
  color: var(--home-muted);
  line-height: 1.7;
}

.sofl-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.sofl-tag-row span {
  background: #f8fafc;
  color: #475569;
}

.sofl-media-thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #334155);
  color: var(--home-gold);
  font-size: 2rem;
}

.sofl-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sofl-lock-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .92);
}

.sofl-play-orb {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
  font-size: 1rem;
}

.sofl-category-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sofl-category-tile {
  display: grid;
  gap: 8px;
  min-height: 220px;
  border: 1px solid var(--home-line);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  color: var(--home-ink);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.sofl-category-tile i,
.sofl-benefit-card i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #111827;
  color: var(--home-gold);
  font-size: 1.25rem;
}

.sofl-category-tile img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
}

.sofl-category-tile strong {
  font-size: 1.12rem;
  font-weight: 900;
}

.sofl-category-tile span,
.sofl-category-tile small {
  color: var(--home-muted);
}

.sofl-benefit-card {
  display: grid;
  gap: 14px;
  height: 100%;
  border-radius: 24px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sofl-ai-panel,
.sofl-subscription-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  padding: clamp(24px, 5vw, 46px);
}

.sofl-ai-stack {
  display: grid;
  gap: 12px;
}

.sofl-ai-stack article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfaf6;
}

.sofl-price-card {
  display: grid;
  gap: 14px;
  border-radius: 24px;
  padding: 24px;
  background: #0f172a;
  color: #fff;
}

.sofl-price-card strong {
  font-size: 2rem;
}

.sofl-home-faq {
  display: grid;
  gap: 12px;
}

.sofl-home-faq .accordion-item {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
}

.sofl-home-faq .accordion-button {
  color: var(--home-ink);
  font-weight: 900;
  box-shadow: none;
}

.sofl-home-faq .accordion-button:not(.collapsed) {
  background: #fff7df;
  color: var(--home-ink);
}

.sofl-home-faq .accordion-body {
  color: var(--home-muted);
}

.sofl-home-faq .accordion-body a {
  color: var(--home-ink);
  font-weight: 900;
}

.sofl-final-cta {
  display: grid;
  gap: 14px;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 54px);
  background: linear-gradient(135deg, #0f172a, #1f2937);
}

.sofl-final-cta h2 {
  color: #fff;
}

.sofl-final-cta p {
  color: #dbe2ea;
}

.sofl-public-home .dynamic-home-section {
  background: #fff !important;
}

@media (max-width: 991.98px) {
  .sofl-hero-visual-premium {
    min-height: 460px;
  }

  .sofl-stat-strip,
  .sofl-category-grid-premium,
  .sofl-ai-panel,
  .sofl-subscription-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .sofl-hero-shell {
    border-radius: 24px;
  }

  .sofl-hero-search {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 24px;
  }

  .sofl-hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sofl-market-card {
    inset: 18px 0 90px;
  }

  .note-one {
    left: 0;
    top: 18px;
  }

  .note-two {
    right: 0;
  }
}
