/* RemboAI site: The Guard's type and motion system, RemboAI's voice.
   Cormorant Garamond display + Inter body, navy depth, Telegram blue
   and WhatsApp green as the two live accents. Mobile first. */
:root {
  --navy: #072352;
  --navy-deep: #041739;
  --ink: #111827;
  --muted: #475569;
  --line: #e2e8f0;
  --mist: #f0f4fb;
  --white: #fff;
  --tg: #229ed9;
  --tg-dark: #0e7db5;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --teal: #0aa89e;
  --light-blue: #6fbcff;
  --radius-card: 14px;
  --radius-pill: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
section { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tg-dark); }
:focus-visible { outline: 3px solid var(--wa); outline-offset: 2px; }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }
section { padding-block: clamp(3rem, 7vw, 5.5rem); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; font-weight: 700; font-family: var(--font-body); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 38rem; }
.section-kicker {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tg-dark); margin-bottom: 0.5rem;
}

/* Header: fixed navy glass like the reference. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 35, 82, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.brand svg { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { text-decoration: none; color: #dbe6f5; font-weight: 500; font-size: 1rem; }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--wa); }
.nav-cta { display: flex; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 0.45rem 0.7rem; font-size: 1.1rem; cursor: pointer; color: #fff; }
main { padding-top: 68px; }

/* Buttons: Telegram blue primary, WhatsApp green secondary. */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; transition: background 0.15s, transform 0.15s;
}
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-dark); color: #fff; transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #06281a; }
.btn-wa:hover { background: #1eb85a; color: #06281a; transform: translateY(-1px); }
.btn-primary { background: var(--tg); color: #fff; }
.btn-primary:hover { background: var(--tg-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--wa); border-color: var(--wa); color: #06281a; }
.btn-gold:hover { background: #1eb85a; border-color: #1eb85a; color: #06281a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.nav-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.nav-cta .btn-outline:hover { background: #fff; color: var(--navy); }

/* Hero: dark navy stage with drifting Telegram/WhatsApp orbs. */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; }
.hero .standfirst { color: #c9d8ee; }
.hero-points { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: 0.55rem; color: #dbe6f5; }
.hero-points li { padding-left: 1.7rem; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--wa); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; pointer-events: none; animation: orbDrift 20s ease-in-out infinite; }
.orb-tg { width: 520px; height: 520px; top: -140px; left: -120px; background: radial-gradient(circle, rgba(34, 158, 217, 0.55) 0%, transparent 65%); }
.orb-wa { width: 420px; height: 420px; top: 20%; right: -120px; background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, transparent 65%); animation-duration: 17s; animation-delay: -5s; }
.orb-pearl { width: 300px; height: 300px; bottom: -100px; left: 35%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 60%); animation-duration: 23s; animation-delay: -9s; }
@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(60px, -50px, 0) scale(1.12); }
  66% { transform: translate3d(-50px, 40px, 0) scale(0.92); }
}

/* Chat mockup: the two channel colours talk to each other. */
.chat-mock {
  background: rgba(4, 23, 57, 0.85); color: #eef3fa; border-radius: 20px;
  padding: 1.4rem 1.2rem 1.1rem; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  max-width: 380px; margin-inline: auto; width: 100%;
}
.chat-mock header { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 1rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--wa); color: #06281a; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.chat-mock header small { display: block; color: #9db4d4; font-size: 0.8rem; }
.chat-mock header strong { font-size: 0.95rem; }
.bubble { max-width: 85%; padding: 0.55rem 0.85rem; margin-bottom: 0.6rem; font-size: 0.92rem; line-height: 1.45; }
.bubble.them { background: var(--tg); color: #fff; border-radius: 4px 16px 16px 16px; }
.bubble.me { background: var(--wa); color: #06281a; margin-left: auto; border-radius: 16px 16px 4px 16px; }
.bubble .tap { display: inline-block; margin-top: 0.45rem; background: rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.8rem; }
.chat-caption { text-align: center; color: #9db4d4; font-size: 0.85rem; margin-top: 0.4rem; }

/* Bubbles arrive one by one when the mock scrolls into view. */
.js .chat-mock .bubble, .js .chat-mock .chat-caption { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .chat-mock.playing .bubble, .js .chat-mock.playing .chat-caption { opacity: 1; transform: none; }
.js .chat-mock.playing .bubble:nth-of-type(1) { transition-delay: 0.2s; }
.js .chat-mock.playing .bubble:nth-of-type(2) { transition-delay: 1s; }
.js .chat-mock.playing .bubble:nth-of-type(3) { transition-delay: 1.9s; }
.js .chat-mock.playing .bubble:nth-of-type(4) { transition-delay: 2.7s; }
.js .chat-mock.playing .chat-caption { transition-delay: 3.4s; }
.typing { display: inline-flex; gap: 4px; padding: 0.2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: pulse 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Scroll reveal with stagger, from the reference system. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* Spotlight slide-in for feature rows: copy and visual arrive from opposite sides. */
.js .feature-row > div { transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.js .feature-row > div:first-child { opacity: 0; transform: translateX(-60px) scale(0.98); transition-delay: 0.1s; }
.js .feature-row > div:last-child { opacity: 0; transform: translateX(60px); transition-delay: 0.25s; }
.js .feature-row.flip > div:first-child { transform: translateX(60px) scale(0.98); }
.js .feature-row.flip > div:last-child { transform: translateX(-60px); }
.js .feature-row.visible > div { opacity: 1; transform: none; }

/* Alternating bands */
.band-tint { background: var(--mist); }
.band-dark { background: var(--navy-deep); color: #e6edf7; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark p { color: #b9c9e2; }
.band-dark .section-kicker { color: var(--light-blue); }

/* Steps */
.steps { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--tg); line-height: 1; }
.steps li p { color: var(--muted); margin-top: 0.3rem; max-width: 44rem; }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 2rem 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip > :first-child { order: 2; }
.feature-row p { color: var(--muted); margin-top: 0.5rem; }
.feature-row ul { margin-top: 0.8rem; padding-left: 1.2rem; color: var(--muted); }
.feature-visual { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.6rem; font-size: 0.95rem; }
.feature-visual code { font-size: 0.9em; background: rgba(7, 35, 82, 0.08); padding: 0.1em 0.4em; border-radius: 6px; }
.mini-chat { display: grid; gap: 0.5rem; }
.mini-chat span { padding: 0.5rem 0.8rem; line-height: 1.45; }
.mini-chat .q { background: var(--wa); color: #06281a; border-radius: 12px 12px 12px 4px; justify-self: start; max-width: 90%; }
.mini-chat .a { background: var(--tg); color: #fff; border-radius: 12px 12px 4px 12px; justify-self: end; max-width: 90%; }
.stat { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--tg-dark); }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; align-items: stretch; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; background: var(--white); }
.tier.featured { background: var(--navy); color: #e6edf7; border-color: var(--navy); }
.tier.featured h3 { color: #fff; font-family: var(--font-body); }
.tier.featured p, .tier.featured li { color: #b9c9e2; }
.tier .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 0.6rem 0 0.2rem; }
.tier .per { color: var(--muted); font-size: 0.95rem; }
.tier.featured .per { color: #9db4d4; }
.tier ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.5rem; font-size: 0.98rem; }
.tier li { padding-left: 1.5rem; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.tier .btn-row { margin-top: auto; }
.tier-tag { display: inline-block; align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tg-dark); border: 1px solid var(--tg); border-radius: 999px; padding: 0.2rem 0.8rem; margin-bottom: 0.8rem; }
.tier.featured .tier-tag { color: var(--wa); border-color: var(--wa); }
.fineprint { color: var(--muted); font-size: 0.92rem; margin-top: 1.6rem; max-width: 46rem; }

/* Setup guide */
.guide-step { display: grid; grid-template-columns: 1fr; gap: 0.4rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.guide-step:first-of-type { border-top: 0; }
.guide-step h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.guide-step .sample { background: var(--navy-deep); color: #e8eef7; border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.95rem; margin-top: 0.7rem; max-width: 36rem; }
.guide-step .sample b { color: var(--wa); font-weight: 600; }
.guide-step p { color: var(--muted); max-width: 46rem; }

/* FAQ */
.faq { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--tg); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); margin-top: 0.6rem; max-width: 46rem; }

/* Closing band + footer */
.cta-band { background: var(--mist); border-block: 1px solid var(--line); }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.site-footer { background: var(--navy-deep); color: #b9c9e2; padding-block: 3rem 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--font-body); margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #b9c9e2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-base { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.87rem; color: #9db4d4; }

/* Inner page hero */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero p { color: var(--muted); margin-top: 0.8rem; max-width: 44rem; font-size: 1.15rem; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 34rem; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip > :first-child { order: 0; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.12); flex-direction: column; align-items: stretch; padding: 1rem 4vw 1.4rem; gap: 0.2rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .main-nav a:first-child { border-top: 0; }
  .nav-cta { flex-direction: column; padding-top: 0.6rem; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 2.4rem 1fr; gap: 0.8rem; }
  .steps li::before { font-size: 1.5rem; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .feature-row > div, .js .chat-mock .bubble, .js .chat-mock .chat-caption { opacity: 1; transform: none; }
  .hero-orb { display: none; }
}
