/* ==========================================================================
   Variables
   ========================================================================== */

:root {
  --color-deep-blue: #070d1c;
  --color-deep-blue-light: #0e1830;
  --color-bright-green: #35bf5c;
  --color-light-blue: #91a9cd;
  --color-red: #e0524f;
  --color-red-dark: #2a1416;
  --color-green-dark: #10241a;
  --color-text: #f2f5fa;
  --color-text-dim: #a9b7cf;

  --font-body: "Barlow", sans-serif;
  --font-heading: "Epilogue", sans-serif;
  --font-mono: "Inconsolata", monospace;
  --font-script: "Sriracha", cursive;

  --container-width: 1200px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-deep-blue);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 20px;
}

h1 { font-size: 56px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; margin: 0; }

p {
  margin: 0 0 16px;
}

.color-green-bright {
  color: var(--color-bright-green);
}

h1 em.color-green-bright {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
}

.text-xl {
  font-size: 20px;
  color: var(--color-text-dim);
}

.text-lg {
  font-size: 18px;
  color: var(--color-text-dim);
}

.text-center {
  text-align: center;
}

.italic {
  font-style: italic;
  text-decoration: underline;
}

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

.max-width-800 {
  max-width: 800px;
  margin: 0 auto;
}

.width-780 {
  max-width: 780px;
  position: relative;
}

.side-padding {
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 24, 48, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(145, 169, 205, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
}

.logo-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-light-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding-bottom: 6px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-light-blue);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.is-current {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.is-current::after {
  width: 100%;
}

.nav-link.is-current::after {
  background: var(--color-bright-green);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-icon::before { top: -7px; }
.nav-icon::after { top: 7px; }

@media (max-width: 767px) {
  .menu-button {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--color-deep-blue);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(145, 169, 205, 0.15);
  }

  .nav-menu.is-open {
    display: flex;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 1px solid var(--color-bright-green);
  border-radius: 8px;
  padding: 1px;
}

.button.button-2 {
  border-color: var(--color-light-blue);
}

.button-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.5s ease;
}

.button::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 0;
  background: var(--color-bright-green);
  transform: rotate(8deg);
  transition: height 0.5s ease;
  z-index: 1;
}

.button.button-2::before {
  background: var(--color-light-blue);
}

.button:hover::before {
  height: 200%;
}

.button:hover .button-inner {
  color: var(--color-deep-blue);
}

.button-icon {
  display: flex;
  align-items: center;
}

.button-icon svg {
  width: 14px;
  height: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.bg-floating-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
}

.bg-floating-grid .bg-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-success-curve {
  position: absolute;
  top: 40px;
  right: max(24px, 6vw);
  width: min(32vw, 380px);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 160%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(53, 191, 92, 0.35) 0%, transparent 65%);
  filter: blur(10px);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 92%);
}

.img-success-curve {
  display: none;
}

.flex-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 40px 0;
}

.flex-row-center {
  align-items: center;
}

.column {
  flex: 1 1 0;
  min-width: 280px;
  position: relative;
}

.hero-intro-column {
  flex: 0 1 640px;
}

.subhead-blurb {
  display: inline-flex;
  white-space: nowrap;
  background: rgba(145, 169, 205, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.9em;
}

.fold-separator {
  height: 1px;
  background: rgba(145, 169, 205, 0.2);
}

/* ==========================================================================
   Text reveal animation
   ========================================================================== */

.value-statement {
  position: relative;
}

.value-statement .reveal-line {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-dim);
}

.value-statement .reveal-line:nth-child(2),
.value-statement .reveal-line:nth-child(3) {
  color: var(--color-text);
}

.reveal-line {
  position: relative;
  overflow: hidden;
  display: block;
  margin-bottom: 20px;
}

.reveal-line .reveal-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--color-deep-blue);
  transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal-line:nth-child(1) .reveal-mask { transition-delay: 0s; }
.reveal-line:nth-child(2) .reveal-mask { transition-delay: 0.15s; }
.reveal-line:nth-child(3) .reveal-mask { transition-delay: 0.3s; }

.reveal-line.is-revealed .reveal-mask {
  width: 0%;
}

/* ==========================================================================
   Before / After toggle
   ========================================================================== */

.before-after-wrapper {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  padding-top: 40px;
}

.before-after-difference {
  position: absolute;
  top: -10px;
  right: 20px;
  transform: rotate(-6deg);
}

.before-after-difference img {
  border-radius: 8px;
}

.before-after-toggle {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 20px;
}

.before-after-button-bg {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--color-red);
  border-radius: 999px;
  transition: transform 0.35s ease, background 0.35s ease;
  z-index: 0;
}

.before-after-wrapper.is-after .before-after-button-bg {
  transform: translateX(100%);
  background: var(--color-bright-green);
}

.before-after-button {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 10px 20px;
  background: none;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-deep-blue);
  cursor: pointer;
  transition: color 0.35s ease;
}

.before-after-button.is-active {
  color: #fff;
  font-weight: 600;
}

.before-after-panel {
  position: relative;
  background: var(--color-red-dark);
  border-radius: 16px;
  padding: 24px;
  transition: background 0.35s ease;
}

.before-after-wrapper.is-after .before-after-panel {
  background: var(--color-green-dark);
}

.before-list,
.after-list {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.before-list.is-active,
.after-list.is-active {
  display: flex;
}

.before-after-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.before-after-icon {
  flex: 0 0 auto;
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.big-heading {
  font-size: 40px;
  margin-top: 80px;
}

.big-number {
  position: absolute;
  top: -60px;
  left: -10px;
  z-index: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(120px, 16vw, 200px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(145, 169, 205, 0.15);
  user-select: none;
  pointer-events: none;
}

.step-text {
  position: relative;
  z-index: 1;
}

.bg-green-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(53, 191, 92, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.animate-slide-in-from-right {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.animate-slide-in-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq {
  padding: 40px 0;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-bottom: 12px;
}

.accordion-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion {
  background: rgba(145, 169, 205, 0.06);
  border-radius: 14px;
  padding: 0 24px;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-body);
}

.accordion-icon {
  flex: 0 0 auto;
  position: relative;
  width: 12px;
  height: 8px;
  transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 8px;
  height: 2px;
  background: var(--color-text-dim);
  border-radius: 1px;
}

.accordion-icon::before {
  left: 0;
  transform: rotate(45deg);
  transform-origin: right center;
}

.accordion-icon::after {
  right: 0;
  transform: rotate(-45deg);
  transform-origin: left center;
}

.accordion.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion.is-open .accordion-icon::before,
.accordion.is-open .accordion-icon::after {
  background: var(--color-bright-green);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ol {
  padding-left: 20px;
  color: var(--color-text-dim);
}

.accordion.is-open .accordion-content {
  padding-bottom: 20px;
}

/* ==========================================================================
   CTA box
   ========================================================================== */

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--color-deep-blue-light);
  border-radius: 24px;
  padding: 64px 48px;
  margin: 80px 0 120px;
}

.cta-grid-bg {
  opacity: 0.1;
}

.curve {
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 60%;
  max-width: 500px;
  z-index: 0;
  opacity: 0.4;
}

.curve-img {
  width: 100%;
}

.cta-box .width-780 {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 80px 0;
  border-top: 1px solid rgba(145, 169, 205, 0.15);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 48px;
}

.footer-nav-link {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-nav-link:hover,
.footer-nav-link.is-current {
  opacity: 1;
  color: var(--color-bright-green);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 1;
}

.social-link-icon {
  border-radius: 6px;
}

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

@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .big-heading { font-size: 30px; }

  .bg-success-curve {
    display: none;
  }

  .flex-row {
    flex-direction: column;
    gap: 24px;
  }
}
