/* ==========================================================================
   SARTTHI.COM — GLOBAL STYLING SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --sky: #0EA5E9;
  --sky-d: #0284C7;
  --sky-dd: #075985;
  --sky-l: #E0F2FE;
  --sky-ll: #F0F9FF;
  
  --yellow: #EAB308;
  --yellow-d: #CA8A04;
  --yellow-l: #FEF9C3;
  --yellow-ll: #FEFCE8;
  
  --navy: #0C1B33;
  --navy-l: #1E293B;
  --white: #FFFFFF;
  
  /* Grays */
  --g50: #F8FAFC;
  --g100: #F1F5F9;
  --g200: #E2E8F0;
  --g300: #CBD5E1;
  --g400: #94A3B8;
  --g500: #64748B;
  --g600: #475569;
  
  /* Accent Shades */
  --green: #10B981;
  --green-l: #D1FAE5;
  --red: #EF4444;
  --red-l: #FEE2E2;
  --purple: #8B5CF6;
  --purple-l: #EDE9FE;
  
  /* Fonts */
  --fh: 'Instrument Serif', Georgia, serif;
  --fb: 'Outfit', sans-serif;
  
  /* Shadows */
  --sh-sm: 0 2px 8px rgba(12,27,51,.06);
  --sh-md: 0 8px 32px rgba(12,27,51,.09);
  --sh-lg: 0 24px 72px rgba(12,27,51,.11);
  --sh-xl: 0 48px 120px rgba(12,27,51,.13);
  --sh-sky: 0 16px 48px rgba(14,165,233,.3);
  --sh-yellow: 0 16px 48px rgba(234,179,8,.35);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--fb);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: var(--fb);
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

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

svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* Scroll Progress */
#spb {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--sky), var(--yellow), var(--sky));
  background-size: 200%;
  animation: spb-shimmer 2s linear infinite;
  box-shadow: 0 0 12px rgba(14,165,233,.6);
}
@keyframes spb-shimmer {
  to { background-position: 200% 0; }
}

/* Header */
header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(12,27,51,.06), 0 0 0 1px rgba(14,165,233,.05);
  width: min(1160px, 94vw);
  transition: all .35s cubic-bezier(.25,.46,.45,.94);
}
header.scrolled {
  top: 10px;
  box-shadow: 0 12px 48px rgba(12,27,51,.12);
  background: rgba(255, 255, 255, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-icon, .logo-text {
  display: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--g600);
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy);
  background: var(--g100);
}
.nav-link svg {
  width: 10px;
  height: 10px;
  transition: transform .2s;
}
.nav-link:hover svg {
  transform: rotate(180deg);
}

/* Dropdown */
.has-drop {
  position: relative;
}
.has-drop:hover .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border: 1px solid var(--g200);
  border-radius: 20px;
  box-shadow: var(--sh-xl);
  padding: 16px;
  min-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  pointer-events: none;
}
.drop::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.drop-sm {
  min-width: 300px;
  grid-template-columns: 1fr;
}
.di {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  transition: background .18s;
}
.di:hover {
  background: var(--g50);
}
.di-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.di-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1px;
}
.di-sub {
  font-size: .71rem;
  color: var(--g500);
  line-height: 1.35;
}

.hdr-r {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost-sm {
  padding: 7px 15px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--g600);
  transition: all .2s;
}
.btn-ghost-sm:hover {
  color: var(--navy);
  background: var(--g100);
}
.btn-nav {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 700;
  background: var(--sky);
  color: white;
  box-shadow: 0 2px 12px rgba(14,165,233,.4);
  transition: all .25s;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-sky);
}

/* Sections */
.sec {
  padding: 100px 5vw;
  position: relative;
}
.sec-sm {
  padding: 60px 5vw;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
}
.sec-center {
  text-align: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}
.tag::before, .tag::after {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
}

/* Typography elements */
.h1 {
  font-family: var(--fh);
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
  color: var(--navy);
}
.h2 {
  font-family: var(--fh);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
}
.h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.sky { color: var(--sky); }
.yellow { color: var(--yellow-d); }
.italic { font-style: italic; }
.lead {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--g500);
}
.lead-sm {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--g500);
}

/* Magnetic / Premium Buttons */
.mag-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.mag-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
  z-index: -1;
}
.b-sky {
  background: var(--sky);
  color: white;
  box-shadow: 0 4px 20px rgba(14,165,233,.4);
}
.b-sky::before {
  background: linear-gradient(135deg, var(--sky-d), var(--sky));
}
.b-sky:hover {
  box-shadow: 0 8px 40px rgba(14,165,233,.55);
  transform: translateY(-2px);
}
.b-sky:hover::before {
  opacity: 1;
}
.b-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--sh-yellow);
}
.b-yellow::before {
  background: linear-gradient(135deg, var(--yellow-d), var(--yellow));
}
.b-yellow:hover {
  box-shadow: 0 8px 48px rgba(234,179,8,.6);
  transform: translateY(-2px);
}
.b-yellow:hover::before {
  opacity: 1;
}
.b-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--g300);
}
.b-ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
  box-shadow: 0 4px 16px rgba(14,165,233,.15);
  transform: translateY(-2px);
}
.b-outline-sky {
  background: transparent;
  color: var(--sky);
  border: 1.5px solid var(--sky);
}
.b-outline-sky:hover {
  background: var(--sky);
  color: white;
  box-shadow: var(--sh-sky);
  transform: translateY(-2px);
}

/* Scroll Animation System */
[data-anim] {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.25,.46,.45,.94), transform .75s cubic-bezier(.25,.46,.45,.94);
}
[data-anim="fade-up"] { transform: translateY(40px); }
[data-anim="fade-left"] { transform: translateX(-40px); }
[data-anim="fade-right"] { transform: translateX(40px); }
[data-anim="fade-scale"] { transform: scale(.92); }
[data-anim].visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.25,.46,.45,.94), transform .65s cubic-bezier(.25,.46,.45,.94);
}
[data-stagger].staggered > * {
  opacity: 1;
  transform: none;
}
[data-stagger].staggered > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].staggered > *:nth-child(2) { transition-delay: .1s; }
[data-stagger].staggered > *:nth-child(3) { transition-delay: .2s; }
[data-stagger].staggered > *:nth-child(4) { transition-delay: .3s; }
[data-stagger].staggered > *:nth-child(5) { transition-delay: .4s; }
[data-stagger].staggered > *:nth-child(6) { transition-delay: .5s; }

/* Sticky Scroll Section for Notion / OysterHR panels */
.sticky-wrapper {
  position: relative;
  height: 130vh; /* Tightened scroll track container height */
}
.sticky-container {
  position: sticky;
  top: 100px;
  height: 70vh; /* Reduced section viewport height */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 5vw;
}
.sticky-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.sticky-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sticky-right {
  position: relative;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy-l);
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sticky-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: all 0.6s cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
}
.sticky-panel.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}
.sticky-panel img, .sticky-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic steps / Tab list */
.scroll-tab {
  padding: 18px 24px;
  border-left: 3px solid var(--g200);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.6;
}
.scroll-tab:hover {
  opacity: 0.9;
  background: var(--g50);
}
.scroll-tab.active {
  opacity: 1;
  border-left-color: var(--sky);
  background: var(--sky-ll);
}
.scroll-tab-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.scroll-tab-desc {
  font-size: .84rem;
  color: var(--g500);
  line-height: 1.45;
}

/* Marquee Style */
.mq-wrap {
  background: var(--navy);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.mq-wrap::before, .mq-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.mq-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy), transparent);
}
.mq-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--navy), transparent);
}
.mq {
  display: flex;
  width: max-content;
  animation: mq 35s linear infinite;
}
.mq:hover {
  animation-play-state: paused;
}
@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mqi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.48);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.mqi.hl {
  color: var(--yellow);
}
.mq-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(14,165,233,.5);
}

/* Footer styling */
footer {
  background: var(--navy);
  padding: 80px 5vw 40px;
  color: white;
}
.ft {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.flogo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.flogo img {
  height: 36px;
  width: auto;
  display: block;
}
.flogo-icon, .flogo-txt {
  display: none;
}
.ftagline {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 22px;
}
.fsocs {
  display: flex;
  gap: 8px;
}
.fsoc {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: all .25s;
}
.fsoc:hover {
  border-color: var(--sky);
  color: var(--sky);
  transform: translateY(-2px);
}
.fch {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  margin-bottom: 18px;
}
.flinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flinks a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.flinks a:hover {
  color: var(--yellow);
}
.fb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}
.fcp {
  font-size: .73rem;
  color: rgba(255,255,255,.3);
}
.flegal {
  display: flex;
  gap: 20px;
}
.flegal a {
  font-size: .73rem;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.flegal a:hover {
  color: rgba(255,255,255,.6);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--sh-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
}
.toast-ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .ft {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .ft > :first-child {
    grid-column: span 2;
  }
  .sticky-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sticky-right {
    height: 320px;
  }
  .sticky-container {
    height: auto;
    padding: 60px 5vw;
    position: relative;
  }
  .sticky-wrapper {
    height: auto;
  }
  .scroll-tab {
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .ft {
    grid-template-columns: 1fr;
  }
  .ft > :first-child {
    grid-column: span 1;
  }
  .fb {
    flex-direction: column;
    text-align: center;
  }
  header {
    padding: 0 16px;
  }
  .hdr-r .btn-nav {
    display: none; /* Hide primary call action on narrow mobile header */
  }
}
