:root {
  --primary: #967bf3;
  --secondary: #575988;
  --dark: #0a0a0f;
  --dark-2: #12131c;
  --dark-3: #171929;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --gradient: linear-gradient(135deg, #967bf3 0%, #575988 100%);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; border: none; cursor: pointer;
  font-weight: 600; font-size: 14px; font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #a68ff5; }
.btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.04); }

.hero {
  padding: 88px 0 72px;
  background: var(--dark);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 720px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.18; letter-spacing: -0.025em;
  margin-bottom: 18px; color: #fff;
}
.hero p {
  color: var(--muted); font-size: 17px; line-height: 1.65;
  max-width: 560px; margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-meta li {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-meta li::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}

section { padding: 72px 0; }
.section-title {
  font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 32px; font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--dark-3); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card i { color: var(--primary); font-size: 22px; margin-bottom: 12px; display: block; }

.keywords {
  display: none !important;
  background: var(--dark-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.nav a[href="#keywords"] { display: none !important; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.03);
}
.keyword-chip:hover { border-color: var(--primary); color: #fff; }

.flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch;
}
.flow-step {
  position: relative; background: var(--dark-3); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px; text-align: center;
}
.flow-step .num {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 10px;
  display: grid; place-items: center; background: var(--gradient); font-weight: 800; font-size: 14px;
}
.flow-step h4 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--muted); }
.flow-arrow {
  display: none;
}

.build-list { list-style: none; }
.build-list li {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.build-list li strong { color: #fff; display: block; margin-bottom: 2px; }
.build-list .step-badge {
  min-width: 32px; height: 32px; border-radius: 8px;
  background: rgba(150, 123, 243, 0.2); color: #c8baff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}

.mermaid-wrap {
  background: #0f111a; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; overflow-x: auto;
}
.mermaid { display: flex; justify-content: center; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; color: #fff; text-align: left;
  padding: 18px 0; font-size: 16px; font-weight: 600; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { color: var(--muted); padding: 0 0 18px; font-size: 15px; }
.faq-item.open .faq-a { max-height: 240px; }
.faq-item.open .faq-q i { transform: rotate(45deg); }

.finlo-cta {
  background:
    radial-gradient(circle at 20% 30%, rgba(150, 123, 243, 0.22), transparent 45%),
    var(--dark-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.finlo-cta h2 { margin-bottom: 12px; }
.finlo-cta p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.finlo-logo {
  height: 48px; margin: 0 auto 18px; object-fit: contain;
}

.footer {
  padding: 40px 0 28px; border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.footer a:hover { color: #fff; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  width: min(560px, 100%);
  background: #12131c; border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 24px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal-close {
  float: right; background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer;
}
.modal-close:hover { color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--muted); font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #0a0a0f; color: #fff;
  font-family: inherit; font-size: 14px;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-success {
  display: none; text-align: center; padding: 24px 8px;
}
.form-success.active { display: block; }
.form-success i { font-size: 42px; color: #3ba755; margin-bottom: 12px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .grid-3, .grid-2, .flow { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero p { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { margin-bottom: 28px; }
  .hero-meta { gap: 10px 20px; padding-top: 22px; }
  section { padding: 52px 0; }
}
