/* ==========================================================================
   GhostlyAI Job Portal — Core Design System
   Signature Aesthetic: Radiant Pastel Lime-to-Mint Mesh Gradient
   Applied throughout the canvas, frosted glassmorphic surfaces,
   deep forest ink typography, and high-conversion coral accents.
   ========================================================================== */

:root {
  color-scheme: light;

  /* User's signature pastel lime-to-mint gradient palette */
  --lime-50:  #F7FCF0;
  --lime-100: #EBF8DD;
  --lime-200: #DEF5CB;
  --lime-300: #CEF0B5;
  --lime-400: #B8E898;
  --mint-50:  #F0FAF2;
  --mint-100: #E0F7E6;
  --mint-200: #C8F2D2;
  --mint-300: #B2EAC0;
  --mint-400: #93DEAA;
  --haze:     #E5F7DC;

  /* Canvas & Glassmorphic Surfaces */
  --canvas:        #EBF8DD;
  --surface:       rgba(255, 255, 255, 0.84);
  --surface-solid: #FFFFFF;
  --surface-soft:  rgba(255, 255, 255, 0.65);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --glass-border:  rgba(255, 255, 255, 0.95);
  --glass-shine:   inset 0 1px 0 rgba(255, 255, 255, 0.95);

  /* Action / High-contrast Coral */
  --coral:          #F2564F;
  --coral-dark:     #DC3F38;
  --coral-gradient: linear-gradient(135deg, #FF6458 0%, #EE3F34 100%);
  --coral-soft:     #FFEAE8;
  --coral-glow:     0 10px 28px -6px rgba(238, 63, 52, 0.45);

  /* Supporting accents (card edges, pills, marks) */
  --blue:     #3B82F6;
  --violet:   #8B5CF6;
  --green:    #16A34A;
  --green-soft: #DCFCE7;
  --amber:    #EA580C;
  --telegram: #229ED9;
  --telegram-gradient: linear-gradient(135deg, #28A5E4 0%, #1783BA 100%);

  /* Deep Forest Ink Typography */
  --ink:        #0E1B13;
  --ink-soft:   #23362B;
  --muted:      #4D6153;
  --muted-soft: #738779;
  --line:       rgba(255, 255, 255, 0.72);
  --line-card:  rgba(255, 255, 255, 0.92);
  --line-subtle: rgba(18, 38, 25, 0.08);

  /* Type */
  --display: 'Outfit', 'Noto Sans Devanagari', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  --deva: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;

  /* Shape & Depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px -2px rgba(22, 45, 28, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 32px -10px rgba(22, 45, 28, 0.09), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 26px 56px -16px rgba(22, 45, 28, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 24px 60px -18px rgba(18, 55, 30, 0.22);
  --shadow-glass: 0 8px 32px 0 rgba(28, 60, 36, 0.08);

  /* Rhythm */
  --wrap: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .8, .32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(104px + env(safe-area-inset-top, 0px));
}

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Body with Fixed Ambient Pastel Gradient from user reference */
body {
  margin: 0;
  background-color: #D6F3D4;
  background-image:
    radial-gradient(1100px 750px at 4% -2%, #EBF8DD 0%, rgba(235, 248, 221, 0) 70%),
    radial-gradient(950px 700px at 96% 12%, #C2EFC7 0%, rgba(194, 239, 199, 0) 65%),
    radial-gradient(1200px 850px at 10% 52%, #DEF6CF 0%, rgba(222, 246, 207, 0) 70%),
    radial-gradient(1000px 800px at 92% 82%, #BCEBC4 0%, rgba(188, 235, 196, 0) 65%),
    linear-gradient(158deg, #EBF8DD 0%, #D4F3D3 42%, #BAECC2 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-wrap: balance; }
h3 { font-size: clamp(1.18rem, 2vw, 1.42rem); letter-spacing: -0.02em; }
h4 { font-size: 1.04rem; letter-spacing: -0.015em; }

p { margin: 0 0 1rem; color: var(--ink-soft); }
p.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.mr { font-family: var(--deva); font-feature-settings: "kern" 1; }

::selection { background: var(--lime-300); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: 820px; }

section { position: relative; }

.band { padding-block: clamp(60px, 9vw, 108px); }
.band-tight { padding-block: clamp(44px, 6vw, 70px); }

.head { max-width: 660px; margin-bottom: 42px; }
.head-center { margin-inline: auto; text-align: center; }
.head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row-center { justify-content: center; }

.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.nowrap { white-space: nowrap; }

/* -------------------------------------------------- signature gradient panel */

.panel {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(110% 90% at 8% 0%, rgba(247, 253, 238, 0.88) 0%, rgba(235, 248, 221, 0.25) 60%),
    radial-gradient(95% 85% at 92% 8%, rgba(220, 248, 226, 0.88) 0%, rgba(200, 242, 210, 0.2) 65%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.68) 0%, rgba(240, 250, 232, 0.45) 50%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px -20px rgba(25, 55, 35, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  isolation: isolate;
}

.panel-soft {
  background:
    radial-gradient(110% 100% at 12% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(235, 248, 221, 0.25) 65%),
    radial-gradient(100% 90% at 88% 100%, rgba(220, 248, 226, 0.8) 0%, rgba(200, 242, 210, 0.15) 60%),
    linear-gradient(175deg, rgba(255, 255, 255, 0.75), rgba(245, 252, 240, 0.55) 80%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px -12px rgba(25, 55, 35, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* drifting glowing blobs inside panels */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: .58;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.blob-a { width: 480px; height: 480px; background: #CEF0B5; top: -160px; left: -90px; animation: drift 22s var(--ease) infinite alternate; }
.blob-b { width: 420px; height: 420px; background: #B2EAC0; top: 20px; right: -110px; animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob-c { width: 340px; height: 340px; background: #FDE8BD; bottom: -120px; left: 38%; animation: drift 30s var(--ease) infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(38px, 26px, 0) scale(1.12); }
}

/* --------------------------------------------------------------- hero */

.hero { padding: 96px var(--gutter) 0; }
.hero .panel { padding: clamp(54px, 7vw, 92px) clamp(20px, 4vw, 56px) 0; }

.hero-inner { max-width: 960px; margin-inline: auto; text-align: center; position: relative; z-index: 2; }

.hero h1 { margin-bottom: 20px; }
.hero h1 .line { display: block; }

.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 30px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center;
  margin-bottom: clamp(34px, 4.5vw, 56px);
}

/* hero product visual */
.hero-stage {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 0;
  transform: translateY(6px);
}

/* --------------------------------------------------------- logo marquee */

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 26px;
  font-weight: 600; font-size: .95rem; color: #2D3E33;
  white-space: nowrap;
}
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); opacity: .85; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

/* orchestrated hero entrance */
.enter { opacity: 0; transform: translateY(16px); animation: enter .9s var(--ease) forwards; }
.enter-1 { animation-delay: .05s; }
.enter-2 { animation-delay: .16s; }
.enter-3 { animation-delay: .27s; }
.enter-4 { animation-delay: .38s; }
.enter-5 { animation-delay: .5s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- footer */

.footer {
  background: linear-gradient(180deg, #0D1A13 0%, #070F0B 100%);
  color: #C8D4CC;
  padding-block: 68px 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(195, 245, 205, 0.2);
  position: relative;
  box-shadow: 0 -20px 40px -15px rgba(10, 25, 16, 0.15);
}
.footer h4 { color: #FFFFFF; font-size: .86rem; letter-spacing: .02em; margin-bottom: 14px; font-weight: 600; }
.footer a { color: #A8B8AD; font-size: .94rem; line-height: 2.05; transition: color .2s var(--ease); }
.footer a:hover { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer-brand p { color: #8C9F92; font-size: .92rem; max-width: 34ch; }
.footer-note {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #76887C; font-size: .84rem;
}
.footer-disclaimer {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); color: #8C9F92; font-size: .84rem; line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, .06);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --gutter: 18px; }
  .panel {
    background:
      radial-gradient(95% 44% at 4% 0%, rgba(247, 253, 238, 0.9) 0%, rgba(235, 248, 221, 0.25) 62%),
      radial-gradient(90% 40% at 98% 5%, rgba(220, 248, 226, 0.9) 0%, rgba(200, 242, 210, 0.2) 64%),
      linear-gradient(178deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 250, 232, 0.55) 54%);
  }
  .blob { opacity: .42; }
  html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .hero { padding-top: 84px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .head { margin-bottom: 30px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-inner > .badge { font-size: .78rem; padding: 7px 14px; }
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .panel { border-radius: 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: light; }
  body { color: var(--ink); }
}

/* ------------------------------------------------ scroll progress + back-to-top */

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--coral-gradient);
  z-index: 200; pointer-events: none;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, box-shadow .25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.to-top svg { width: 19px; height: 19px; color: var(--ink); }
@media (max-width: 620px) {
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

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