/* ============================================================
 * Investment Platform — Public Site Styles
 * Theme: Navy · Cyan · Gold
 * ============================================================ */

:root {
  --navy:        #0a1f44;
  --navy-2:      #0e2a5c;
  --navy-3:      #071733;
  --cyan:        #00d4ff;
  --cyan-dark:   #0099cc;
  --gold:        #ffc107;
  --bg:          #f6f8fc;
  --bg-alt:      #eef2f9;
  --card:        #ffffff;
  --text:        #0f172a;
  --muted:       #64748b;
  --line:        #e2e8f0;
  --success:     #16a34a;
  --danger:      #dc2626;
  --warning:     #f59e0b;
  --shadow-sm:   0 4px 14px rgba(10,31,68,.06);
  --shadow-md:   0 10px 30px rgba(10,31,68,.10);
  --shadow-lg:   0 24px 60px rgba(10,31,68,.14);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.public-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: 76px; /* space for fixed navbar */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}

a { color: var(--cyan-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: rgba(10, 31, 68, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
  transition: padding .25s, background .25s;
}
.site-navbar.scrolled {
  padding: 8px 0;
  background: rgba(7, 23, 51, 0.98);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.site-navbar .navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 20px;
  font-family: 'Sora', sans-serif;
}
.site-navbar .brand-icon {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(0,212,255,.35);
}
.site-navbar .brand-text { letter-spacing: -.3px; }

.site-navbar .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.06);
}
.site-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 10px;
}
.site-navbar .navbar-toggler:focus { box-shadow: none; }

.site-navbar .avatar-dot {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 13px; color: #fff;
}
.avatar-dot.bg-cyan  { background: var(--cyan); color: var(--navy); }
.avatar-dot.bg-warning { background: var(--gold); color: var(--navy); }

.site-navbar .dropdown-menu {
  border: 0; border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}
.site-navbar .dropdown-item {
  border-radius: 8px; padding: 9px 14px;
  font-size: 14px; color: var(--navy);
  font-weight: 500;
}
.site-navbar .dropdown-item:hover { background: var(--bg-alt); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  transition: all .18s;
  border: 0;
}
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0,212,255,.28);
}
.btn-cyan:hover { color: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,212,255,.36); }

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(10,31,68,.22);
}
.btn-navy:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,31,68,.32); }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }

.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(0,212,255,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(255,193,7,.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: 13.5px; }
.hero-badge i { color: var(--cyan); font-size: 16px; }
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%; max-width: 400px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-card .row-mini {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.08);
}
.hero-card .row-mini:last-child { border-bottom: 0; }
.hero-card .label { font-size: 12px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .6px; }
.hero-card .value { font-weight: 700; font-size: 16px; }
.hero-card .value.pos { color: #34d399; }
.hero-card .value.cyan { color: var(--cyan); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: rgba(255,255,255,.78); }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: rgba(0,212,255,.10);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-navy .section-eyebrow {
  background: rgba(0,212,255,.15);
  color: var(--cyan);
}
.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 46px;
  font-size: 15.5px;
}

/* ---------- Statistics ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,.12), rgba(0,212,255,.04));
  color: var(--cyan-dark);
  margin-bottom: 14px;
}
.stat-card .num { font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,212,255,.35);
}
.feature-card .icon-lg {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--cyan);
  margin-bottom: 18px;
}
.feature-card h5 { font-size: 18px; margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Plan cards ---------- */
.plan-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
  transition: all .3s;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,212,255,.35); }
.plan-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0,212,255,.18);
}
.plan-card.featured::before {
  content: "POPULAR";
  position: absolute; top: 18px; right: -32px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  padding: 6px 40px;
  transform: rotate(45deg);
}
.plan-name { font-size: 22px; margin-bottom: 6px; }
.plan-desc { color: var(--muted); font-size: 13.5px; min-height: 42px; }
.plan-roi {
  font-family: 'Sora', sans-serif;
  font-size: 44px; font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 18px 0 4px;
}
.plan-roi .pct { color: var(--cyan-dark); font-size: 26px; }
.plan-roi-label { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.plan-meta {
  display: grid; gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.plan-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.plan-meta-row .k { color: var(--muted); }
.plan-meta-row .v { font-weight: 600; color: var(--navy); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.testimonial-card .stars { color: var(--gold); font-size: 13px; margin-bottom: 12px; }
.testimonial-card .msg { color: #334155; font-size: 14.5px; line-height: 1.7; margin-bottom: 18px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .who .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial-card .who .name { font-weight: 600; font-size: 14px; color: var(--navy); }
.testimonial-card .who .pos  { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  padding: 18px 22px;
  font-size: 15px;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--bg-alt);
  color: var(--navy);
}
.faq-accordion .accordion-button::after {
  background-image: none;
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--cyan-dark);
  transform: none;
  transition: transform .2s;
}
.faq-accordion .accordion-button:not(.collapsed)::after { transform: rotate(180deg); }
.faq-accordion .accordion-body {
  color: var(--muted);
  padding: 8px 22px 22px;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -10%, rgba(0,212,255,.28), transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; position: relative; }
.cta-banner p  { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 26px; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 70px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 100% 0, rgba(0,212,255,.18), transparent 60%);
}
.page-header h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); position: relative; margin: 0; }
.page-header .breadcrumb { position: relative; margin: 10px 0 0; }
.page-header .breadcrumb a { color: rgba(255,255,255,.7); }
.page-header .breadcrumb a:hover { color: var(--cyan); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.95); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---------- Forms (public) ---------- */
.form-label { font-weight: 600; color: var(--navy); font-size: 13.5px; margin-bottom: 6px; }
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  background: #fbfcfe;
  transition: all .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,212,255,.15);
  background: #fff;
}
.form-control::placeholder { color: #94a3b8; }
.form-text { font-size: 12.5px; color: var(--muted); }

/* ---------- Auth pages (login/register) ---------- */
.auth-wrapper {
  min-height: calc(100vh - 76px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--line);
}
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-card .brand-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy); font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(0,212,255,.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%);
  color: rgba(255,255,255,.72);
  padding: 66px 0 28px;
  margin-top: 0;
}
.site-footer .footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 20px;
  font-family: 'Sora', sans-serif;
}
.site-footer .footer-brand .brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.site-footer .footer-text { font-size: 14px; line-height: 1.7; max-width: 360px; }
.site-footer .footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  transition: all .18s;
}
.site-footer .footer-social a:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }
.site-footer .footer-heading {
  color: #fff; font-size: 13px; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 700;
}
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 9px; }
.site-footer .footer-links a { color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer .footer-links a:hover { color: var(--cyan); }
.site-footer .footer-contact { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; margin-bottom: 11px;
}
.site-footer .footer-contact i { color: var(--cyan); margin-top: 3px; }
.site-footer .footer-divider { border-color: rgba(255,255,255,.09); margin: 40px 0 22px; }
.site-footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.site-footer .disclaimer { font-size: 12.5px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--cyan);
  border: 0;
  box-shadow: 0 10px 30px rgba(10,31,68,.35);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all .25s;
  z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan); color: var(--navy); }

/* ---------- Helpers ---------- */
.text-muted-2 { color: var(--muted) !important; }
.text-cyan { color: var(--cyan-dark) !important; }
.bg-navy  { background: var(--navy) !important; }
.bg-cyan  { background: var(--cyan) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-sm-soft { box-shadow: var(--shadow-sm) !important; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 992px) {
  .hero { padding: 60px 0 70px; }
  .hero-visual { margin-top: 40px; min-height: 320px; }
  .section { padding: 60px 0; }
}
@media (max-width: 768px) {
  .site-navbar .nav-link { padding: 12px 14px !important; }
  .site-navbar .navbar-nav { gap: 0; padding: 12px 0; }
  .cta-banner { padding: 40px 24px; }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
  .back-to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
  .plan-roi { font-size: 36px; }
}