/* ==========================================================================
   ApplyForward — Global Stylesheet
   ========================================================================== */

:root {
  --ink-950: #070c14;
  --ink-900: #0b1220;
  --ink-800: #121b2e;
  --ink-700: #1a2740;
  --green-500: #1fae6b;
  --green-400: #2ecc84;
  --green-100: #e4f8ee;
  --text: #131826;
  --text-soft: #566178;
  --paper: #f7f9fb;
  --paper-alt: #eef2f6;
  --white: #ffffff;
  --border: #e2e7ee;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 22px 54px rgba(11, 18, 32, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
}

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

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

ul {
  list-style: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(31, 174, 107, 0.30);
}

.btn-primary:hover {
  background: var(--green-400);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(31, 174, 107, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink-900);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink-900);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink-900);
  color: var(--green-400);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-900);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-700) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(46, 204, 132, 0.28) 0%, transparent 70%);
  top: -160px;
  left: -100px;
  animation: float-a 16s ease-in-out infinite;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(46, 204, 132, 0.18) 0%, transparent 70%);
  bottom: -180px;
  right: -80px;
  animation: float-b 20s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -25px) scale(1.06); }
}

.hero-inner {
  position: relative;
  padding: 120px 0 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--green-400);
}

.hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-page {
  padding: 72px 0;
}

.hero-page .hero-inner {
  grid-template-columns: 1fr;
  padding: 0;
  text-align: center;
}

.hero-page p {
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-top: 10px;
}

.breadcrumb a {
  color: var(--green-400);
}

/* ---- Hero visual card ---- */
.hero-visual {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.hero-stat strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  color: var(--green-400);
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ---- Role marquee ---- */
.marquee {
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-track span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Scroll reveal ----
   Elements are visible by default (no JS dependency). JS adds ".reveal-armed"
   only once it has successfully set up the IntersectionObserver, so a page
   with blocked/broken JS still shows all content instead of staying blank. */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.reveal-armed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.reveal-armed > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.reveal-armed.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.reveal-armed.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(6) { transition-delay: 0.42s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(7) { transition-delay: 0.50s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(8) { transition-delay: 0.58s; }
.reveal-stagger.reveal-armed.is-visible > *:nth-child(9) { transition-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-armed, .reveal-stagger.reveal-armed > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track, .hero-blob {
    animation: none !important;
  }
}

/* ---- Trust strip ---- */
.trust-strip {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- Cards ---- */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--ink-900);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--green-500);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---- Steps (How It Works) ---- */
.steps {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--border);
}

.step {
  position: relative;
  display: flex;
  gap: 26px;
  padding-bottom: 48px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-soft);
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.step.is-visible .step-num {
  border-color: var(--green-500);
  color: var(--white);
  background: var(--green-500);
  transform: scale(1.05);
}

.step-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding-top: 12px;
}

.step-body p {
  color: var(--text-soft);
}

/* ---- Feature list ---- */
.feature-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green-500);
  min-width: 40px;
}

.feature-row h4 {
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.feature-row p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---- Split section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-visual {
  background: linear-gradient(150deg, var(--ink-900), var(--ink-700));
  border-radius: var(--radius);
  min-height: 380px;
  padding: 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.split-visual::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(46, 204, 132, 0.16);
  top: -60px;
  right: -60px;
}

.split-visual-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
}

.split-visual-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
}

.split h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.split p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink-950), var(--ink-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(46, 204, 132, 0.22), transparent 55%);
}

.cta-banner-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
}

.cta-banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-card.highlight {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--white);
}

.contact-card.highlight .card-icon {
  background: rgba(255, 255, 255, 0.1);
}

.contact-card.highlight .card-icon svg {
  stroke: var(--green-400);
}

.contact-card.highlight h4 {
  color: var(--white);
}

.contact-card.highlight a,
.contact-card.highlight span {
  color: rgba(255, 255, 255, 0.75);
}

.contact-card .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-card a,
.contact-card span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.contact-card .big-number {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.form-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(31, 174, 107, 0.16);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 14px;
}

/* ---- FAQ page groups ---- */
.faq-group {
  max-width: 760px;
  margin: 0 auto 48px;
}

.faq-group h3 {
  font-size: 1.05rem;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.68);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.52);
}

.footer-parent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-parent a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.footer-col h5 {
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--green-400);
}

.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-col address p {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Thank you / 404 ---- */
.thankyou {
  text-align: center;
  padding: 140px 0;
}

.thankyou .card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--green-100);
}

.thankyou .card-icon svg {
  width: 36px;
  height: 36px;
}

.thankyou h1 {
  margin-bottom: 14px;
}

.thankyou p {
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .steps::before {
    left: 23px;
  }

  .step {
    gap: 20px;
  }

  .step-num {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
}
