/* ============================================================
   NW Agentic — Landing Page Styles
   nwagentic.ai
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0f1c2e;
  --navy-mid:    #162440;
  --navy-light:  #1e3a5f;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-pale:   #eff6ff;
  --amber:       #d97706;
  --amber-light: #f59e0b;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --white:       #ffffff;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:   0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / 0.12), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --t:           0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgb(37 99 235 / 0.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--lg  { padding: 0.875rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* Section typography */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}
.section-label--light { color: var(--amber-light); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1.075rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--t), box-shadow var(--t), padding var(--t);
}
.nav.scrolled {
  background: rgba(15, 28, 46, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-right: auto;
}
.nav__logo-mark {
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.22em 0.5em;
  border-radius: 5px;
  letter-spacing: 0.04em;
}
.nav__logo-text { color: var(--white); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav__links a:hover { color: var(--white); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

/* Dot-grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__bg-glow--1 {
  width: 560px; height: 560px;
  background: rgba(37, 99, 235, 0.2);
  top: -140px; left: -120px;
}
.hero__bg-glow--2 {
  width: 420px; height: 420px;
  background: rgba(217, 119, 6, 0.12);
  bottom: -80px; right: -80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45em 1.1em;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero__headline {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero__headline--accent { color: #60a5fa; }

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hero__trust {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.02em;
}

/* ============================================================
   PROBLEM (STATS)
   ============================================================ */
.problem {
  padding: 6rem 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--t), transform var(--t);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card__number {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.04em;
}
.stat-card__label {
  font-size: 0.93rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* ============================================================
   SOLUTION
   ============================================================ */
.solution {
  padding: 6rem 0;
  background: var(--gray-50);
}

.solution__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.solution__text {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.solution__list {
  margin-bottom: 2rem;
}
.solution__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.5;
}
.solution__list li:last-child { border-bottom: none; }
.solution__list svg { flex-shrink: 0; margin-top: 1px; }

/* Workflow diagram */
.solution__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 340px;
}

.workflow-node {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.workflow-node--agent {
  background: var(--navy);
  border-color: var(--navy-light);
}
.workflow-node--agent .workflow-node__label { color: var(--white); }
.workflow-node--agent .workflow-node__sub    { color: rgba(255, 255, 255, 0.5); }

.workflow-node__icon   { margin-bottom: 0.5rem; }
.workflow-node__label  { font-size: 0.92rem; font-weight: 600; color: var(--gray-700); }
.workflow-node__sub    { font-size: 0.77rem; color: var(--gray-400); margin-top: 0.25rem; }

.workflow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.workflow-connector__line {
  width: 1.5px;
  height: 14px;
  background: var(--gray-300, #cbd5e1);
}
.workflow-connector__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* ============================================================
   USE CASES
   ============================================================ */
.use-cases {
  padding: 6rem 0;
  background: var(--white);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.25rem;
}

.use-case-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.use-case-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.07), var(--shadow-md);
  transform: translateY(-3px);
}

.use-case-card__icon  { margin-bottom: 1.25rem; }
.use-case-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}
.use-case-card__desc {
  font-size: 0.93rem;
  color: var(--gray-500);
  margin-bottom: 1.1rem;
  line-height: 1.65;
}
.use-case-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.use-case-card__features li {
  font-size: 0.84rem;
  color: var(--gray-700);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.use-case-card__features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 6rem 0;
  background: var(--gray-50);
}

.steps {
  display: flex;
  flex-direction: column;
  max-width: 740px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.step:last-child { border-bottom: none; }

.step__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  flex-shrink: 0;
  min-width: 76px;
  letter-spacing: -0.05em;
  user-select: none;
}
.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}
.step__desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0;
  background: var(--navy);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.contact__text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact__benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Form card */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 48px rgb(0 0 0 / 0.3);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gray-700);
}
.label-opt {
  font-weight: 400;
  color: var(--gray-400);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-group textarea { resize: vertical; min-height: 96px; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.2rem;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.form-success__icon {
  width: 58px; height: 58px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.form-success p { color: var(--gray-500); line-height: 1.65; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__tagline {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.2rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  transition: color var(--t);
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
}
.footer__copy a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .solution__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .solution__visual { display: none; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  /* Full-screen mobile menu */
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.2rem;
    z-index: 99;
  }
  .nav__links.open a {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .form-row { grid-template-columns: 1fr; }

  .step { flex-direction: column; gap: 0.6rem; }
  .step__number { font-size: 2.25rem; min-width: auto; }

  .contact__form-wrap { padding: 1.75rem 1.5rem; }
}

@media (max-width: 500px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
}
