/* NexGen AI — shared design system
   Clean, neutral, AI-product aesthetic. No decorative gradients or neon styling.
*/

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-subtle: #f3f3ee;
  --surface-hover: #efefe9;
  --text: #171717;
  --text-muted: #676763;
  --text-faint: #8e8e88;
  --line: #e3e3dc;
  --line-strong: #d1d1c8;
  --accent: #151515;
  --accent-soft: #ecece7;
  --success: #157347;
  --success-bg: #ecf7f0;
  --warning: #8a5a00;
  --warning-bg: #fff7e3;
  --danger: #b42318;
  --danger-bg: #fff0ed;
  --info: #3f5f7b;
  --info-bg: #edf3f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 12px 35px rgba(0,0,0,.07);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: 160ms ease;
  --content: 1180px;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: #111; color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfcfc7; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b5b5ad; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-shell {
  max-width: var(--content);
  margin: 0 auto;
  min-height: 66px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 7px;
  margin-right: 8px;
  font-size: 11px;
}
.navbar .logo span { color: var(--text-muted); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 520;
  transition: color var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav .nav-cta {
  color: #fff;
  background: var(--text);
  padding: 9px 13px;
  border-radius: 9px;
}
.site-nav .nav-cta:hover { color: #fff; opacity: .9; }

/* Layout */
.container { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.page-pad { padding: 80px 0; }
.narrow { max-width: 860px; }

/* Type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}
.section-title {
  margin: 14px 0 0;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -.045em;
  line-height: 1.04;
  max-width: 760px;
}
.section-subtitle {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 680px;
}
.section-copy {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  background: transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  line-height: 1;
  transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: var(--text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #2a2a2a; }
.btn-outline { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--surface); border-color: #bdbdb5; }
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { background: var(--surface-subtle); color: var(--text); }
.btn-danger { color: var(--danger); background: var(--danger-bg); border-color: #f5cbc5; }
.btn-sm { padding: 8px 11px; font-size: 12px; }
.btn-lg { padding: 13px 18px; font-size: 14px; border-radius: 11px; }

/* Surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-header h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.card-body { padding: 20px; }
.panel-title { font-size: 14px; font-weight: 700; margin: 0; }
.panel-kicker { color: var(--text-faint); font-size: 12px; margin: 3px 0 0; }

/* Forms */
.input-group { margin-bottom: 16px; }
label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
input::placeholder, textarea::placeholder { color: #a2a29c; }
input:focus, textarea:focus, select:focus {
  border-color: #6e6e68;
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}
.checkbox-label input { width: auto; }

/* Tags / states */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.tag-ok { color: var(--success); background: var(--success-bg); }
.tag-err { color: var(--danger); background: var(--danger-bg); }
.tag-warn { color: var(--warning); background: var(--warning-bg); }
.tag-info { color: var(--info); background: var(--info-bg); }

.empty-state {
  padding: 46px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 5px; }
.empty-state p { margin: 0 auto; max-width: 440px; font-size: 13px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--line); background: #f4f4ef; }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 54px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 34px; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer-nav h4 { margin: 0 0 12px; font-size: 12px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 12px; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--text-faint); font-size: 11px; }
.footer-bottom a { text-decoration: none; }

/* Product preview */
.product-frame { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.browser-bar { display:flex; gap:6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f7f7f2; }
.browser-bar span { width: 7px; height:7px; border-radius:50%; background:#cfcfc7; }
.preview-shell { display:grid; grid-template-columns: 180px 1fr; min-height: 360px; }
.preview-sidebar { background:#f7f7f2; border-right:1px solid var(--line); padding: 16px; }
.preview-sidebar .mini-logo { font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.preview-nav-item { font-size: 11px; color:var(--text-faint); padding:7px 8px; border-radius:7px; margin-bottom:2px; }
.preview-nav-item.active { color:var(--text); background:#e9e9e3; }
.preview-main { padding: 22px; }
.preview-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.preview-heading strong { font-size: 16px; letter-spacing:-.02em; }
.preview-heading span { color:var(--text-faint); font-size:11px; }
.preview-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:18px; }
.preview-stat { border:1px solid var(--line); border-radius:10px; padding:12px; }
.preview-stat small { color:var(--text-faint); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.preview-stat b { display:block; font-size:18px; margin-top:5px; }
.preview-chat { margin-top:18px; border:1px solid var(--line); border-radius:12px; min-height:190px; padding:14px; display:flex; flex-direction:column; gap:10px; justify-content:flex-end; }
.preview-bubble { max-width:75%; padding:9px 11px; border-radius:10px; font-size:11px; line-height:1.55; }
.preview-bubble.user { margin-left:auto; background:#161616; color:#fff; }
.preview-bubble.ai { background:#f2f2ed; color:#454541; }

/* Utilities */
.stack { display:grid; gap: 16px; }
.grid-2 { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:24px; }
.grid-3 { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:18px; }
.divider { height:1px; background:var(--line); }
.muted { color:var(--text-muted); }
.center { text-align:center; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .preview-shell { grid-template-columns: 150px 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(var(--content), calc(100% - 32px)); }
  .nav-shell { min-height: 60px; padding: 0 16px; }
  .nav-toggle { display:block; }
  .site-nav {
    display:none;
    position:absolute;
    left:16px; right:16px; top:66px;
    padding:12px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:var(--shadow-md);
    flex-direction:column;
    align-items:stretch;
    gap:2px;
  }
  .site-nav.open { display:flex; }
  .site-nav a { padding:10px; }
  .row-2, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .preview-grid { grid-template-columns:1fr; }
  .preview-shell { grid-template-columns:1fr; }
  .preview-sidebar { display:none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns:1fr; }
  .section-title { font-size: 36px; }
  .section-subtitle { font-size: 15px; }
  .footer { margin-top:60px; }
}

.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
