/* Waybound Digital — styles */
:root {
  --night: #0e1a30;
  --night-2: #16263f;
  --signal: #f5a524;
  --signal-deep: #9a6206;
  --signal-light: #ffc53d;
  --signal-soft: #fdf3dc;
  --paper: #f8f9fb;
  --ink: #101b33;
  --muted: #5b6472;
  --line: #e3e8f0;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px -18px rgba(14, 26, 48, 0.25);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 1.22rem; font-weight: 600; }
.accent { color: var(--signal-deep); }
.section-dark .accent { color: var(--signal-light); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; font-weight: 700; color: var(--signal-deep);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--signal-light); }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer; font-size: 1rem; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--signal-light) 0%, var(--signal) 100%);
  color: var(--night);
  box-shadow: 0 12px 26px -10px rgba(245, 165, 36, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(245, 165, 36, 0.7); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--signal-deep); color: var(--signal-deep); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 251, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.brand-name em { font-style: normal; color: var(--signal-deep); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: 0.98rem; }
.nav-links a:hover { color: var(--signal-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 84px 24px 110px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.lede { font-size: 1.22rem; color: var(--muted); margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.micro-trust { margin-top: 22px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* Wayfinding compass (hero visual) */
.hero-visual { display: flex; justify-content: center; }
.way-scene {
  position: relative; width: 340px; height: 340px; border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 90px -18px rgba(245, 165, 36, 0.4);
}
.way-dial { width: 100%; height: 100%; }
.way-needle {
  transform-box: fill-box; transform-origin: center;
  transform: rotate(-100deg);
}
.way-scene.active .way-needle {
  animation: needle-settle 1.6s cubic-bezier(0.2, 0.8, 0.25, 1) forwards,
             needle-sway 6s ease-in-out 1.7s infinite;
}
@keyframes needle-settle {
  from { transform: rotate(-100deg); }
  to { transform: rotate(0deg); }
}
@keyframes needle-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.way-route {
  animation: route-march 3.2s linear infinite;
}
@keyframes route-march {
  to { stroke-dashoffset: -26; }
}
.way-ping {
  transform-box: fill-box; transform-origin: center;
  animation: pin-ping 2.4s ease-out infinite;
}
@keyframes pin-ping {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 70px;
  background: var(--paper); clip-path: ellipse(60% 100% at 50% 100%); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--signal-soft);
  color: var(--signal-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--night); color: #fff; font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; margin-bottom: 16px;
}
.step:nth-child(2) .step-num { background: var(--signal-deep); }
.step:nth-child(3) .step-num { background: var(--signal); color: var(--night); }
.step:nth-child(4) .step-num { background: #fff; border: 2px solid var(--signal); color: var(--night); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 38px 32px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  background: var(--night); color: #fff; border-color: var(--night);
  box-shadow: 0 28px 60px -20px rgba(14, 26, 48, 0.55);
  transform: scale(1.04);
}
.price-card.featured .price-sub, .price-card.featured li { color: rgba(255,255,255,0.78); }
.price-card.featured li::before { color: var(--signal-light); }
.flag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--signal-light), var(--signal)); color: var(--night);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 8px 0 4px; }
.price span:first-child { font-size: 2.5rem; }
.price .per { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.price-card.featured .per { color: rgba(255,255,255,0.6); }
.price-sub { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 30px; flex: 1; }
.price-card li { padding: 7px 0 7px 30px; position: relative; font-size: 0.97rem; }
.price-card li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--signal-deep); font-weight: 700;
}
.price-card .btn { width: 100%; }
.price-card.featured .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; background: transparent; }
.price-card.featured .btn-ghost:hover { border-color: var(--signal-light); color: var(--signal-light); }

/* Proof (dark) */
.section-dark { background: var(--night); color: #fff; }
.section-dark .section-lede, .proof-copy { color: rgba(255,255,255,0.75); }
.proof-inner { max-width: 860px; text-align: center; }
.proof-copy { font-size: 1.18rem; margin: 18px auto 0; max-width: 700px; }
.proof-copy strong { color: #fff; }
.proof-points { display: flex; justify-content: center; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.proof-points div { display: flex; flex-direction: column; }
.proof-points strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--signal-light); }
.proof-points span { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--signal-soft), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { text-align: center; padding: 84px 24px; max-width: 760px; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 30px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.email-link {
  display: inline-block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--signal-deep); text-decoration: none; margin: 22px 0 8px;
  border-bottom: 2px solid var(--signal-soft); padding-bottom: 4px;
}
.email-link:hover { border-color: var(--signal-deep); }
.based { color: var(--muted); font-size: 0.95rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400;
  background: var(--paper); transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--signal); background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; border: none; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,0.7); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 34px 24px; flex-wrap: wrap; font-size: 0.92rem;
}
.footer .brand-name { color: #fff; }
.footer a[href^="mailto"] { color: var(--signal-light); text-decoration: none; font-weight: 600; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; gap: 44px; }
  .hero-visual { order: -1; }
  .way-scene { width: 260px; height: 260px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .price-card.featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .proof-points { gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
