:root {
  /* IBM Carbon-inspired palette */
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --bg-dark: #161616;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --border: #e0e0e0;
  --border-strong: #8d8d8d;
  --text: #161616;
  --text-inverse: #ffffff;
  --muted: #525252;
  --muted-2: #6f6f6f;
  --blue: #0f62fe;
  --blue-hover: #0353e9;
  --blue-dark: #002d9c;
  --focus: #0f62fe;
  --maxw: 1264px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons - Carbon style: rectangular, no radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.85rem 1.4rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.11s ease, border-color 0.11s ease, color 0.11s ease;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.btn-sm { min-height: 40px; padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-primary {
  background: var(--blue);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover { background: rgba(15, 98, 254, 0.08); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid #393939;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.brand-name { color: #fff; letter-spacing: 0.1px; }
.nav-links {
  margin-left: 1.5rem;
  display: flex;
  gap: 0;
  height: 100%;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  height: 100%;
  color: #c6c6c6;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; text-decoration: none; background: #292929; }
.nav .btn-primary { margin-left: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.32px;
  font-size: 0.82rem;
  text-transform: none;
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--blue);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.4px;
}
.lead { color: var(--muted); font-size: 1.18rem; max-width: 44ch; }
.hero-cta { display: flex; gap: 0; margin: 1.8rem 0 1.6rem; flex-wrap: wrap; }
.hero-cta .btn { min-width: 190px; justify-content: flex-start; }
.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.92rem;
}
.hero-badges li { display: flex; align-items: center; gap: 0.5rem; }
.hero-badges li::before { content: "\2014"; color: var(--blue); font-weight: 700; }

/* Hero visual */
.hero-visual { position: relative; }
.device {
  background: var(--bg-dark);
  border: 1px solid #393939;
  border-radius: 0;
  overflow: hidden;
}
.device-bar {
  display: flex; gap: 7px; padding: 12px 14px;
  border-bottom: 1px solid #393939; background: #262626;
}
.device-bar span { width: 11px; height: 11px; border-radius: 50%; background: #525252; }
.device-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.msg { padding: 0.75rem 0.95rem; border-radius: 0; font-size: 0.95rem; max-width: 90%; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; }
.msg.ai { align-self: flex-start; background: #262626; color: #f4f4f4; border-left: 3px solid var(--blue); }
.msg .src { display: block; margin-top: 0.45rem; font-size: 0.76rem; color: #a8a8a8; }
.pulse { align-self: flex-start; font-size: 0.82rem; color: #78a9ff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }
.chip {
  position: absolute; z-index: 2;
  font-size: 0.76rem; font-weight: 600;
  padding: 0.4rem 0.8rem; border-radius: 0;
}
.chip-secure {
  top: -13px; right: 16px;
  background: var(--blue); color: #fff;
}

/* Trust strip */
.trust { background: var(--bg-dark); }
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; padding: 0; text-align: left;
}
.trust-row div {
  padding: 2rem 1.5rem;
  background: var(--bg-dark);
  border-left: 1px solid #393939;
}
.trust-row div:first-child { border-left: 0; }
.trust-row strong { display: block; font-size: 2.2rem; font-weight: 300; color: #fff; margin-bottom: 0.2rem; }
.trust-row span { color: #a8a8a8; font-size: 0.9rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 400;
  text-align: left;
  margin: 0 0 0.75rem;
  letter-spacing: -0.3px;
  max-width: 20ch;
}
.section-title.left { text-align: left; }
.section-sub { text-align: left; color: var(--muted); max-width: 62ch; margin: 0 0 3rem; font-size: 1.05rem; }
.section-sub.left { text-align: left; margin-left: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.card {
  background: var(--surface);
  padding: 2rem 1.75rem 2.5rem;
  transition: background 0.11s ease;
  border-top: 3px solid transparent;
}
.card:hover { background: #f4f4f4; border-top-color: var(--blue); }
.card-icon { font-size: 1.7rem; margin-bottom: 1rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

/* Feature list */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); }
.feature {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--border);
}
.feature:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--border); padding-left: 0; }
.feature:nth-child(even) { padding-left: 2.5rem; }
.feature-num {
  font-weight: 600; color: var(--blue);
  font-size: 1.05rem; background: transparent;
  border: 0; border-radius: 0;
  min-width: auto; height: auto; display: block;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); }

/* Flow */
.flow { display: flex; align-items: stretch; justify-content: flex-start; gap: 0; flex-wrap: wrap; border: 1px solid var(--border); }
.flow-step {
  background: var(--surface); border-right: 1px solid var(--border);
  border-radius: 0; padding: 2rem 1.75rem; flex: 1; min-width: 220px; text-align: left;
}
.flow-step:last-of-type { border-right: 0; }
.flow-badge {
  width: 40px; height: 40px; border-radius: 0; margin: 0 0 1rem;
  display: grid; place-items: center; font-weight: 600; color: #fff;
  background: var(--blue); font-size: 1.05rem;
}
.flow-step h3 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 600; }
.flow-step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.flow-arrow { display: none; }
.flow-note { text-align: left; color: var(--muted); margin-top: 1.5rem; font-size: 0.95rem; padding-left: 0.9rem; border-left: 3px solid var(--border-strong); }

/* Requirements */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.req-list li {
  background: var(--surface); border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 1.15rem 0; color: var(--muted);
}
.req-list strong { color: var(--text); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details {
  background: transparent; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 0 0.25rem;
}
.faq summary { cursor: pointer; font-weight: 400; font-size: 1.1rem; padding: 1.15rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; color: var(--blue); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 1.15rem; color: var(--muted); max-width: 70ch; }

/* CTA */
.cta { padding: 5rem 0; background: var(--bg-dark); color: #fff; }
.cta-inner { text-align: left; max-width: 680px; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; margin: 0 0 0.75rem; color: #fff; }
.cta p { color: #c6c6c6; margin: 0 0 2rem; font-size: 1.08rem; }
.cta-form { display: flex; gap: 0; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 220px; font: inherit; color: #fff;
  background: #262626; border: 1px solid #393939; border-bottom: 1px solid #6f6f6f;
  border-radius: 0; padding: 0.9rem 1rem; min-height: 48px;
}
.cta-form input::placeholder { color: #a8a8a8; }
.cta-form input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.cta-form .btn { min-width: 160px; }
.cta-msg { margin-top: 1.25rem; color: #42be65; font-weight: 500; }
.cta-fine { font-size: 0.82rem; margin-top: 1.25rem; color: #a8a8a8; }

/* Footer */
.site-footer { border-top: 1px solid #393939; background: var(--bg-dark); padding-top: 3rem; color: #c6c6c6; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-tag { color: #a8a8a8; margin-top: 1rem; max-width: 34ch; }
.footer-grid h4 { margin: 0 0 0.9rem; font-size: 0.85rem; font-weight: 600; color: #f4f4f4; text-transform: uppercase; letter-spacing: 0.4px; }
.footer-grid a { display: block; color: #c6c6c6; padding: 0.3rem 0; font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #393939; padding: 1.4rem 1.5rem; color: #a8a8a8; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .feature-list { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd), .feature:nth-child(even) {
    padding: 1.75rem 0; border-right: 0;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row div:nth-child(3) { border-left: 0; }
  .req { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-form input { min-width: 100%; }
  .cta-form .btn { width: 100%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-dark);
    border-bottom: 1px solid #393939; padding: 0.5rem 0; gap: 0; margin-left: 0;
  }
  .nav-links.open a { padding: 0.9rem 1.5rem; height: auto; }
  .nav-toggle { display: flex; }
  .nav .btn-primary { display: none; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}
