:root {
  --ink: #0d1b2e;
  --brand: #1d5fa8;
  --brand-bright: #3f8fe0;
  --metal: #b8944f;
  --navy: #0c1a2c;
  --paper: #f7f5f0;
  --paper-2: #ffffff;
  --line: rgba(13, 27, 46, 0.10);
  --grad-brand: linear-gradient(100deg, var(--brand) 0%, var(--brand-bright) 55%, var(--metal) 100%);
  --grad-btn: linear-gradient(120deg, var(--brand) 0%, var(--brand-bright) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Blueprint grid texture */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 8vh 24px 9vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Signature hero: self-building site mockup ---- */
.build-scene {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0s;
}

.browser {
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(13, 27, 46, 0.22), 0 8px 20px -12px rgba(13, 27, 46, 0.1);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: #efece4;
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.r { background: #e2685c; }
.dot.y { background: #e6b64f; }
.dot.g { background: #5cb579; }

.browser-url {
  margin-left: 8px;
  flex: 1;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: rgba(13, 27, 46, 0.4);
  text-align: left;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-left: 2px;
  background: var(--brand);
  vertical-align: -1px;
  animation: blink 1s step-end infinite;
}

.browser-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}

.sk {
  display: block;
  height: var(--h, 8px);
  border-radius: 5px;
  background: rgba(13, 27, 46, 0.1);
  transform: scaleX(0);
  transform-origin: left center;
  animation: buildGrow 6.4s cubic-bezier(.65,0,.35,1) infinite;
}
.sk-brand {
  background: var(--grad-btn);
  opacity: 0.9;
}
.sk-title {
  background: rgba(13, 27, 46, 0.16);
}
.sk-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.sk-card {
  flex: 1;
  border-radius: 10px;
  background: rgba(13, 27, 46, 0.07);
  border: 1px solid var(--line);
}

@keyframes buildGrow {
  0%   { transform: scaleX(0); opacity: 0; }
  8%   { opacity: 1; }
  24%  { transform: scaleX(1); opacity: 1; }
  76%  { transform: scaleX(1); opacity: 1; }
  92%  { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.building-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(13, 27, 46, 0.5);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--metal);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}
.eyebrow span {
  width: 36px;
  height: 1px;
  background: var(--metal);
  display: inline-block;
}

.headline {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.headline .line { display: block; overflow: hidden; }
.headline .w {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.headline .line:nth-child(1) .w:nth-child(1) { animation-delay: 0.15s; }
.headline .line:nth-child(1) .w:nth-child(2) { animation-delay: 0.22s; }
.headline .line:nth-child(1) .w:nth-child(3) { animation-delay: 0.29s; }
.headline .line:nth-child(2) .w:nth-child(1) { animation-delay: 0.36s; }
.headline .line:nth-child(2) .w:nth-child(2) { animation-delay: 0.43s; }

.fancy {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  background: var(--grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation-name: riseUp, sheen;
  animation-duration: 0.7s, 4s;
  animation-timing-function: cubic-bezier(.2,.8,.2,1), linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(13, 27, 46, 0.72);
  max-width: 58ch;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.55s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.85s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(29, 95, 168, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(29, 95, 168, 0.65);
}

.cta-note {
  font-size: 0.9rem;
  color: rgba(13, 27, 46, 0.55);
}

.foot {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.85rem;
}

@keyframes riseUp {
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheen {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  .headline .w, .eyebrow, .lede, .cta-row, .build-scene, .sk, .caret, .pulse-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .sk { transform: scaleX(1) !important; }
}

@media (max-width: 560px) {
  .wrap { padding-top: 6vh; }
  .headline { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .browser-body { padding: 18px; }
}
