:root {
  --paper: #f4f3f1;
  --ink: #1c1c1c;
  --muted: #5c5c5c;
  --soft: #eeece9;
  --line: #d9d7d4;
  --accent: #c45c26;
  --charcoal: #2b2b2b;
  --card-shadow: 0 20px 60px rgba(25, 25, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Serif 4', serif;
  background:
    radial-gradient(circle at top left, rgba(196, 92, 38, 0.16), transparent 24rem),
    linear-gradient(180deg, #f7f4f0 0%, var(--paper) 38%, #ece8e2 100%);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(28, 28, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 28, 0.03) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 85%);
}

.page-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 1.6rem 1rem 4rem;
  position: relative;
}

.topbar,
.hero,
.proof-grid,
.chat-section,
.services,
.process,
.closing {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0 1.4rem;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
}

.brand,
.topbar-copy,
.eyebrow,
.hero-note,
.chat-kicker,
.status-pill,
.contact-panel label,
.contact-actions p,
.process-card span,
.closing p {
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.brand {
  font-size: clamp(1.5rem, 1.4rem + 0.4vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.topbar-copy {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: right;
}

.hero {
  padding: 3rem 0 2.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.hero h1,
.chat-intro h2,
.services h2,
.process h2,
.closing h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 1.8rem + 4.2vw, 5.4rem);
}

.hero-copy,
.chat-intro p,
.services h2,
.service-card p,
.process-card p,
.closing p {
  line-height: 1.45;
}

.hero-copy {
  max-width: 52rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.15rem, 1rem + 0.35vw, 1.45rem);
  color: var(--muted);
}

.hero-note {
  margin: 1.4rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.proof-grid,
.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-grid {
  margin-bottom: 2.4rem;
}

.proof-card,
.service-card,
.process-card {
  min-height: 12rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.proof-card h2,
.service-card h3,
.process-card span {
  font-family: 'Barlow Semi Condensed', sans-serif;
}

.proof-card h2,
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.proof-card p,
.service-card p {
  margin: 0;
  font-size: 1.02rem;
}

.proof-card-dark,
.process,
.chat-section {
  background: var(--charcoal);
  color: var(--paper);
}

.proof-card-dark p,
.process p,
.chat-intro p {
  color: rgba(244, 243, 241, 0.82);
}

.proof-card-dark {
  border-color: rgba(255, 255, 255, 0.06);
}

.proof-card-soft,
.service-card-soft,
.process-card-soft {
  background: var(--soft);
}

.chat-section {
  margin: 2.8rem auto;
  padding: clamp(1.5rem, 1rem + 2vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.chat-section::after {
  content: '';
  position: absolute;
  inset: auto -12rem -10rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.24), transparent 68%);
}

.chat-intro {
  position: relative;
  z-index: 1;
}

.chat-intro h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 1.6rem + 2.2vw, 4rem);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.prompt-chip {
  border: 1px solid rgba(244, 243, 241, 0.22);
  background: transparent;
  color: var(--paper);
  padding: 0.7rem 1rem;
  font: 600 0.95rem 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.prompt-chip:hover {
  transform: translateY(-2px);
  background: rgba(244, 243, 241, 0.08);
}

.chat-shell {
  position: relative;
  z-index: 1;
  border: 2px solid var(--accent);
  background: rgba(244, 243, 241, 0.98);
  color: var(--ink);
  padding: 1.25rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(28, 28, 28, 0.08);
  padding-bottom: 1rem;
}

.chat-header strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
}

.chat-kicker,
.status-pill,
.contact-panel label,
.contact-actions p,
.process-card span,
.closing p {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  background: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 18rem;
  max-height: 25rem;
  margin: 1rem 0;
  overflow: auto;
  padding-right: 0.25rem;
}

.message {
  max-width: 92%;
  padding: 0.95rem 1rem;
  white-space: pre-line;
  line-height: 1.45;
  border: 1px solid rgba(28, 28, 28, 0.08);
}

.message-assistant {
  background: #fff;
}

.message-user {
  margin-left: auto;
  background: var(--soft);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
}

.chat-form textarea,
.contact-panel input {
  width: 100%;
  border: 1px solid rgba(28, 28, 28, 0.14);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.chat-form textarea {
  resize: vertical;
  min-height: 5.5rem;
  padding: 1rem;
}

.chat-form button,
#submit-brief {
  border: none;
  background: var(--charcoal);
  color: var(--paper);
  font: 700 1rem 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.06em;
  padding: 0 1.2rem;
  min-width: 10rem;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.chat-form button:hover,
#submit-brief:hover {
  transform: translateY(-2px);
}

.chat-form button:disabled,
#submit-brief:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.contact-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 28, 28, 0.08);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-panel label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.contact-panel input {
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
}

.contact-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.contact-actions p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.services,
.process,
.closing {
  padding: 3.2rem clamp(1rem, 1vw, 1.5rem);
}

.services h2,
.process h2,
.closing h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 1.6rem + 2vw, 3.7rem);
  margin-bottom: 1.5rem;
}

.service-card-accent,
.process-card-accent {
  background: var(--accent);
  color: var(--paper);
  border-color: transparent;
}

.service-card-accent p,
.process-card-accent p {
  color: rgba(244, 243, 241, 0.94);
}

.process-card {
  min-height: 11.5rem;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.process-card span {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.process-card p {
  margin: 0;
  color: inherit;
  font-size: 1.08rem;
}

.closing p {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #082410;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.28);
  font: 700 0.95rem 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.06em;
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .proof-grid,
  .service-grid,
  .process-grid,
  .chat-section,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .chat-form,
  .contact-actions,
  .topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-form button,
  #submit-brief {
    min-height: 3.2rem;
    width: 100%;
  }

  .topbar-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 0.8rem;
  }

  .chat-section {
    margin: 2rem auto;
    padding: 1rem;
    gap: 1rem;
  }

  .chat-section::after {
    display: none;
  }

  .chat-intro h2 {
    max-width: none;
    font-size: 2rem;
  }

  .chip-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .prompt-chip {
    width: 100%;
    text-align: left;
  }

  .hero,
  .services,
  .process,
  .closing {
    padding-inline: 0;
  }

  .proof-card,
  .service-card,
  .process-card,
  .chat-shell {
    padding: 1rem;
  }

  .chat-shell {
    border-width: 1px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  }

  .chat-header {
    gap: 0.75rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-header strong {
    font-size: 1.05rem;
  }

  .status-pill {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
  }

  .chat-log {
    min-height: 11rem;
    max-height: 14rem;
    gap: 0.7rem;
  }

  .message {
    max-width: 100%;
    padding: 0.8rem 0.85rem;
    font-size: 0.95rem;
  }

  .chat-form textarea {
    min-height: 4.4rem;
    padding: 0.85rem;
  }

  .contact-panel {
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .contact-panel label,
  .contact-actions p {
    font-size: 0.66rem;
  }

  .contact-actions {
    gap: 0.75rem;
  }

  .whatsapp-float {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.78rem 0.9rem;
  }

  .whatsapp-float__label {
    font-size: 0.88rem;
  }
}
