/* SalesCrave — Interior Sales OS homepage */

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #faf9f7;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b73;
  --line: #e6e4df;
  --accent: #e2552c;
  --accent-dark: #c4421d;
  --accent-soft: #fdebe4;
  --green: #1f9e55;
  --dark: #141416;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .07);
  --shadow-lg: 0 30px 70px rgba(24, 24, 27, .16);
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
section { scroll-margin-top: 80px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -0.01em; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow.light { color: #ffb59c; }

h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 820px;
}
h2.center { margin-inline: auto; }
.section-sub { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 620; text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(226, 85, 44, .3); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfcbc4; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:focus-visible, .flow-step:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(226, 85, 44, .35); outline-offset: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 242, .85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; font-weight: 550; letter-spacing: 0; }
.brand > span:last-child { line-height: 1.1; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--dark); }
.mark svg { width: 21px; height: 21px; fill: #fff; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 90px; background: radial-gradient(1200px 500px at 85% -10%, #fde3d8 0%, rgba(253, 227, 216, 0) 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: .98;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--accent); }
.hero-sub { margin-top: 22px; max-width: 540px; color: var(--ink-2); font-size: 19px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-direction: column; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 800; }

.hero-visual { position: relative; padding: 36px 0 70px 70px; }
.desktop-frame { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.phone-frame { border-radius: 34px; border: 8px solid #1c1c1f; background: #1c1c1f; box-shadow: var(--shadow-lg); overflow: hidden; }
.phone-frame img { border-radius: 26px; }
.hero-phone { position: absolute; width: 29%; left: 0; bottom: 0; border-width: 6px; border-radius: 28px; }
.hero-phone img { border-radius: 22px; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-1 { right: -10px; top: 0; }
.chip-2 { right: 4%; bottom: 22px; animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-red { background: var(--accent); }
.dot-green { background: var(--green); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- problem ---------- */
.problem { padding: 90px 0; background: var(--surface); border-block: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.problem-grid article { padding: 28px; border-radius: var(--radius); background: var(--surface-soft); border: 1px solid var(--line); }
.problem-grid .big { font-size: 34px; }
.problem-grid h3 { margin-top: 14px; font-size: 21px; }
.problem-grid p { margin-top: 8px; color: var(--muted); }

/* ---------- workflow ---------- */
.workflow { padding: 110px 0; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 40px; }
.flow-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14.5px; font-weight: 620; text-align: left; color: var(--ink-2); cursor: pointer;
  transition: all .2s ease;
}
.flow-step span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 750;
}
.flow-step:hover { border-color: #cfcbc4; }
.flow-step.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.flow-step.active span { background: var(--accent); color: #fff; }
.flow-panels { margin-top: 26px; }
.flow-panel {
  display: none; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 44px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.flow-panel.active { display: grid; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flow-panel .phone-frame { max-height: 560px; }
.flow-copy h3 { font-size: 30px; line-height: 1.15; }
.flow-copy p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 520px; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; font-weight: 550; }
.ticks li::before { content: "✓"; flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; margin-top: 2px; }
.ticks.light li::before { background: rgba(255, 255, 255, .12); color: #ffb59c; }

/* ---------- features ---------- */
.features { padding: 100px 0; background: var(--surface); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.feature-grid article { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-soft); transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 22px; }
.feature-grid h3 { margin-top: 16px; font-size: 17.5px; }
.feature-grid p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- owners ---------- */
.owners { padding: 110px 0; }
.owners-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; margin-top: 44px; align-items: start; }
.desktop-frame.tall { height: 640px; }
.desktop-frame.tall img { width: 100%; object-fit: cover; object-position: top; }
.owners-list { display: flex; flex-direction: column; gap: 14px; }
.owner-item { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.owner-item h3 { font-size: 19px; }
.owner-item p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.desktop-frame.small { box-shadow: var(--shadow); }

/* ---------- how it's built ---------- */
.built { padding: 110px 0; background: var(--dark); color: #f4f4f5; }
.built h2 { color: #fff; }
.built .eyebrow { color: #ffb59c; }
.built .section-sub { color: #a1a1aa; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.stats div { padding: 22px; border-radius: 18px; background: #1d1d21; border: 1px solid #2a2a2f; }
.stats strong { display: block; font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1; color: #fff; }
.stats span { display: block; margin-top: 8px; color: #a1a1aa; font-size: 14px; }

.arch { margin: 40px 0 0; padding: 24px; border-radius: 24px; background: #18181b; border: 1px solid #2a2a2f; color: #71717a; }
.arch svg { width: 100%; height: auto; font-family: var(--sans); }
.a-box rect { fill: #1f1f23; stroke: #2e2e34; }
.a-box.accent rect { fill: #24191a; stroke: #4a2a20; }
.a-card rect { fill: #27272c; stroke: #34343b; }
.a-h { fill: #a1a1aa; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.a-t { fill: #f4f4f5; font-size: 16px; font-weight: 650; }
.a-s { fill: #a1a1aa; font-size: 13px; }
.a-line { fill: none; stroke: #f0683d; stroke-width: 2; color: #f0683d; }
.a-line.dashed { stroke-dasharray: 6 6; stroke: #71717a; color: #71717a; }

.decisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.decisions article { padding: 24px; border-radius: 20px; background: #1d1d21; border: 1px solid #2a2a2f; }
.decisions h3 { font-size: 18px; color: #fff; }
.decisions p { margin-top: 8px; color: #a1a1aa; font-size: 15px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stack span { padding: 7px 13px; border-radius: 999px; border: 1px solid #34343b; color: #d4d4d8; font-size: 13.5px; font-family: var(--mono); }

/* ---------- get your CRM ---------- */
.get { padding: 110px 0; background: linear-gradient(160deg, #1b1b1e 0%, #2b1a14 100%); color: #f4f4f5; }
.get-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.get h2 { color: #fff; }
.get-copy p { margin-top: 16px; color: #d4d4d8; font-size: 18px; max-width: 480px; }
.get-form { padding: 30px; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.get-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 620; }
.get-form label small { color: var(--muted); font-weight: 500; }
.get-form input, .get-form select, .get-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #d6d3cd; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
}
.get-form textarea { resize: vertical; min-height: 84px; }
.get-form .invalid { border-color: var(--accent); background: #fff8f5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 22px; font-size: 15px; font-weight: 550; text-align: center; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--accent-dark); }
.get-form.done { align-items: center; text-align: center; padding: 50px 30px; }
.get-form.done h3 { font-size: 26px; }
.get-form.done p { color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding: 46px 0 30px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-small { margin-top: 26px; color: #a3a1a8; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .get-grid, .owners-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .decisions { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-panel { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 30px; }
  .desktop-frame.tall { height: 460px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 36px 0 60px; }
  .hero-sub { font-size: 17px; }
  .hero-visual { padding: 10px 0 50px 34px; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .chip-1 { right: 0; top: -6px; }
  .problem, .workflow, .features, .owners, .built, .get { padding: 70px 0; }
  .problem-grid, .feature-grid, .decisions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 40px; }
  .flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .flow-step { flex: 0 0 132px; scroll-snap-align: start; }
  .flow-panel { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .flow-panel .phone-frame { max-width: 260px; margin-inline: auto; }
  .flow-copy h3 { font-size: 24px; }
  .flow-copy p { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .get-form { padding: 22px; }
  .arch { padding: 10px; overflow-x: auto; }
  .arch svg { min-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
