:root {
  --navy: #071427;
  --navy-2: #0b1f3a;
  --gold: #d6a84f;
  --gold-2: #f2d28a;
  --emerald: #0f6b4f;
  --charcoal: #111827;
  --white: #ffffff;
  --muted: #aeb7c2;
  --black: #03070d;
  --ink: #eef4fb;
  --line: rgba(214, 168, 79, .24);
  --glass: rgba(8, 20, 38, .76);
  --glass-2: rgba(255, 255, 255, .075);
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(214, 168, 79, .08), transparent 26rem),
    radial-gradient(circle at 88% 12%, rgba(15, 107, 79, .14), transparent 28rem),
    linear-gradient(180deg, var(--black), var(--navy) 42%, #050a12);
}
a { color: var(--gold-2); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--white); }
img { max-width: 100%; }

.sfg-navbar {
  width: min(1540px, calc(100% - 2rem));
  margin: .85rem auto 0;
  padding: .7rem 1rem;
  background: rgba(5, 12, 23, .86);
  border: 1px solid rgba(214, 168, 79, .18);
  border-radius: 999px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
  backdrop-filter: blur(18px);
}
.sfg-navbar .container { max-width: none; padding: 0 .25rem; }
.navbar-brand {
  max-width: 360px;
  color: var(--white);
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: normal;
  line-height: 1.05;
}
.navbar-brand:hover { color: var(--gold-2); }
.brand-logo-frame {
  display: block;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(214, 168, 79, .28));
}
.navbar-brand img.brand-logo,
img.brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  object-position: center;
  padding: 2px;
}
.navbar-brand span { display: block; max-width: 250px; }
.navbar-nav { align-items: center; gap: .25rem; }
.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
  color: rgba(238, 244, 251, .78);
  font-weight: 800;
  font-size: .92rem;
  padding: .62rem .76rem;
  border-radius: 999px;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--gold-2);
  background: rgba(214, 168, 79, .09);
}
.navbar-dark .navbar-nav .nav-link.btn-gold,
.navbar-light .navbar-nav .nav-link.btn-gold {
  color: #071427;
  padding: .68rem 1.25rem;
}
.navbar-dark .navbar-nav .nav-link.btn-gold:hover,
.navbar-light .navbar-nav .nav-link.btn-gold:hover { color: #071427; }
.navbar-toggler { border-color: rgba(214, 168, 79, .34); }
.navbar-toggler:focus { box-shadow: 0 0 0 .16rem rgba(214, 168, 79, .24); }

.btn {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #071427;
  border: 1px solid rgba(242, 210, 138, .9);
  box-shadow: 0 15px 34px rgba(214, 168, 79, .22);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #ffe3a0, var(--gold));
  color: #071427;
  border-color: #ffe3a0;
  box-shadow: 0 20px 44px rgba(214, 168, 79, .34);
}
.btn-outline-light, .btn-outline-dark {
  border-radius: 999px;
  font-weight: 900;
  border-color: rgba(242, 210, 138, .55);
}
.btn-outline-light {
  color: var(--white);
  background: rgba(255, 255, 255, .055);
}
.btn-outline-light:hover,
.btn-outline-dark:hover {
  background: rgba(214, 168, 79, .14);
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.btn-outline-dark {
  color: var(--gold-2);
  background: rgba(7, 20, 39, .52);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 7, 13, .92) 0%, rgba(7, 20, 39, .74) 42%, rgba(7, 20, 39, .28) 100%),
    linear-gradient(0deg, rgba(3, 7, 13, .88), rgba(3, 7, 13, .08) 46%, rgba(3, 7, 13, .55)),
    url("/assets/img/st-lucia-hero.png") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(242, 210, 138, .18), transparent 20rem),
    linear-gradient(135deg, rgba(214, 168, 79, .12), transparent 36%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18rem;
  background: linear-gradient(180deg, transparent, var(--black));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-panel {
  max-width: 920px;
  padding: 9rem 0 5.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--gold-2);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .28em;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 1.35rem;
  text-wrap: balance;
}
.subhero h1 {
  font-size: clamp(2.85rem, 5.2vw, 5.9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 1.35rem;
  max-width: 1120px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero p, .subhero p {
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.78;
  max-width: 820px;
  color: rgba(238, 244, 251, .82);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero-notice {
  max-width: 810px;
  color: rgba(238, 244, 251, .78);
  background: rgba(7, 20, 39, .62);
  border: 1px solid rgba(214, 168, 79, .28);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  margin: 2rem 0 0;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  max-width: 960px;
  margin-top: 2.2rem;
}
.hero-metric {
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(214, 168, 79, .24);
  border-radius: 18px;
  background: rgba(7, 20, 39, .52);
  backdrop-filter: blur(12px);
}
.hero-metric strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.08rem;
  margin-bottom: .35rem;
}
.hero-metric span {
  display: block;
  color: rgba(238, 244, 251, .72);
  font-size: .84rem;
  line-height: 1.45;
}

.subhero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 7, 13, .92), rgba(7, 20, 39, .84)),
    url("/assets/img/st-lucia-hero.png") center / cover no-repeat;
  padding: 8.5rem 0 5.25rem;
  border-bottom: 1px solid rgba(214, 168, 79, .18);
}
.subhero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  background: linear-gradient(180deg, transparent, var(--black));
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { max-width: 1120px; }
.subhero p { max-width: 780px; }
.subhero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

.section {
  position: relative;
  padding: 6rem 0;
}
.section-dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(214, 168, 79, .12), transparent 28rem),
    linear-gradient(135deg, var(--navy), #040912);
  color: var(--white);
  border-top: 1px solid rgba(214, 168, 79, .12);
  border-bottom: 1px solid rgba(214, 168, 79, .12);
}
.section-muted {
  background:
    linear-gradient(180deg, rgba(11, 31, 58, .9), rgba(4, 9, 18, .96)),
    radial-gradient(circle at 15% 15%, rgba(15, 107, 79, .16), transparent 28rem);
}
.section-heading {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.lux-card, .glass-panel, .form-panel, .content-panel, .portal-card, .installer-card,
.gold-highlight, .disclosure-box, .investor-notice, .safety-quote {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 79, .2);
  border-radius: 22px;
  padding: 1.65rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .092), rgba(255, 255, 255, .035)),
    rgba(7, 20, 39, .78);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(16px);
}
.lux-card::before, .glass-panel::before, .form-panel::before, .content-panel::before,
.gold-highlight::before, .disclosure-box::before, .investor-notice::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--emerald), transparent);
}
.lux-card:hover, .gold-highlight:hover, .glass-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 210, 138, .42);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .48);
}
.lux-card, .gold-highlight, .glass-panel { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.lux-card h2, .lux-card h3, .content-panel h2, .gold-highlight h2,
.form-panel h2, .safety-quote h2 {
  color: var(--white);
  font-weight: 900;
}
.lux-card h3 { font-size: 1.18rem; }
.lux-card p, .content-panel p, .gold-highlight p, .disclosure-box p, .investor-notice p,
.form-panel p, .glass-panel p {
  color: var(--muted);
  line-height: 1.75;
}
.strategy-grid,
.presentation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.page-deck {
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}
.page-deck + .page-deck {
  border-top: 1px solid rgba(214, 168, 79, .13);
}
.page-deck .section-heading {
  max-width: 980px;
  margin-bottom: 1.5rem;
}
.page-deck .lux-card h3 {
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.safety-feature .avatar-showcase {
  margin-inline: auto;
}
.safety-feature blockquote,
.gold-highlight blockquote {
  margin: 1.2rem 0 0;
  color: var(--gold-2);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
}
.gold-highlight {
  background:
    linear-gradient(145deg, rgba(214, 168, 79, .22), rgba(7, 20, 39, .86) 46%),
    rgba(7, 20, 39, .84);
}
.disclosure-box {
  background:
    linear-gradient(145deg, rgba(242, 210, 138, .14), rgba(7, 20, 39, .84)),
    rgba(7, 20, 39, .82);
}
.investor-notice {
  background:
    linear-gradient(145deg, rgba(15, 107, 79, .2), rgba(7, 20, 39, .84)),
    rgba(7, 20, 39, .82);
}
.safety-quote {
  background:
    linear-gradient(145deg, rgba(214, 168, 79, .2), rgba(15, 107, 79, .14)),
    var(--navy);
}
.safety-quote blockquote, .gold-highlight blockquote {
  margin: 1rem 0 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--gold-2);
}
.claim-card { border-left: 4px solid var(--gold); }
.status-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--gold-2);
  background: rgba(214, 168, 79, .1);
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 999px;
  padding: .28rem .74rem;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.concierge-panel {
  min-height: 100%;
  display: grid;
  align-content: center;
}
.avatar-showcase {
  --mouth-x: 50%;
  --mouth-y: 35%;
  --mouth-w: 12%;
  --mouth-h: 5%;
  width: min(390px, 82vw);
  height: min(390px, 82vw);
  margin: auto;
  border-radius: 34px;
  padding: .65rem;
  background:
    linear-gradient(145deg, rgba(242, 210, 138, .32), rgba(15, 107, 79, .16)),
    rgba(7, 20, 39, .62);
  border: 1px solid rgba(242, 210, 138, .42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .4), 0 0 36px rgba(214, 168, 79, .16);
}
.avatar-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 26px;
  border: 1px solid rgba(242, 210, 138, .5);
  background: var(--navy);
}

.timeline {
  display: grid;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline > div {
  position: relative;
  padding: 1.25rem 1.45rem 1.25rem 1.65rem;
  border: 1px solid rgba(214, 168, 79, .18);
  border-left: 4px solid var(--gold);
  border-radius: 18px;
  background: rgba(7, 20, 39, .7);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .28);
  color: var(--muted);
}
.timeline strong { color: var(--white); }

.content-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 79, .22);
}
.content-panel table {
  color: var(--ink);
  border-color: rgba(214, 168, 79, .22);
}
.content-panel hr { border-color: rgba(214, 168, 79, .22); opacity: 1; }
.content-panel a:not(.btn) { border-bottom: 1px solid rgba(214, 168, 79, .4); }

.form-panel .form-label, .auth-card .form-label {
  color: rgba(238, 244, 251, .86);
  font-weight: 800;
}
.form-panel .form-control, .form-panel .form-select,
.auth-card .form-control, .auth-card .form-select {
  min-height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 14px;
}
.form-panel .form-control::placeholder,
.form-panel textarea::placeholder,
.auth-card .form-control::placeholder,
.auth-card textarea::placeholder {
  color: rgba(238, 244, 251, .56);
  opacity: 1;
}
.form-panel .form-select option,
.auth-card .form-select option {
  color: var(--charcoal);
  background: var(--white);
}
.form-panel .form-control:focus, .form-panel .form-select:focus,
.auth-card .form-control:focus, .auth-card .form-select:focus {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border-color: var(--gold-2);
  box-shadow: 0 0 0 .18rem rgba(214, 168, 79, .16);
}
.form-panel .form-check-label { color: var(--muted); }
.form-panel .form-check-input {
  background-color: rgba(255, 255, 255, .08);
  border-color: rgba(214, 168, 79, .36);
}
.form-panel .form-check-input:checked {
  background-color: var(--emerald);
  border-color: var(--emerald);
}

.accordion-item {
  color: var(--ink);
  background: rgba(7, 20, 39, .78);
  border: 1px solid rgba(214, 168, 79, .18);
}
.accordion-button {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  font-weight: 900;
}
.accordion-button:not(.collapsed) {
  color: var(--gold-2);
  background: rgba(214, 168, 79, .08);
}
.accordion-button:focus { box-shadow: 0 0 0 .16rem rgba(214, 168, 79, .18); }

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 7, 13, .94), rgba(7, 20, 39, .88)),
    url("/assets/img/st-lucia-hero.png") center / cover no-repeat;
  border-top: 1px solid rgba(214, 168, 79, .18);
}
.cta-band h2 { font-weight: 900; letter-spacing: -.01em; }
.cta-band p { color: var(--muted); margin-bottom: 0; }
.sfg-footer {
  background: #02050a;
  color: var(--white);
  border-top: 1px solid rgba(214, 168, 79, .18);
}
.sfg-footer h5, .sfg-footer h6 { color: var(--gold-2); font-weight: 900; }
.sfg-footer a { color: rgba(238, 244, 251, .72); }
.sfg-footer a:hover { color: var(--gold-2); }

.auth-wrap {
  min-height: 86vh;
  display: grid;
  place-items: center;
  padding: 7rem 1rem 4rem;
  background:
    linear-gradient(90deg, rgba(3, 7, 13, .92), rgba(7, 20, 39, .78)),
    url("/assets/img/st-lucia-hero.png") center / cover no-repeat;
}
.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 460px);
  gap: 1.4rem;
  align-items: stretch;
}
.auth-copy {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(214, 168, 79, .18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(7, 20, 39, .34), rgba(7, 20, 39, .78));
  box-shadow: var(--shadow);
}
.auth-copy h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}
.auth-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.2rem;
}
.auth-point {
  padding: .9rem;
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 16px;
  background: rgba(7, 20, 39, .62);
  color: var(--gold-2);
  font-weight: 900;
  font-size: .9rem;
}
.auth-card {
  width: 100%;
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(7, 20, 39, .88);
  border: 1px solid rgba(214, 168, 79, .24);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.auth-card h2, .auth-card h1 {
  color: var(--white);
  font-weight: 900;
}
.auth-card p, .auth-card a { color: var(--muted); }
.auth-card a:hover { color: var(--gold-2); }

.installer-body { background: linear-gradient(135deg, var(--navy), var(--emerald)); min-height: 100vh; }
.installer-card { max-width: 960px; margin: 0 auto; }
.installer-card h1 { color: var(--white); font-weight: 900; }
.cms-editor-shell {
  overflow: hidden;
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 18px;
  background: rgba(3, 7, 13, .45);
}
.editor-modebar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .7rem;
  background: rgba(3, 7, 13, .82);
  border-bottom: 1px solid rgba(214, 168, 79, .16);
}
.editor-modebar button {
  border: 1px solid rgba(214, 168, 79, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  padding: .42rem .8rem;
  font-weight: 900;
}
.editor-modebar button.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy);
  border-color: var(--gold-2);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .75rem;
  border-bottom: 1px solid rgba(214, 168, 79, .16);
  background: rgba(7, 20, 39, .82);
}
.editor-toolbar.disabled {
  opacity: .52;
  pointer-events: none;
}
.editor-toolbar button {
  border: 1px solid rgba(214, 168, 79, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  border-radius: 999px;
  padding: .38rem .7rem;
  font-weight: 800;
}
.editor-toolbar button:hover {
  color: var(--gold-2);
  border-color: rgba(242, 210, 138, .42);
  background: rgba(214, 168, 79, .1);
}
.cms-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 0;
  border-radius: 0;
  min-height: 420px;
}
.cms-visual-editor,
.cms-preview {
  min-height: 460px;
  padding: 1.35rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(214, 168, 79, .08), transparent 16rem),
    rgba(7, 20, 39, .74);
  outline: 0;
}
.cms-visual-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(242, 210, 138, .28);
}
.cms-visual-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(238, 244, 251, .48);
}
.cms-visual-editor h1,
.cms-visual-editor h2,
.cms-visual-editor h3,
.cms-visual-editor h4,
.cms-preview h1,
.cms-preview h2,
.cms-preview h3,
.cms-preview h4 {
  color: var(--white);
  font-weight: 900;
}
.cms-visual-editor p,
.cms-visual-editor li,
.cms-preview p,
.cms-preview li {
  color: var(--muted);
  line-height: 1.75;
}
.cms-visual-editor blockquote,
.cms-preview blockquote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, .055);
  color: var(--gold-2);
  border-radius: 12px;
}
.cms-visual-editor img,
.cms-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 79, .22);
}
.cms-preview {
  border: 0;
  border-radius: 0;
}
.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #071427;
}

.inline-editor-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 1200;
  width: min(760px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  color: var(--white);
  background: rgba(3, 7, 13, .92);
  border: 1px solid rgba(214, 168, 79, .32);
  border-radius: 999px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .44);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}
.inline-editor-bar strong,
.inline-editor-bar small {
  display: block;
}
.inline-editor-bar small {
  color: var(--muted);
  font-size: .78rem;
}
.inline-editor-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
body.inline-editing [data-inline-edit="1"] {
  position: relative;
  outline: 2px dashed rgba(242, 210, 138, .78);
  outline-offset: 6px;
  cursor: text;
}
body.inline-editing [data-inline-edit="1"]:focus {
  outline-style: solid;
  background: rgba(214, 168, 79, .08);
}
body.inline-editing [data-inline-html="1"] {
  min-height: 160px;
}
body.inline-editing [data-inline-html="1"] > *:hover {
  outline: 1px solid rgba(15, 107, 79, .75);
  outline-offset: 4px;
}

.sp-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 1040; }
.sp-toggle {
  position: relative;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(242, 210, 138, .55);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 24px rgba(214, 168, 79, .32);
}
.sp-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(242, 210, 138, .72), inset 0 -18px 30px rgba(3, 7, 13, .22);
  pointer-events: none;
}
.sp-toggle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}
.sp-greeting {
  position: absolute;
  right: calc(100% + .85rem);
  bottom: .45rem;
  width: min(255px, calc(100vw - 7.25rem));
  display: none;
  padding: .85rem 2.15rem .85rem .95rem;
  color: var(--white);
  background: rgba(5, 12, 23, .94);
  border: 1px solid rgba(214, 168, 79, .34);
  border-radius: 18px;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);
  animation: spGreetingIn .32s ease both;
  cursor: pointer;
}
.sp-greeting.visible { display: block; }
.sp-greeting::after {
  content: "";
  position: absolute;
  right: -.48rem;
  bottom: 1.15rem;
  width: .9rem;
  height: .9rem;
  background: inherit;
  border-right: 1px solid rgba(214, 168, 79, .34);
  border-bottom: 1px solid rgba(214, 168, 79, .34);
  transform: rotate(-45deg);
}
.sp-greeting strong,
.sp-greeting span {
  display: block;
}
.sp-greeting strong {
  color: var(--gold-2);
  font-size: .95rem;
  line-height: 1.25;
}
.sp-greeting span {
  color: rgba(238, 244, 251, .82);
  font-size: .88rem;
  line-height: 1.35;
  margin-top: .2rem;
}
.sp-greeting-close {
  position: absolute;
  top: .45rem;
  right: .5rem;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: rgba(238, 244, 251, .76);
  background: rgba(255, 255, 255, .07);
  line-height: 1;
}
.sp-greeting-close:hover { color: var(--white); background: rgba(214, 168, 79, .16); }
@keyframes spGreetingIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sp-panel {
  display: none;
  width: min(410px, calc(100vw - 2rem));
  overflow: hidden;
  color: var(--ink);
  background: rgba(5, 12, 23, .96);
  border: 1px solid rgba(214, 168, 79, .28);
  border-radius: 22px;
  box-shadow: 0 30px 95px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px);
}
.sp-widget.open .sp-panel { display: block; }
.sp-widget.open .sp-toggle { display: none; }
.sp-widget.open .sp-greeting { display: none; }
.sp-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  background:
    linear-gradient(135deg, rgba(214, 168, 79, .14), rgba(15, 107, 79, .14)),
    var(--navy);
  color: var(--white);
  padding: .95rem;
  border-bottom: 1px solid rgba(214, 168, 79, .18);
}
.sp-head small { display: block; color: rgba(238, 244, 251, .68); }
.sp-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 168, 79, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-size: 1.1rem;
}
.sp-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
}
.sp-avatar::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(242, 210, 138, .42), rgba(15, 107, 79, .16) 48%, transparent 72%);
  opacity: .55;
  transform: scale(.95);
  transition: opacity .25s ease, transform .25s ease;
  z-index: -1;
}
.sp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  border-radius: inherit;
  border: 2px solid var(--gold);
  background: var(--navy);
  animation: spIdle 5.5s ease-in-out infinite;
  transform-origin: 50% 60%;
  will-change: transform, filter;
}
.sp-avatar.thinking::before { opacity: .9; animation: spAura 1.05s ease-in-out infinite; }
.sp-avatar.thinking img { animation: spThinking 1.2s ease-in-out infinite; filter: saturate(1.06); }
.sp-avatar.speaking::before { opacity: 1; animation: spAura .62s ease-in-out infinite; }
.sp-avatar.speaking img { animation: spSpeaking .46s ease-in-out infinite; filter: saturate(1.1) contrast(1.02); }
.sp-mouth { display: none; }
@keyframes spIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.012); }
}
@keyframes spThinking {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1.01); }
  50% { transform: translateY(-3px) rotate(.55deg) scale(1.025); }
}
@keyframes spSpeaking {
  0%, 100% { transform: translateY(0) rotate(-.35deg) scale(1.012); }
  35% { transform: translateY(-2px) rotate(.45deg) scale(1.032); }
  70% { transform: translateY(1px) rotate(0deg) scale(1.018); }
}
@keyframes spAura {
  0%, 100% { transform: scale(.94); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
.sp-history {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(214, 168, 79, .08), transparent 14rem),
    rgba(7, 20, 39, .72);
}
.sp-msg {
  margin-bottom: .8rem;
  padding: .78rem .85rem;
  border-radius: 16px;
  max-width: 88%;
  line-height: 1.5;
}
.sp-user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--emerald), #0a4d39);
  color: var(--white);
}
.sp-bot {
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(214, 168, 79, .18);
  color: var(--ink);
}
.sp-voice-unlock {
  display: none;
  align-items: center;
  gap: .65rem;
  padding: .72rem .85rem;
  background: rgba(214, 168, 79, .12);
  border-top: 1px solid rgba(214, 168, 79, .22);
  color: rgba(238, 244, 251, .82);
  font-size: .78rem;
  line-height: 1.35;
}
.sp-voice-unlock.visible { display: flex; }
.sp-enable-voice {
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  padding: .46rem .72rem;
  font-weight: 900;
  white-space: nowrap;
}
.sp-form {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: .45rem;
  padding: .8rem;
  border-top: 1px solid rgba(214, 168, 79, .16);
  background: rgba(3, 7, 13, .78);
}
.sp-form button {
  border: 1px solid rgba(214, 168, 79, .2);
  border-radius: 999px;
  padding: .58rem .7rem;
  font-weight: 900;
}
.sp-input {
  min-width: 0;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(214, 168, 79, .22);
  border-radius: 999px;
  padding: .6rem .8rem;
}
.sp-input::placeholder { color: rgba(238, 244, 251, .5); }
.sp-send { background: var(--gold); color: var(--navy); }
.sp-mic, .sp-voice { background: rgba(255, 255, 255, .07); color: var(--ink); }
.sp-voice.active { background: var(--emerald); color: var(--white); }
.sp-status {
  min-height: 1.5rem;
  padding: 0 .85rem .85rem;
  font-size: .85rem;
  color: var(--muted);
  background: rgba(3, 7, 13, .78);
}
.avatar-showcase.sp-avatar {
  width: min(390px, 82vw);
  height: min(390px, 82vw);
  border-radius: 34px;
}
.avatar-showcase.sp-avatar img {
  border-radius: 26px;
}

@media (max-width: 991px) {
  .sfg-navbar { border-radius: 26px; }
  .navbar-collapse {
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(214, 168, 79, .14);
  }
  .navbar-nav { align-items: stretch; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-copy { min-height: 360px; }
}

@media (max-width: 767px) {
  .sfg-navbar {
    width: min(100% - 1rem, 1540px);
    margin-top: .5rem;
    padding: .58rem .7rem;
  }
  .navbar-brand { max-width: 250px; font-size: .88rem; }
  .brand-logo-frame {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
  }
  .hero { min-height: 88vh; background-position: 58% center; }
  .hero-panel { padding: 6.5rem 0 3.75rem; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .subhero h1 { font-size: clamp(2.3rem, 12vw, 3.8rem); }
  .hero-actions .btn, .subhero-actions .btn { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metric { min-height: auto; }
  .section { padding: 4rem 0; }
  .section-heading { text-align: left; }
  .strategy-grid, .presentation-grid, .two-column { grid-template-columns: 1fr; }
  .auth-wrap { padding: 6rem .75rem 2rem; }
  .auth-copy { min-height: 330px; padding: 1.35rem; }
  .auth-points { grid-template-columns: 1fr; }
  .auth-card { padding: 1.35rem; }
  .inline-editor-bar {
    bottom: .75rem;
    border-radius: 20px;
    display: block;
  }
  .inline-editor-actions {
    margin-top: .65rem;
  }
  .inline-editor-actions .btn {
    flex: 1 1 auto;
  }
  body.sp-chat-open { overflow: hidden; }
  .sp-widget {
    inset: auto 0 0 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1100;
  }
  .sp-toggle {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 66px;
    height: 66px;
  }
  .sp-greeting {
    position: fixed;
    right: calc(max(1rem, env(safe-area-inset-right)) + 76px);
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4px);
    width: min(230px, calc(100vw - 6.75rem));
  }
  .sp-panel {
    width: 100%;
    height: min(88dvh, 760px);
    border-radius: 18px 18px 0 0;
    display: none;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  }
  .sp-widget.open .sp-panel { display: grid; }
  .sp-head { padding: .85rem 1rem; }
  .sp-avatar { width: 54px; height: 54px; }
  .sp-history {
    height: auto;
    min-height: 0;
    padding: .85rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sp-msg { max-width: 94%; font-size: .95rem; }
  .sp-form {
    grid-template-columns: 1fr auto auto;
    padding: .7rem;
    padding-bottom: max(.7rem, env(safe-area-inset-bottom));
    align-items: center;
  }
  .sp-input { font-size: 16px; min-height: 44px; }
  .sp-form button { min-height: 44px; padding: .55rem .7rem; }
  .sp-mic, .sp-voice { font-size: .72rem; }
  .sp-status { padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
}
