/* ==========================================================
   Rathi Equity Research — styles
   Palette taken from the logo: navy "R" + green candles
   ========================================================== */

:root {
  --navy: #14224a;
  --navy-2: #0d1733;
  --green: #1f9d6b;
  --green-dark: #167a52;
  --green-soft: #d9efe4;

  --bg: #f5f3ec;
  --bg-tint: #eceadf;
  --surface: #ffffff;
  --ink: #14224a;
  --muted: #5b6478;
  --line: rgba(20, 34, 74, 0.1);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 34, 74, 0.04), 0 12px 32px -12px rgba(20, 34, 74, 0.18);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: italic; color: var(--green); }
p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }
.btn--accent { background: var(--green); color: #fff; }
.btn--accent:hover { background: var(--green-dark); }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}
.topbar__links { display: flex; gap: 20px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(20, 34, 74, 0.35); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
}
.brand__name {
  font: 700 18px/1.05 var(--font-head);
  color: var(--navy);
}
.brand__name small {
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}
.brand--light .brand__name { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.nav a:hover,
.nav a.is-active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(31, 157, 107, 0.16), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 em { display: block; }
.lead { font-size: 18px; color: var(--muted); max-width: 580px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font: 600 26px/1.1 var(--font-head); color: var(--navy); }
.hero__trust span { font-size: 13px; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; }
.hero__frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
  transform: rotate(1.5deg);
}
.hero__frame img { width: 100%; max-width: 400px; height: auto; }

.float-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.float-card strong { font: 600 17px/1.3 var(--font-head); }
.float-card--top { top: 40px; left: -48px; }
.float-card--bottom { bottom: 48px; right: -36px; animation-delay: -2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Pillars ---------- */
.pillars { padding: 0 0 24px; }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pillar { padding: 32px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar h3 { font-size: 22px; margin-bottom: 6px; }
.pillar h3::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--green);
  vertical-align: middle;
}
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: #5fd3a1; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.section--dark .eyebrow, .eyebrow--light { color: #5fd3a1; }

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section__head h2 { font-size: clamp(30px, 4vw, 46px); }
.section__head p { color: var(--muted); font-size: 17px; }
.section__head--light p { color: rgba(255, 255, 255, 0.72); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.split__head h2 { font-size: clamp(30px, 4vw, 46px); }
.split__body { font-size: 17px; color: var(--muted); }
.split__body strong { color: var(--ink); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--green-soft);
}
.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.card--dark p { color: rgba(255, 255, 255, 0.72); }
.card--dark:hover { box-shadow: none; border-color: rgba(95, 211, 161, 0.5); }
.card__num {
  display: block;
  margin-bottom: 18px;
  font: italic 600 40px/1 var(--font-head);
  color: #5fd3a1;
}

.note {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
  font: 500 20px/1.5 var(--font-head);
  font-style: italic;
}

.advantage__foot {
  max-width: 860px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.advantage__foot strong { color: #fff; }

/* ---------- Plans ---------- */
.plans__intro {
  max-width: 860px;
  margin: -24px auto 56px;
  text-align: center;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan h3 { font-size: 24px; }
.plan__price {
  display: flex;
  flex-direction: column;
  padding: 20px 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--line);
}
.plan__price s { color: var(--muted); font-size: 15px; }
.plan__price strong { font: 700 44px/1.1 var(--font-head); color: var(--navy); }
.plan__price strong span { font-size: 20px; }
.plan__price small { color: var(--muted); font-size: 13px; }

.plan__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding: 0 0 12px 30px;
  font-size: 15px;
  line-height: 1.55;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23167a52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.plan--featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 24px 48px -20px rgba(20, 34, 74, 0.55);
  transform: translateY(-12px);
}
.plan--featured h3,
.plan--featured .plan__price strong { color: #fff; }
.plan--featured .plan__price s,
.plan--featured .plan__price small { color: rgba(255, 255, 255, 0.6); }
.plan--featured .plan__price { border-color: rgba(255, 255, 255, 0.18); }
.plan--featured .plan__list li::before { background-color: rgba(95, 211, 161, 0.2); }
.plan__badge {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.picker {
  margin-top: 72px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.picker h3 { font-size: 30px; margin-bottom: 32px; }
.picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.picker__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.picker__item p { color: var(--muted); }
.picker__item span { font-size: 15px; }
.picker__item strong { color: var(--green-dark); }
.picker__invoice { margin: 32px 0 0; color: var(--muted); }
.picker__invoice a { color: var(--navy); font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 100px 0;
  color: rgba(255, 255, 255, 0.85);
  background:
    linear-gradient(120deg, rgba(13, 23, 51, 0.96) 30%, rgba(20, 34, 74, 0.82)),
    url("../img/hero.jpg") center/cover no-repeat;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.contact h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.contact h2 em { color: #5fd3a1; }
.contact__copy a:not(.btn) { color: #fff; font-weight: 600; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.callback {
  padding: 36px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}
.callback h3 { font-size: 26px; margin-bottom: 4px; }
.callback__sub { color: var(--muted); font-size: 14px; }
.callback label { display: block; margin-bottom: 16px; }
.callback label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.callback input,
.callback select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.callback input:focus,
.callback select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.callback input.is-invalid { border-color: #c0392b; }
.callback__error { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; color: #c0392b; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 72px 0 0;
}
.footer h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 16px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand .brand { margin-bottom: 20px; }
.footer__contact { list-style: none; padding: 0; margin: 0; }
.footer__contact li { margin-bottom: 6px; }
.footer__contact a { color: #fff; }

.footer__legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 24px;
}
.footer__legal li { margin-bottom: 8px; break-inside: avoid; }

.footer__compliance {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  padding: 48px 0;
  font-size: 13px;
  line-height: 1.7;
}
.footer__compliance strong { color: rgba(255, 255, 255, 0.9); }
.footer__ra dl { margin: 0; }
.footer__ra dt {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fd3a1;
}
.footer__ra dd { margin: 2px 0 0; color: rgba(255, 255, 255, 0.85); }

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}
.footer__bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.6); opacity: 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__legal ul { columns: 2; }
}

@media (max-width: 960px) {
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 16px; }

  .hero { padding: 48px 0 72px; }
  .hero__inner,
  .split,
  .contact__inner,
  .footer__top,
  .footer__compliance { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 360px; }
  .float-card--top { left: -16px; }
  .float-card--bottom { right: -16px; }

  .cards--3,
  .plans,
  .picker__grid { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }

  .section, .contact { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .topbar__inner { justify-content: center; }
  .topbar__inner > span { display: none; }
  .topbar__links { gap: 14px; font-size: 12px; }
  .cards--4 { grid-template-columns: 1fr; }
  .picker, .callback { padding: 28px 20px; }
  .footer__legal ul { columns: 1; }
  .hero__trust { gap: 20px; }
  .hero__visual { padding: 0 8px; }
  .float-card--top { left: 0; }
  .float-card--bottom { right: 0; }
  .whatsapp { right: 16px; bottom: 16px; }
}
