/* SaphyreCo marketing site — converted from the Claude Design export.
   Palette: bg #faf9f6 · ink #16150f · muted #5a564d · faint #8a8478
   border #e6e2da · cream #f4f1ea · chat #f0ece3 · gold #9c7d3c
   dark-border #3a372e · dark-text #c9c4b8 */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #faf9f6;
  color: #16150f;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #16150f; text-decoration: none; }
a:hover { color: #9c7d3c; }
::selection { background: #16150f; color: #faf9f6; }

@keyframes scRecPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes scTypeDot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.container { max-width: 1060px; margin: 0 auto; padding: 110px 48px 120px; }
.section-white { background: #ffffff; }
.section-cream { background: #f4f1ea; }
.section-dark { background: #16150f; color: #faf9f6; }
.bordered-top { border-top: 1px solid #e6e2da; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e2da;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { width: 44px; height: 44px; display: block; }
.nav-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 600; letter-spacing: 0.06em;
}
.nav-brand:hover { color: #16150f; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; letter-spacing: 0.02em; }
.nav-links a { color: #5a564d; }
.nav-links a:hover { color: #16150f; }
.btn-outline {
  padding: 10px 22px; border: 1px solid #16150f;
  color: #16150f !important; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: #16150f; color: #faf9f6 !important; }
.btn-solid {
  display: inline-block; padding: 16px 44px;
  background: #16150f; color: #faf9f6 !important;
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  transition: background 0.2s ease;
}
.btn-solid:hover { background: #33302a; }

/* ---------- Hero ---------- */
.hero { max-width: 1060px; margin: 0 auto; padding: 110px 48px 130px; text-align: center; }
.hero-emblem { width: 150px; height: 150px; display: block; margin: 0 auto 18px; }
.hero-tagline {
  margin: 0 0 56px; font-size: 13px; letter-spacing: 0.32em;
  text-transform: uppercase; color: #8a8478;
}
.hero h1 {
  margin: 0 auto 28px; max-width: 900px;
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(44px, 5.6vw, 76px); line-height: 1.08;
  letter-spacing: -0.01em; text-wrap: balance;
}
.hero-sub { margin: 0 auto 44px; max-width: 520px; font-size: 19px; line-height: 1.6; color: #5a564d; }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.section-head-lg { margin-bottom: 64px; }
.section-no { font-family: 'Playfair Display', serif; font-size: 15px; color: #9c7d3c; letter-spacing: 0.08em; }
.section-head h2 {
  margin: 0; font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.01em;
}
.section-kicker { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: #8a8478; }
.lede { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.7; color: #5a564d; }
.lede-build { margin-bottom: 72px; }
.lede-how { margin-bottom: 64px; }

/* ---------- What we build ---------- */
.build-list { display: flex; flex-direction: column; }
.build-row {
  display: grid; grid-template-columns: 80px 260px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid #e6e2da;
}
.build-row-last { border-bottom: 1px solid #e6e2da; }
.build-num { font-family: 'Playfair Display', serif; font-size: 14px; color: #9c7d3c; }
.build-row h3 { margin: 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 21px; }
.build-row p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #5a564d; }

/* ---------- Demo player ---------- */
.player {
  max-width: 880px; margin: 0 auto 88px;
  border: 1px solid #16150f; background: #faf9f6;
  box-shadow: 0 24px 60px -32px rgba(22, 21, 15, 0.35);
}
.player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #16150f; color: #8a8478;
}
.player-dots { display: flex; align-items: center; gap: 8px; }
.player-dots span { width: 9px; height: 9px; border-radius: 50%; background: #3a372e; }
.player-title { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.player-rec {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #9c7d3c;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #9c7d3c; animation: scRecPulse 1.6s ease-in-out infinite; }
.player-stage { position: relative; height: 440px; overflow: hidden; }
.scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 36px; transition: opacity 0.7s ease;
  pointer-events: none; opacity: 0;
}
.scene.active { opacity: 1; }

/* Phone mockup */
.phone {
  width: 400px; max-width: 100%;
  border: 1px solid #e6e2da; background: #f0ece3;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 32px -20px rgba(22, 21, 15, 0.4);
}
.phone-wide { width: 420px; }
.phone-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #ffffff; border-bottom: 1px solid #e6e2da;
}
.z2 { position: relative; z-index: 2; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #16150f; color: #faf9f6;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 15px;
}
.phone-head-txt { flex: 1; }
.ph-name { margin: 0; font-size: 13.5px; font-weight: 600; }
.ph-status { margin: 0; font-size: 11.5px; color: #8a8478; }
.ph-status.gold { color: #9c7d3c; }
.ph-menu { color: #8a8478; font-size: 16px; letter-spacing: 2px; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chip {
  align-self: center; font-size: 11px; color: #8a8478;
  background: #ffffff; border: 1px solid #e6e2da;
  border-radius: 999px; padding: 3px 11px;
}
.msg { max-width: 85%; }
.msg-out {
  align-self: flex-end; background: #16150f; color: #faf9f6;
  padding: 8px 12px; border-radius: 12px 12px 4px 12px;
}
.msg-in {
  align-self: flex-start; background: #ffffff; border: 1px solid #e6e2da;
  padding: 8px 12px; border-radius: 12px 12px 12px 4px;
}
.msg-txt { margin: 0; font-size: 14px; line-height: 1.5; }
.msg-time { margin: 4px 0 0; font-size: 10.5px; color: #8a8478; text-align: right; }
.ticks { color: #9c7d3c; }
.msg-agent { margin: 0 0 3px; font-size: 12px; font-weight: 600; color: #9c7d3c; }
/* Scene 1 photo message uses tighter padding around the image */
.scene[data-scene="0"] .msg-out { padding: 6px; }
.msg-img {
  height: 96px; background: #33302a; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8a8478;
}
.msg .pad { margin-left: 6px; margin-right: 6px; }
.msg-txt.pad { margin-top: 8px; margin-bottom: 2px; }
.msg-time.pad { margin-bottom: 4px; }
.phone-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #ffffff; border-top: 1px solid #e6e2da;
}
.input-pill {
  flex: 1; border: 1px solid #e6e2da; border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: #8a8478; background: #faf9f6;
}
.send-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: #16150f; color: #faf9f6;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Document cards (job card / work order) */
.doc-card { width: 460px; max-width: 100%; border: 1px solid #e6e2da; background: #ffffff; padding: 28px 32px; }
.doc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #16150f;
}
.doc-label { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #8a8478; }
.doc-no { font-family: 'Playfair Display', serif; font-size: 22px; }
.doc-grid { display: grid; grid-template-columns: 130px 1fr; row-gap: 11px; font-size: 14px; }
.doc-grid > span { color: #8a8478; }
.doc-grid > .v { color: inherit; }
.doc-grid > .gold { color: #9c7d3c; }
.doc-note { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #e6e2da; font-size: 12.5px; color: #8a8478; }

/* Spreadsheet card */
.sheet { width: 520px; max-width: 100%; border: 1px solid #e6e2da; background: #ffffff; }
.sheet-title {
  padding: 12px 18px; border-bottom: 1px solid #e6e2da;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8478;
}
.sheet-body { padding: 22px 26px; }
.sheet-head-row {
  display: grid; grid-template-columns: 64px 56px 1fr 110px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8478;
  padding-bottom: 10px; border-bottom: 1px solid #16150f;
}
.sheet-row {
  display: grid; grid-template-columns: 64px 56px 1fr 110px;
  font-size: 14px; padding: 11px 0; border-bottom: 1px solid #e6e2da;
}
.sheet-total {
  display: grid; grid-template-columns: 1fr 110px;
  padding: 13px 0 0; font-family: 'Playfair Display', serif; font-size: 17px;
}
.r { text-align: right; }
.sheet-note { margin: 18px 0 0; font-size: 12.5px; color: #8a8478; }

/* Scene 6 scrolling chat */
.chat-window { height: 252px; overflow: hidden; }
.chat-scroll { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.typing { display: flex; gap: 5px; align-items: center; padding: 12px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8a8478; animation: scTypeDot 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

/* Player tabs */
.player-tabs { display: flex; border-top: 1px solid #e6e2da; }
.player-tabs button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; background: none; border: none; border-right: 1px solid #e6e2da;
  cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-size: 12.5px; letter-spacing: 0.04em;
}
.player-tabs button:last-child { border-right: none; }
.tab-num { font-family: 'Playfair Display', serif; color: #8a8478; }
.tab-label { color: #8a8478; }
.player-tabs button.active .tab-num { color: #9c7d3c; }
.player-tabs button.active .tab-label { color: #16150f; }

/* ---------- Timeline ---------- */
.timeline { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 36px; }
.step-marker { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 56px; height: 56px; border: 1px solid #9c7d3c; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 20px; color: #9c7d3c; background: #faf9f6;
}
.step-num-final { border-color: #16150f; color: #faf9f6; background: #16150f; }
.step-line { flex: 1; width: 1px; background: #d8d2c6; margin: 8px 0; }
.step-body { padding: 14px 0 56px; }
.step-body-last { padding-bottom: 0; }
.step-body h3 { margin: 0 0 10px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 23px; }
.step-body p { margin: 0; font-size: 16px; line-height: 1.7; color: #5a564d; }

/* ---------- Case study ---------- */
.case-title {
  margin: 0 0 32px; max-width: 720px;
  font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.12;
  letter-spacing: -0.01em; text-wrap: balance;
}
.case-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; }
.case-body { font-size: 16px; line-height: 1.75; color: #c9c4b8; }
.case-body p { margin: 0 0 20px; }
.case-body p:last-child { margin-bottom: 0; }
.case-stats { display: flex; flex-direction: column; }
.stat { padding: 24px 0; border-top: 1px solid #3a372e; }
.stat-last { border-bottom: 1px solid #3a372e; }
.stat-title { margin: 0 0 6px; font-family: 'Playfair Display', serif; font-size: 26px; color: #faf9f6; }
.stat-sub { margin: 0; font-size: 14px; color: #8a8478; }

/* ---------- Practices ---------- */
.practices-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.practice { border-top: 1px solid #e6e2da; padding-top: 28px; }
.practice-lead { border-top: 2px solid #16150f; }
.practice h3 { margin: 0 0 16px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 27px; }
.practice > p { margin: 0 0 24px; font-size: 16px; line-height: 1.7; color: #5a564d; }
.practice ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #5a564d; }
.practice li { display: flex; gap: 12px; }
.diamond { color: #9c7d3c; font-size: 10px; line-height: 2.2; }

/* ---------- Contact ---------- */
.contact-inner { padding: 100px 48px; text-align: center; }
.contact h2 {
  margin: 0 0 20px; font-family: 'Playfair Display', serif; font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.01em;
}
.contact-sub { margin: 0 auto 40px; max-width: 460px; font-size: 16.5px; line-height: 1.7; color: #5a564d; }
.contact-email { margin: 24px 0 0; font-size: 14px; color: #8a8478; }

/* ---------- Footer ---------- */
.footer { background: #16150f; color: #c9c4b8; }
.footer-inner { padding: 72px 48px 56px; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto; gap: 48px;
  align-items: start; margin-bottom: 56px;
}
.footer-logo { width: 72px; height: 72px; display: block; margin-bottom: 16px; }
.footer-tagline { margin: 0; font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase; color: #8a8478; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; text-align: right; }
.footer-email { color: #faf9f6; }
.footer-links a { color: #8a8478; }
.footer-links a.footer-email { color: #faf9f6; }
.footer-links a:hover { color: #9c7d3c; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 24px; border-top: 1px solid #3a372e;
  font-size: 13px; color: #8a8478;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.btn-outline) { display: none; }
  .container { padding: 72px 24px 80px; }
  .hero { padding: 72px 24px 88px; }
  .hero-emblem { width: 110px; height: 110px; }
  .build-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .build-num { font-size: 13px; }
  .player-title { display: none; }
  .player-stage { height: 480px; }
  .scene { padding: 16px; }
  .player-tabs { flex-wrap: wrap; }
  .player-tabs button { flex: 1 1 33%; border-bottom: 1px solid #e6e2da; }
  .player-tabs button:nth-child(3n) { border-right: none; }
  .player-tabs button:nth-child(n+4) { border-bottom: none; }
  .step { grid-template-columns: 56px 1fr; gap: 20px; }
  .step-num { width: 44px; height: 44px; font-size: 17px; }
  .case-grid, .practices-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { padding: 72px 24px; }
  .footer-inner { padding: 56px 24px 44px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
