/* ============================================================
   Neurlyte website — built on the Neurlyte brand tokens
   ============================================================ */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-bg: #eef0ff;
  --purple: #a855f7;
  --gradient: linear-gradient(to top right, #6366f1, #a855f7);

  --app-bg: #f5f6f8;
  --panel-bg: #ffffff;
  --card-bg: #f8f9fb;
  --border: #e4e7ec;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.12);

  --text-main: #1a1d23;
  --text-body: #3f4754;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font);
  background: var(--app-bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--text-main); line-height: 1.25; }
img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--text-body); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius);
  transition: background .15s;
}
.nav-cta:hover { background: var(--primary-hover); }
.lang-toggle {
  border: 1px solid var(--border); background: var(--panel-bg);
  color: var(--text-body); border-radius: var(--radius);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  padding: 6px 12px; cursor: pointer; transition: all .15s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: var(--radius); transition: all .15s; cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff; padding: 12px 26px; font-size: 15px;
  box-shadow: 0 4px 14px -4px rgba(99,102,241,.5);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel-bg); color: var(--text-main); padding: 12px 26px; font-size: 15px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 38px; font-size: 16px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 148px 0 88px;
  background: var(--panel-bg);
}
.hero-glow {
  position: absolute; top: -220px; left: -10%;
  width: 1000px; height: 560px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99,102,241,.16), rgba(168,85,247,.08), transparent);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--primary); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.hero-sub {
  font-size: 17.5px; color: var(--text-muted);
  max-width: 540px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-bg); color: var(--text-body);
  border: 1px solid #dfe2ff; border-radius: 999px;
  padding: 9px 20px; font-size: 14px;
}
.hero-badge strong { color: var(--primary); }
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(22,163,74,.15);
}
.hero-figure {
  position: relative;
  background: linear-gradient(160deg, #eef0ff 0%, #f6effe 100%);
  border: 1px solid #dfe2ff;
  border-radius: 20px;
  padding: 28px 28px 16px;
  box-shadow: 0 24px 48px -24px rgba(99,102,241,.35);
}
.hero-figure img {
  width: 100%; border-radius: 12px;
  mix-blend-mode: multiply;
}
.hero-figure figcaption {
  text-align: center; font-size: 13px; color: var(--text-muted);
  padding: 12px 8px 4px;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--panel-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--primary); margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700;
  text-align: center; letter-spacing: -.01em;
  max-width: 720px; margin: 0 auto 48px;
}
.section-lead {
  text-align: center; max-width: 720px; margin: -24px auto 44px;
  color: var(--text-muted); font-size: 16.5px;
}
.section-answer {
  max-width: 820px; margin: 40px auto 0; text-align: center;
  font-size: 16.5px; color: var(--text-body);
  background: var(--primary-bg); border: 1px solid #dfe2ff;
  border-radius: var(--radius-lg); padding: 20px 28px;
}
.section-answer strong { color: var(--primary); }
.section-source {
  text-align: center; color: var(--text-faint);
  font-size: 12.5px; margin-top: 24px;
}

/* ===== Grids & cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--card-bg); }

/* Problem stat cards */
.stat-num {
  font-size: 38px; font-weight: 800; letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin: 2px 0 16px; }
.stat-card h3 { font-size: 17px; margin-bottom: 10px; }
.stat-card p { font-size: 14.5px; }

/* Solution */
.solution-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.solution-heading { font-size: 19px; margin-bottom: 20px; }
.model-item { display: flex; gap: 16px; margin-bottom: 22px; }
.model-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--primary-bg);
  border-radius: var(--radius); border: 1px solid #dfe2ff;
}
.model-item h4 { font-size: 16px; margin-bottom: 4px; }
.model-item p { font-size: 14.5px; color: var(--text-muted); }
.model-note { font-size: 13px; color: var(--text-faint); }
.layer-card {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.layer-card:nth-child(3) { border-left-color: #7f7df3; }
.layer-card:nth-child(4) { border-left-color: var(--purple); }
.layer-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--primary); margin-bottom: 6px;
}
.layer-card h4 { font-size: 16px; margin-bottom: 6px; }
.layer-card p { font-size: 14.5px; color: var(--text-muted); }
.privacy-banner {
  margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(to right, #eef0ff, #f6effe);
  border: 1px solid #dfe2ff; border-radius: var(--radius-lg);
  padding: 18px 24px; font-weight: 600; color: var(--text-main);
  text-align: center; flex-wrap: wrap;
}

/* Capabilities */
.cap-card { text-align: left; }
.cap-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--primary-bg);
  border: 1px solid #dfe2ff; border-radius: var(--radius); margin-bottom: 16px;
}
.cap-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--text-muted); }

/* Product screenshots */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shot {
  background: var(--panel-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; object-position: top; }
.shot figcaption { padding: 20px 24px 24px; }
.shot figcaption strong { display: block; color: var(--text-main); font-size: 16px; margin-bottom: 6px; }
.shot figcaption span { font-size: 14px; color: var(--text-muted); }

/* Scenarios */
.grid-scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scen-card { display: flex; flex-direction: column; }
.scen-icon { font-size: 26px; margin-bottom: 12px; }
.scen-card h3 { font-size: 17px; margin-bottom: 8px; }
.scen-card p { font-size: 14.5px; color: var(--text-muted); flex: 1; }
.scen-tag {
  display: inline-block; margin-top: 16px; align-self: flex-start;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-bg); border-radius: 999px; padding: 5px 12px;
}

/* Why us */
.why-card h3 { font-size: 17px; margin-bottom: 10px; }
.why-card h3::before {
  content: "✓"; color: var(--primary); font-weight: 800; margin-right: 8px;
}
.why-card p { font-size: 14.5px; color: var(--text-muted); }

/* Contact */
.contact { background: var(--panel-bg); border-top: 1px solid var(--border); }
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 16px; }
.contact p { color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }

/* Footer */
.footer { background: #0f141b; color: #9ca3af; padding: 48px 0; }
.footer-inner { text-align: center; }
.footer-inner img { margin: 0 auto 14px; }
.footer-inner p { font-size: 14px; }
.footer-meta { color: #5b6472; font-size: 12.5px !important; margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { max-width: 520px; }
}
@media (max-width: 720px) {
  .grid-3, .grid-scen, .shot-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel-bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .lang-toggle { margin-top: 12px; align-self: flex-start; }
}
