/* ═══════════════════════════════════════════════════
   MySDC Public Website — public.css
   Colors: Dark Blue #0d2b6e | Light Blue #3a9fd4 | Orange #f47c20
═══════════════════════════════════════════════════ */

:root {
  --blue:        #0d2b6e;
  --blue-mid:    #1a4299;
  --blue-light:  #3a9fd4;
  --blue-pale:   #e8f4fb;
  --orange:      #f47c20;
  --orange-dark: #d96a10;
  --orange-pale: #fff4ec;
  --white:       #ffffff;
  --light-bg:    #f8fafc;
  --text-dark:   #1a1f36;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(13, 43, 110, 0.10);
  --shadow-lg:   0 8px 40px rgba(13, 43, 110, 0.16);
}

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

html {
  overflow-x: hidden;
  width: 100%;
  background: var(--white);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* Prevent any section from overflowing on mobile */
section, footer, nav {
  max-width: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 3px; }

/* ═══════════════════ NAVBAR */
#mainNav {
  background: var(--blue);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  transition: background 0.3s;
}
#mainNav.scrolled {
  background: rgba(13, 43, 110, 0.97);
  backdrop-filter: blur(8px);
}
.brand-icon {
  width: 42px; height: 42px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
  flex-shrink: 0;
}
.brand-icon.small { width: 34px; height: 34px; font-size: 1rem; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px; transition: all 0.2s;
}
.navbar-nav .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.1); }

/* ═══════════════════ BUTTONS */
.btn-orange { background: var(--orange); color: #fff; border: none; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(244,124,32,0.4); }
.btn-blue { background: var(--blue-light); color: #fff; border: none; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn-blue:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(58,159,212,0.35); }
.btn-outline-blue { border: 2px solid var(--blue-light); color: var(--blue-light); background: transparent; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn-outline-blue:hover { background: var(--blue-light); color: #fff; transform: translateY(-1px); }
.btn-outline-light { border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; border-radius: 8px; font-weight: 600; transition: all 0.2s; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.8); }

/* ═══════════════════ SECTION COMMONS */
.section-pad { padding: 80px 0; }
.section-badge { display: inline-block; background: var(--blue-pale); color: var(--blue-light); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 50px; }
.section-badge.light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--blue); margin-top: 0.5rem; line-height: 1.25; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0.75rem auto 0; }

/* ═══════════════════ HERO */
.hero-section { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #1860b8 100%); position: relative; overflow: hidden; min-height: 100vh; }
.hero-bg-overlay { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.text-orange { color: var(--orange) !important; }
.badge-pill { display: inline-flex; align-items: center; background: rgba(244,124,32,0.15); border: 1px solid rgba(244,124,32,0.35); color: #ffb07a; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 50px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; color: #fff; line-height: 1.15; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.78); max-width: 520px; margin-top: 1rem; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.2); align-self: stretch; }

/* Hero status card */
.hero-card-wrapper { position: relative; display: inline-block; width: 100%; max-width: 420px; }
.hero-status-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 1.75rem; color: #fff; }
.status-header { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.green { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse-green 2s infinite; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.85rem; }
.status-label { color: rgba(255,255,255,0.6); }
.status-val { font-weight: 600; }
.status-footer { text-align: center; }

.floating-badge { position: absolute; background: white; border-radius: 50px; padding: 0.45rem 1rem; font-size: 0.78rem; font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,0.15); color: var(--blue); white-space: nowrap; animation: float 3s ease-in-out infinite; max-width: calc(100% - 40px); }
.badge-1 { top: -18px; right: 20px; animation-delay: 0s; }
.badge-2 { bottom: -18px; left: 20px; color: #16a34a; animation-delay: 1.5s; }

@media (max-width: 576px) {
  .floating-badge { display: none; }
  .hero-card-wrapper { overflow: hidden; }
}
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* ═══════════════════ TRUST BAR */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); }
.trust-item { font-size: 0.88rem; font-weight: 500; }
.trust-sep { color: var(--border); }
.text-blue { color: var(--blue-light) !important; }

/* ═══════════════════ FEATURE CARDS */
.feature-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.75rem; transition: all 0.25s; display: flex; flex-direction: column; }
.feature-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; flex-shrink: 0; }
.feature-icon.blue      { background: var(--blue-pale);  color: var(--blue); }
.feature-icon.orange    { background: var(--orange-pale); color: var(--orange); }
.feature-icon.light-blue { background: #e0f2fe;           color: var(--blue-light); }
.feature-card h5 { font-weight: 700; color: var(--blue); margin-bottom: 0.5rem; }
.feature-card p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ═══════════════════ HOW IT WORKS */
.step-card { padding: 2rem 1.5rem; position: relative; }
.step-number { font-size: 3.5rem; font-weight: 900; color: var(--blue-pale); line-height: 1; margin-bottom: 0.5rem; }
.step-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 4px 16px rgba(13,43,110,0.25); }
.step-card h5 { font-weight: 700; color: var(--blue); }
.step-card p  { color: var(--text-muted); font-size: 0.9rem; }
.step-connector { position: absolute; top: 52px; left: calc(33.33% + 32px); right: calc(33.33% + 32px); height: 2px; background: repeating-linear-gradient(90deg, var(--blue-light) 0, var(--blue-light) 8px, transparent 8px, transparent 16px); }

.status-guide { background: var(--light-bg); border-radius: var(--radius-lg); padding: 2rem; }
.status-guide-item { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; border: 1px solid var(--border); }
.status-guide-item .dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.status-guide-item.green .dot  { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.status-guide-item.yellow .dot { background: #eab308; box-shadow: 0 0 8px rgba(234,179,8,0.4); }
.status-guide-item.red .dot    { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.tray-icon-img { width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }

/* ═══════════════════ REQUIREMENTS */
.req-table-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 0.5rem; box-shadow: var(--shadow); overflow: hidden; }
.req-table-card table { margin: 0; }
.req-table-card tr { border-bottom: 1px solid var(--border); }
.req-table-card tr.last-row { border-bottom: none; }
.req-table-card td { padding: 0.9rem 1rem; vertical-align: middle; }
.req-icon-col { width: 44px; color: var(--blue-light); font-size: 1.1rem; }
.req-label    { font-weight: 600; color: var(--blue); font-size: 0.88rem; }
.req-value    { color: var(--text-muted); font-size: 0.88rem; }
.req-note { background: var(--blue-pale); border-radius: 0 0 10px 10px; padding: 0.75rem 1rem; font-size: 0.82rem; color: var(--blue); }

/* ═══════════════════ API SECTION */
.api-section { background: linear-gradient(160deg, var(--blue) 0%, #162f80 100%); position: relative; }
.code-card { background: #0f172a; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.code-header { background: #1e293b; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red    { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green  { background: #22c55e; }
.code-body { padding: 1.25rem; margin: 0; font-size: 0.78rem; line-height: 1.6; color: #e2e8f0; background: transparent; overflow-x: auto; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; }
.c-method { color: #f97316; font-weight: 700; }
.c-port   { color: #fb923c; }
.c-key    { color: #7dd3fc; }
.c-str    { color: #86efac; }
.c-num    { color: #fbbf24; }

.api-endpoint-pill { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); font-size: 0.85rem; font-family: monospace; }
.method-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.method-badge.post { background: rgba(244,124,32,0.3); color: #ffb07a; }
.method-badge.get  { background: rgba(58,159,212,0.3); color: #7dd3fc; }

/* ═══════════════════ PRICING */
.pricing-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 0; overflow: hidden; box-shadow: var(--shadow); transition: all 0.25s; display: flex; flex-direction: column; position: relative; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--orange); box-shadow: 0 8px 32px rgba(244,124,32,0.2); }
.featured-badge { background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; padding: 0.35rem; letter-spacing: 0.5px; }
.pricing-header { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%); padding: 1.75rem 1.5rem; text-align: center; color: #fff; }
.pricing-card.featured .pricing-header { background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%); }
.plan-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.plan-name { font-weight: 700; font-size: 1.1rem; margin: 0; }
.plan-price { font-size: 1.8rem; font-weight: 900; margin-top: 0.5rem; }
.plan-period { font-size: 0.8rem; opacity: 0.75; }
.plan-features { list-style: none; padding: 1.25rem 1.5rem; margin: 0; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.plan-features li { font-size: 0.87rem; display: flex; align-items: center; gap: 0.5rem; }
.plan-features li i { font-size: 1rem; flex-shrink: 0; }
.pricing-card .btn { margin: 0 auto 1.5rem; }
.pricing-card .w-100 { width: 90% !important; }

/* ═══════════════════ AUDIT */
.audit-option-list { display: flex; flex-direction: column; gap: 1.25rem; }
.audit-opt { display: flex; align-items: flex-start; gap: 1rem; }
.audit-opt-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.audit-opt-icon.blue       { background: var(--blue-pale);  color: var(--blue); }
.audit-opt-icon.orange     { background: var(--orange-pale); color: var(--orange); }
.audit-opt-icon.light-blue { background: #e0f2fe;            color: var(--blue-light); }
.audit-path-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.75rem; box-shadow: var(--shadow); }
.path-item { display: flex; align-items: flex-start; gap: 1rem; }
.path-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.path-icon.pending { background: #fff7ed; color: var(--orange); }
.path-icon.sent    { background: #f0fdf4; color: #16a34a; }
.path-icon.logs    { background: var(--blue-pale); color: var(--blue); }
.path-label { font-weight: 600; font-size: 0.85rem; color: var(--blue); }
.path-code  { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* ═══════════════════ SUPPORT */
.support-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 2rem 1.5rem; transition: all 0.25s; }
.support-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-3px); }
.support-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(244,124,32,0.2); color: var(--orange); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.support-card h5 { color: #fff; font-weight: 700; }
.support-card p  { font-size: 0.88rem; color: rgba(255,255,255,0.65) !important; }

.troubleshoot-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 2rem; }
.trouble-item { display: flex; align-items: flex-start; gap: 1rem; background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 1rem; }
.trouble-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.trouble-icon.red      { background: rgba(239,68,68,0.15);   color: #ef4444; }
.trouble-icon.yellow   { background: rgba(234,179,8,0.15);   color: #eab308; }
.trouble-icon.orange-ic { background: rgba(244,124,32,0.15); color: var(--orange); }
.trouble-icon.blue-ic  { background: rgba(58,159,212,0.15);  color: var(--blue-light); }
.trouble-item strong { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.trouble-item p { color: rgba(255,255,255,0.6) !important; }

/* ═══════════════════ CTA */
.cta-section { background: linear-gradient(90deg, var(--orange-dark) 0%, var(--orange) 100%); }

/* ═══════════════════ FOOTER */
.footer { background: #0a1f55; }
.footer p, .footer small { color: rgba(255,255,255,0.55); }
.footer-heading { color: rgba(255,255,255,0.5); font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.45rem; font-size: 0.88rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-divider { border-color: rgba(255,255,255,0.08); }
.text-light-blue { color: var(--blue-light) !important; }
.badge-version { background: rgba(58,159,212,0.2); color: var(--blue-light); }

/* Dark section text overrides */
.api-section .text-muted,
.api-section p,
.api-section small { color: rgba(255,255,255,0.65) !important; }
.code-header .text-muted { color: rgba(255,255,255,0.45) !important; }
.api-endpoint-pill .text-muted { color: rgba(255,255,255,0.45) !important; }
.cta-section p { color: rgba(255,255,255,0.88) !important; }

/* Scroll animations */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE */
@media (max-width: 991px) {
  .hero-section { min-height: auto; }
  .step-connector { display: none !important; }
}
@media (max-width: 767px) {
  .section-pad { padding: 56px 0; }
  .hero-title { font-size: 2rem; }
}
