/* ---------- Tokens ---------- */
:root {
  --bg: #0b0f1a;
  --bg-alt: #0f1424;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-alt: #eef1f8;
  --ink: #0b1020;
  --ink-soft: #3b4360;
  --muted: #6b7390;
  --line: #e5e8f2;
  --brand: #5b6cff;
  --brand-2: #7c5bff;
  --brand-3: #00c2a8;
  --accent: #ffb547;
  --danger: #e5484d;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.06), 0 1px 1px rgba(11,16,32,.04);
  --shadow: 0 6px 24px rgba(30, 41, 87, .08), 0 2px 6px rgba(30,41,87,.06);
  --shadow-lg: 0 30px 80px -20px rgba(30,41,87,.25);
  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --grad-brand: linear-gradient(135deg, #5b6cff 0%, #7c5bff 45%, #00c2a8 100%);
  --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(91,108,255,.25), transparent 60%),
               radial-gradient(800px 500px at 90% 10%, rgba(124,91,255,.22), transparent 60%),
               radial-gradient(700px 500px at 50% 120%, rgba(0,194,168,.18), transparent 60%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-2); }
ul { padding-left: 1.1rem; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.muted { color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent;
  --_fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.45rem; font-size: 1rem; }
.btn-primary { --_bg: var(--ink); --_fg: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { --_bg: var(--brand); color: #fff; transform: translateY(-1px); }
.btn-ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { --_bg: var(--surface-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(11,16,32,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; }
.brand-footer { font-size: 1.05rem; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(91,108,255,.4);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 4px;
  transform: rotate(45deg);
}
.brand-dot { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--_fg); }
.nav-toggle { display: none; background: transparent; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 18px; gap: 14px; border-top: 1px solid var(--line); background: #fff; min-height: 91.2vh;}
.mobile-menu a { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-hero); }
.orb { position: absolute; filter: blur(60px); opacity: .55; border-radius: 50%; }
.orb-a { width: 360px; height: 360px; background: #5b6cff; top: -60px; left: -40px; }
.orb-b { width: 300px; height: 300px; background: #7c5bff; top: 20%; right: -40px; }
.orb-c { width: 260px; height: 260px; background: #00c2a8; bottom: -80px; left: 35%; opacity: .35; }
.hero-inner { position: relative; text-align: left; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px; background: rgba(91,108,255,.08);
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.05; margin-bottom: 20px; }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.2rem; max-width: 720px; margin-bottom: 28px; color: var(--ink-soft); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; flex-direction: column; gap: 12px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; background: rgba(11,16,32,.05);
  border: 1px solid rgba(11,16,32,.06);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--surface-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.section-sub { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Value strip ---------- */
.value-strip { padding: 24px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { display: flex; flex-direction: column; gap: 4px; }
.value-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.value-text { color: var(--muted); font-size: .95rem; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand); opacity: .85;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(91,108,255,.3); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-block;
  background: var(--grad-brand); position: relative;
  box-shadow: 0 8px 20px rgba(91,108,255,.25);
}
.product-icon::after {
  content: ""; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-position: center; background-repeat: no-repeat; background-size: 22px 22px;
}
.icon-brain::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 1 1-5 0V17a2.5 2.5 0 0 1-2-4 2.5 2.5 0 0 1 0-4 2.5 2.5 0 0 1 2-4 2.5 2.5 0 0 1 2.5-3Z'/><path d='M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 1 0 5 0V17a2.5 2.5 0 0 0 2-4 2.5 2.5 0 0 0 0-4 2.5 2.5 0 0 0-2-4 2.5 2.5 0 0 0-2.5-3Z'/></svg>"); }
.icon-file::after    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5'/><path d='M9 13h6M9 17h4'/></svg>"); }
.icon-bank::after    { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10 12 4l9 6'/><path d='M5 10v8M9 10v8M15 10v8M19 10v8'/><path d='M3 20h18'/></svg>"); }
.icon-spark::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v6M12 16v6M4 12h6M14 12h6M5 5l4 4M15 15l4 4M19 5l-4 4M9 15l-4 4'/></svg>"); }
.icon-globe::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/></svg>"); }
.icon-agent::after   { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='10' rx='2'/><circle cx='12' cy='5' r='4'/><path d='M8 15h.01M16 15h.01M10 18h4'/></svg>"); }

.subsection-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 32px 0 12px; }

.product-audience {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); background: var(--surface-soft); padding: 5px 10px; border-radius: 999px;
}
.product-tagline { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.product-summary { color: var(--ink-soft); margin-bottom: 16px; }
.product-highlights { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.product-highlights li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-soft); }
.product-highlights li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--grad-brand);
}
.product-link {
  margin-top: auto; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px dashed transparent; padding-bottom: 2px;
}
.product-link:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: flex-start; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow-sm); }
.why-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.why-card p { margin: 0; font-size: .95rem; }

/* ---------- Powered by ---------- */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.partner-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.partner-card::after {
  content: ""; position: absolute; bottom: -60px; right: -60px; width: 200px; height: 200px;
  background: var(--grad-brand); opacity: .08; border-radius: 50%;
}
.partner-role {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.partner-card h3 { font-size: 1.6rem; margin: 8px 0; }
.powered-note { text-align: center; font-size: .95rem; }

/* ---------- Blog ---------- */
.blog-hero { padding-top: 60px; padding-bottom: 30px; }
.blog-hero h1 { margin-top: 12px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
.blog-grid-lg { gap: 26px; }
.blog-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(91,108,255,.25); color: var(--ink); }
.blog-tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: rgba(91,108,255,.08);
  padding: 4px 10px; border-radius: 999px;
}
.blog-card h3 { margin: 0; font-size: 1.2rem; }
.blog-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.blog-meta { font-size: .82rem; color: var(--muted); margin-top: auto; }

/* ---------- Post ---------- */
.post-inner { max-width: 760px; margin: 0 auto; }
.back-link { font-size: .9rem; color: var(--muted); display: inline-block; margin-bottom: 20px; }
.post-meta { margin-bottom: 32px; }
.post-body { font-size: 1.05rem; color: var(--ink-soft); }
.post-body h2 { margin-top: 2em; color: var(--ink); }
.post-body h3 { margin-top: 1.6em; color: var(--ink); }
.post-body p, .post-body li { color: var(--ink-soft); }
.post-body code { background: var(--surface-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.post-body pre { background: var(--bg); color: #e5e7ef; padding: 20px; border-radius: var(--radius); overflow-x: auto; }
.post-body blockquote { border-left: 3px solid var(--brand); padding-left: 16px; margin-left: 0; color: var(--ink); font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stats > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
}
.about-stats strong { font-family: var(--font-display); color: var(--ink); }
.about-stats span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-section { background: var(--bg); color: #fff; position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(91,108,255,.25), transparent 60%),
    radial-gradient(500px 400px at 95% 100%, rgba(0,194,168,.18), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.75); }
.cta-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.cta-list li { color: rgba(255,255,255,.85); }

.cta-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  backdrop-filter: blur(12px);
}
.cta-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.75); }
.cta-form .full { grid-column: 1 / -1; }
.cta-form input,
.cta-form select,
.cta-form textarea {
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  outline: none; border-color: var(--brand); background: rgba(255,255,255,.08);
}
.cta-form select option { color: var(--ink); }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .9rem; min-height: 1.2em; }
.form-status.ok { color: #63e6b4; }
.form-status.err { color: #ffb2b2; }
.required-star { color: #ef4444; font-weight: 700; margin-left: 2px; }
.form-subtext { grid-column: 1 / -1; margin: 0 0 4px; font-size: .85rem; color: rgba(255,255,255,.65); }
.error-msg { font-size: .8rem; color: #ef4444; min-height: 1em; }
.cta-form button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: rgba(255,255,255,.75); padding: 60px 0 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.footer-grid .brand-footer { color: #fff; margin-bottom: 12px; }
.footer-grid .brand-footer .brand-dot { color: var(--brand-3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 70px 0; }
  .why-grid, .about-grid, .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-cards { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open="true"] { display: flex; }
  .cta-form { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding: 56px 0 40px; }
}
