:root {
  /* FundedNext-inspired Light Theme: Crisp White + Electric Indigo/Purple + Trading Green */
  --bg-primary: #f6f7fb;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9faff;
  --border-subtle: rgba(99, 91, 255, 0.14);
  --border-accent: rgba(99, 91, 255, 0.45);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.14);
  --accent-cyan: #635bff;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-indigo: #635bff;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: #f6f7fb;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(99, 91, 255, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 85% 18%, rgba(168, 85, 247, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #f6f7fb 0%, #eef1ff 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #635bff, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(99, 91, 255, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--accent-emerald);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(90deg, #635bff 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(99, 91, 255, 0.38);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background: #ffffff;
  border-color: rgba(99, 91, 255, 0.25);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.08);
}

.btn-admin {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 15px;
  border-radius: 8px;
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.35);
  color: #4f46e5;
}

.btn-admin:hover {
  background: rgba(99, 91, 255, 0.18);
  border-color: #635bff;
  color: #3730a3;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.24);
}

/* Hero Section */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.3);
  color: #4f46e5;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #635bff 0%, #a855f7 55%, #09e354 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item .stat-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-item .stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Telemetry Card */
.telemetry-card {
  background: #ffffff;
  border: 1px solid rgba(99, 91, 255, 0.22);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 22px 54px rgba(99, 91, 255, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.telemetry-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.strat-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.strat-tab.active {
  background: #635bff;
  color: #ffffff;
  font-weight: 600;
}

.chart-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.chart-svg {
  width: 100%;
  height: 175px;
  display: block;
}

.telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.t-metric {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.t-metric .tm-k {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.t-metric .tm-v {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
}

.text-emerald { color: #059669; }
.text-cyan { color: #635bff; }
.text-amber { color: #d97706; }
.text-rose { color: #e11d48; }

/* FundedNext-Style Highlight Ticker Strip */
.fn-ticker-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.fn-ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.fn-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fn-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #09e354;
  box-shadow: 0 0 8px #09e354;
}

/* Sections */
.section {
  padding: 76px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b85ff;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 91, 255, 0.45);
  box-shadow: 0 18px 40px rgba(99, 91, 255, 0.12);
}

.card.featured {
  border-color: #635bff;
  box-shadow: 0 18px 42px rgba(99, 91, 255, 0.16);
}

.card-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.22);
  color: #4f46e5;
  margin-bottom: 14px;
  width: fit-content;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-line {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 12px 0 16px;
}

.price-line span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  margin: 16px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #635bff;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.status-banner {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.status-banner.success {
  display: block;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.35);
  color: #065f46;
}

.status-banner.error {
  display: block;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #9f1239;
}

/* Admin View & Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.modal-box.wide {
  max-width: 680px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Admin Dashboard Section */
#admin-dashboard {
  display: none;
  padding: 48px 0 84px;
}

#admin-dashboard.active {
  display: block;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.kpi-card .kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.kpi-card .kpi-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: 4px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-tab-btn.active {
  background: #635bff;
  border-color: #635bff;
  color: #ffffff;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.project-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #4f46e5;
  background: rgba(99, 91, 255, 0.12);
  padding: 3px 8px;
  border-radius: 5px;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-live {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.35);
}

.status-backtest {
  background: rgba(99, 91, 255, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 91, 255, 0.35);
}

.status-rd {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.project-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.pm-cell {
  text-align: center;
}

.pm-cell .pm-k {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.pm-cell .pm-v {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  white-space: pre-line;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.inquiry-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.inquiry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.inquiry-table th,
.inquiry-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.inquiry-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f8fafc;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
  background: #ffffff;
  margin-top: 40px;
}

.disclaimer-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 920px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
