/* ==========================================================================
   Differential Spaces — landing page styles

   Contents (in page order):
     1. Global / shared
     2. Navigation bar
     3. Hero (headline + product illustration)
     4. Trust strip
     5. "The problem" cards
     6. "How it works" steps
     7. Specialized agents cards
     8. Security section (dark)
     9. Final call-to-action
    10. Footer
    11. Responsive breakpoints
   ========================================================================== */


/* ==========================================================================
   1. Global / shared
   ========================================================================== */

:root {
  --color-ink: #1a1a1a;      /* near-black, used for text and borders */
  --color-blue: #2a78d6;     /* accent color for CTAs and highlights */
  --color-muted: #666;       /* secondary text */
  --color-faint: #999;       /* tertiary text, placeholders */
  --color-paper: #fafaf8;    /* light background for alternating sections */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--color-ink);
  font-family: 'Shantell Sans', system-ui, sans-serif;
}

/* Centers content and caps the page width */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
}

a {
  color: inherit;
}

input,
button {
  font: inherit;
}

/* Small uppercase monospace label above each section title */
.section-eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-faint);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 10px;
}

/* Section intro block (eyebrow + title), kept narrow for readability */
.section-head {
  max-width: 560px;
}

/* Four equal columns, used by several sections */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Nav links and "Contact us" buttons glide down to the form instead of jumping */
html {
  scroll-behavior: smooth;
}

/* "Contact us" link in the hero, styled as a button */
.contact-button-row {
  margin-top: 6px;
}

.contact-button {
  display: inline-block;
  border-radius: 9px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  background: var(--color-blue);
  color: #fff;
  text-decoration: none;
}

.contact-button:hover {
  background: #2266ba;
}

.fineprint {
  font-size: 12px;
  color: var(--color-faint);
}


/* ==========================================================================
   2. Navigation bar
   ========================================================================== */

.nav {
  border-bottom: 1.5px solid var(--color-ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 40px;
}

.brand {
  display: flex;
  align-items: flex-start; /* logo box lines up with the top of the brand name */
  gap: 9px;
}

/* The small "DS AI" rectangular box used as a logo */
.logo {
  padding: 5px 10px;
  border: 1.5px solid var(--color-ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}

/* Brand name with tagline stacked underneath */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--color-muted);
}

/* Pushes nav links to the right */
.nav-spacer {
  flex: 1;
}

.nav-link {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-ink);
}

/* "Log in" button: outlined, so the filled "Contact us" stays the main call to action */
.nav-login {
  border: 1.5px solid var(--color-ink);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  color: var(--color-ink);
  text-decoration: none;
}

.nav-login:hover {
  background: var(--color-paper);
}

.nav-cta {
  border: 1.5px solid var(--color-ink);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
}


/* ==========================================================================
   2b. Animation strip (Three.js neural network, between nav and hero)
   ========================================================================== */

/* The <hero-nn-dots-bg> element positions itself absolutely to fill this */
.network-strip {
  position: relative;
  height: 110px;
  overflow: hidden;
}


/* ==========================================================================
   3. Hero (headline + product illustration)
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  padding: 56px 40px 50px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-eyebrow {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-blue);
}

.hero-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #555;
  max-width: 440px;
}

/* --- Hero illustration: a fake app window with three columns --- */

.app-window {
  border: 1.5px solid var(--color-ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.08);
}

/* Title bar with three window dots and an "on-prem" status */
.app-window-titlebar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1.5px solid var(--color-ink);
  background: #fafafa;
  align-items: center;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--color-ink);
}

.window-status {
  margin-left: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  color: #2a9a5b;
}

.app-window-columns {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;
  height: 250px;
}

.app-column {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Vertical divider between columns (applied to all but the last) */
.app-column-divided {
  border-right: 1.5px solid var(--color-ink);
}

.app-column-title {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--color-faint);
}

/* Grey placeholder bars representing file names */
.placeholder-bar {
  height: 9px;
  background: #e8e6e1;
  border-radius: 3px;
}

.placeholder-bar-blue {
  background: #d8e5f5;
}

.placeholder-bar-green {
  background: #dff0e6;
}

/* Rounded placeholder blocks representing chat bubbles */
.chat-bubble {
  height: 26px;
  background: #f0eee9;
  border-radius: 8px;
}

.chat-bubble-blue {
  background: #d8e5f5;
  align-self: flex-end;
}

.chat-bubble-empty {
  margin-top: auto;
  height: 24px;
  border: 1.5px dashed #bbb;
  border-radius: 8px;
  background: none;
}

/* Blue keyword labels (ROLE, TASK, CONSTRAINTS) in the prompt column */
.prompt-keyword {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  color: var(--color-blue);
}

/* Thin grey placeholder lines representing prompt text */
.prompt-line {
  height: 8px;
  background: #e8e6e1;
  border-radius: 3px;
}


/* ==========================================================================
   4. Trust strip
   ========================================================================== */

.trust-strip {
  border-top: 1.5px solid var(--color-ink);
  border-bottom: 1.5px solid var(--color-ink);
  background: var(--color-paper);
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 40px;
  flex-wrap: wrap;
}

.trust-strip-label {
  font-size: 12px;
  color: var(--color-faint);
  flex: none;
}

.trust-pill {
  border: 1.5px solid #ddd;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--color-muted);
}


/* ==========================================================================
   5. "The problem" cards
   ========================================================================== */

.problem-section {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.problem-card {
  border: 1.5px solid var(--color-ink);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-card-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-ink);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.problem-card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 15.5px;
}

.problem-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* The fourth card is the positive "solution" card, highlighted in blue */
.problem-card-solution {
  border-color: var(--color-blue);
  background: #f4f8fd;
}

.problem-card-solution .problem-card-icon {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.problem-card-solution h3 {
  color: var(--color-blue);
}


/* ==========================================================================
   6. "How it works" steps
   ========================================================================== */

.how-section {
  border-top: 1.5px solid var(--color-ink);
  background: var(--color-paper);
}

.how-section-inner {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
}

.step img {
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.step h3 {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
}

.step p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
}


/* ==========================================================================
   7. Specialized agents cards
   ========================================================================== */

.agents-section {
  border-top: 1.5px solid var(--color-ink);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.agents-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.agents-note {
  font-size: 13px;
  color: var(--color-muted);
  max-width: 300px;
  line-height: 1.5;
}

.agents-section .grid-4 {
  gap: 16px;
}

.agent-card {
  border: 1.5px solid var(--color-ink);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-card-tag {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-blue);
}

.agent-card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.agent-card p {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.45;
}

/* The fourth card is a dashed "your industry here" placeholder */
.agent-card-custom {
  border-style: dashed;
  border-color: var(--color-faint);
  background: var(--color-paper);
}

.agent-card-custom .agent-card-tag {
  color: var(--color-faint);
}

.agent-card-custom h3 {
  color: var(--color-muted);
}

.agent-card-custom p {
  color: var(--color-faint);
}


/* ==========================================================================
   8. Security section (dark)
   ========================================================================== */

.security-section {
  border-top: 1.5px solid var(--color-ink);
  background: var(--color-ink);
  color: #fff;
}

.security-inner {
  padding: 60px 40px;
  display: flex;
  gap: 50px;
}

.security-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-section .section-eyebrow {
  color: #8ab4e8;
}

.security-section .section-title {
  line-height: 1.25;
  margin-top: 0;
}

.security-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
  max-width: 400px;
}

.security-badge {
  border: 1.5px solid #555;
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 6px;
}

.security-checklist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.security-check {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.security-check-mark {
  color: #7dd8a3;
  font-weight: 700;
}

.security-check-text {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.security-check-text b {
  color: #fff;
}


/* ==========================================================================
   9. Final call-to-action
   ========================================================================== */

.cta-section {
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.cta-section h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 520px;
}

.cta-section p {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-muted);
  max-width: 440px;
  line-height: 1.55;
}

/* Contact form: one column of fields, left-aligned inside the centered section */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-top: 6px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid #999;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-ink);
  background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-faint);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical; /* user can make it taller, not wider */
}

/* The hCaptcha box is a fixed-width iframe, narrower than the form.
   Left alone it sits against the left edge; this centers it. */
.contact-form .h-captcha {
  align-self: center;
}

.contact-form button {
  align-self: center;
  border: 0;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  background: var(--color-blue);
  color: #fff;
  cursor: pointer;
}

.contact-form button:hover {
  background: #2266ba;
}

/* Spam-trap checkbox: must exist in the form but never be visible */
.spam-trap {
  display: none;
}


/* ==========================================================================
   10. Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 40px;
  border-top: 1.5px solid var(--color-ink);
  font-size: 12px;
  color: var(--color-faint);
}

.footer .logo {
  padding: 3px 8px;
  border-color: var(--color-faint);
  border-radius: 5px;
  font-size: 10px;
}

.footer-spacer {
  flex: 1;
}

.footer a {
  color: var(--color-faint);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-ink);
}


/* ==========================================================================
   11. Responsive breakpoints
   ========================================================================== */

/* Tablet and below */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .agents-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-inner {
    flex-direction: column;
  }
}

/* Phones */
@media (max-width: 600px) {
  .nav-inner {
    padding: 14px 20px;
    gap: 14px;
  }

  .nav-link {
    display: none;
  }

  /* Not enough room for the tagline next to the Email us button */
  .brand-tagline {
    display: none;
  }

  .hero,
  .trust-strip-inner,
  .problem-section,
  .how-section-inner,
  .agents-section,
  .security-inner,
  .cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }
}
