/* styles.css (fixed) */
/* Goals:
   1) Brand in header not cut off (add horizontal padding + use container)
   2) Anchor jumps (Pricing/Product/Demo/Contact) not hidden under sticky header
   3) Keep your current clean premium look
*/

:root{
  --bg:#0b0b0c;
  --panel:#111114;
  --text:#f3f4f6;
  --muted:#a7abb4;
  --line:#23242a;
  --radius:14px;

  /* New: sticky header offset for anchor jumps */
  --header-offset: 84px;

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth; /* optional but feels premium */
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
}

a{color:inherit}

.container{
  max-width:980px;
  margin:0 auto;
  padding:0 18px;
}

/* Fix: anchor targets being hidden behind sticky header */
section[id]{
  scroll-margin-top: var(--header-offset);
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  background:rgba(11,11,12,.92);
  border-bottom:1px solid var(--line);
  z-index:50;
  backdrop-filter:saturate(140%) blur(10px);
}

/* IMPORTANT:
   If your HTML header uses <nav class="nav container">, this will align perfectly.
   If you forgot to add "container" class, this padding still prevents edge cut-off.
*/
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px; /* was 14px 0, caused brand to hug edge */
  gap:12px;
}

.brand{
  font-weight:600;
  text-decoration:none;
  white-space:nowrap; /* prevents weird wrap/cut */
}

.nav-links{
  display:flex;
  gap:14px;
  align-items:center;
}

.nav-links a{
  color:var(--muted);
  text-decoration:none;
}

.nav-links a:hover{
  color:var(--text);
}

.btn{
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.btn-primary{
  background:#fff;
  color:#0b0b0c;
  border-color:transparent;
}

.btn-secondary:hover,
.btn:hover{
  border-color:#3a3c45;
}

/* Hero */
.hero{
  padding:46px 0 24px;
}

.hero h1{
  margin:0 0 10px;
  font-size:36px;
  letter-spacing:-.4px;
  line-height:1.12;
}

.muted{color:var(--muted)}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0;
}

.fine{font-size:13px}

/* Sections */
.section{
  padding:40px 0;
  border-top:1px solid var(--line);
}

.grid3{
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
}

.card h3{margin:0 0 8px}

.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}

/* Chat */
.chat{margin-top:12px}

.chat-log{
  height:260px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:rgba(0,0,0,.12);
}

.chat-form{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.chat-input{
  flex:1;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:transparent;
  color:var(--text);
}

.msg{
  margin:8px 0;
  display:flex;
}

.bubble{
  max-width:85%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  white-space:pre-wrap;
}

.user{justify-content:flex-end}

.user .bubble{
  background:#fff;
  color:#0b0b0c;
  border-color:transparent;
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:20px 0;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Desktop */
@media(min-width:900px){
  .grid3{grid-template-columns:repeat(3,1fr)}
  .hero h1{font-size:44px}

  /* Optional: header feels tighter on desktop */
  .nav{padding:14px 18px}
}