/* ========================================================================
   RieSyncD marketing site
   Design principles applied (from the transcript):
   1. Halo effect — confident, minimal hero; engineered first impression.
   2. Cognitive fluency — generous whitespace, clear hierarchy, one CTA/section.
   3. Peak-end / micro-interactions — hover states, scroll-reveal, smooth
      easing curves, transitions tuned to feel "alive" without being noisy.
   ======================================================================== */

:root {
  --ink: #0b0d12;
  --ink-2: #1a1d24;
  --muted: #5b6470;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-alt: #f1f3f7;
  --accent: #0a66c2;        /* LinkedIn-blue nod, but not loud */
  --accent-2: #25d366;      /* WhatsApp green nod, used sparingly */
  --accent-ink: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.04), 0 1px 3px rgba(11, 13, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 13, 18, 0.06), 0 2px 6px rgba(11, 13, 18, 0.05);
  --shadow-lg: 0 24px 48px rgba(11, 13, 18, 0.08), 0 6px 14px rgba(11, 13, 18, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 220ms;
  --max: 1180px;
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: #084a91; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

/* ====================== Typography ====================== */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}
h3 { font-size: 1.2rem; }
p  { color: var(--muted); margin: 0 0 1em; }
.lead { font-size: 1.18rem; color: #2c3340; max-width: 36ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 102, 194, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              color var(--speed) var(--ease);
  will-change: transform;
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn.full { width: 100%; }

.btn-primary { background: var(--ink); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #cdd2db; transform: translateY(-1px); color: var(--ink); }

/* ====================== Nav ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--ink) 0%, #2b3140 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--ink-2); font-weight: 500; font-size: 0.96rem; }
.nav-links > a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

/* ====================== Hero ====================== */
.hero { padding: 80px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 460px;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(10, 102, 194, 0.08) 0%, transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 16px; flex-wrap: wrap; }
.hero-note { font-size: 0.9rem; color: var(--muted); }

/* ====================== Hero visual (CSS-built) ====================== */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.chat, .post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.chat {
  position: absolute;
  top: 24px; left: 8%;
  width: 78%;
  padding: 16px;
  z-index: 2;
  transform: rotate(-2deg);
  background: #efe7da;     /* WhatsApp wallpaper feel */
  background-image:
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 12px 12px, 18px 18px;
  background-position: 0 0, 6px 9px;
  animation: floatA 8s ease-in-out infinite;
}
.bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  margin: 6px 0;
  position: relative;
  color: var(--ink-2);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.bubble-in { background: #fff; border-top-left-radius: 4px; }
.bubble-out {
  background: #dcf8c6;
  margin-left: auto;
  border-top-right-radius: 4px;
}

.vn { display: inline-flex; align-items: center; gap: 10px; }
.vn-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; padding-left: 2px;
}
.vn-wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.vn-wave i {
  display: inline-block;
  width: 3px;
  background: #6b7280;
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.vn-wave i:nth-child(1) { height: 6px;  animation-delay: 0.00s; }
.vn-wave i:nth-child(2) { height: 12px; animation-delay: 0.08s; }
.vn-wave i:nth-child(3) { height: 18px; animation-delay: 0.16s; }
.vn-wave i:nth-child(4) { height: 14px; animation-delay: 0.24s; }
.vn-wave i:nth-child(5) { height: 20px; animation-delay: 0.32s; }
.vn-wave i:nth-child(6) { height: 10px; animation-delay: 0.40s; }
.vn-wave i:nth-child(7) { height: 16px; animation-delay: 0.48s; }
.vn-wave i:nth-child(8) { height: 8px;  animation-delay: 0.56s; }
.vn-wave i:nth-child(9) { height: 14px; animation-delay: 0.64s; }
.vn-wave i:nth-child(10){ height: 6px;  animation-delay: 0.72s; }
.vn-time { font-size: 0.78rem; color: #6b7280; min-width: 30px; }

.post-card {
  position: absolute;
  bottom: 12px; right: 4%;
  width: 86%;
  padding: 18px;
  z-index: 3;
  transform: rotate(1.5deg);
  animation: floatB 9s ease-in-out infinite;
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6ea8de);
}
.post-name { font-weight: 600; color: var(--ink); font-size: 0.94rem; }
.post-sub { font-size: 0.78rem; color: var(--muted); }
.post-body { font-size: 0.92rem; color: var(--ink-2); margin: 8px 0 12px; }
.post-body em { color: var(--ink); font-style: normal; font-weight: 600; }
.post-actions {
  display: flex; gap: 18px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}

@keyframes floatA {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-6px); }
}
@keyframes floatB {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50%      { transform: rotate(1.5deg) translateY(-8px); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.7); }
  50%      { transform: scaleY(1.3); }
}

/* ====================== Trust strip ====================== */
.trust {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}
.trust > span { letter-spacing: 0.06em; text-transform: uppercase; }
.trust ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.trust li { color: var(--ink-2); font-weight: 600; }

/* ====================== Sections ====================== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-sub { font-size: 1.05rem; color: var(--muted); }

/* ====================== Steps ====================== */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d0d5e0; }
.step-num {
  width: 36px; height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}

/* ====================== Feature grid ====================== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d0d5e0; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

/* ====================== Pricing ====================== */
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d0d5e0; }
.price-card.featured {
  background: linear-gradient(180deg, #0b0d12 0%, #1a1f2c 100%);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.price-card.featured h3,
.price-card.featured .price .amt { color: #fff; }
.price-card.featured .price-sub,
.price-card.featured .ticks li { color: #c3c9d4; }
.price-card.featured .btn-primary { background: #fff; color: var(--ink); }
.price-card.featured .btn-primary:hover { background: var(--accent); color: #fff; }

.ribbon {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 4px; }
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-size: 0.95rem; }
.price-sub { font-size: 0.95rem; margin-bottom: 18px; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }
.pricing-foot { text-align: center; color: var(--muted); margin-top: 28px; }

/* ====================== FAQ ====================== */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #cdd2db; }
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 400;
  transition: transform var(--speed) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); }

/* ====================== CTA ====================== */
.cta { padding: 100px 0; background: var(--ink); color: #fff; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; }
.cta p { color: #c3c9d4; font-size: 1.08rem; }
.cta-actions { display: inline-flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: #fff; }
.cta .btn-ghost { border-color: rgba(255,255,255,0.18); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.32); color: #fff; }

/* ====================== Footer ====================== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-blurb { max-width: 28ch; font-size: 0.92rem; margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-cols a, .footer-cols span { display: block; color: var(--muted); font-size: 0.95rem; padding: 4px 0; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }

/* ====================== Legal pages ====================== */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; font-size: 0.92rem; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }

/* ====================== Scroll-reveal (micro-interaction) ====================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat, .post-card { animation: none; }
  .vn-wave i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ====================== Responsive ====================== */
@media (max-width: 960px) {
  .hero { padding: 64px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 380px; }
  .lead { max-width: none; }

  .steps, .grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px 22px;
    gap: 16px;
    align-items: stretch;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 6px 0; }
  .nav-links .btn { width: 100%; }
  .section { padding: 72px 0; }
  .cta { padding: 72px 0; }
  .footer-cols { grid-template-columns: 1fr; }
}
