/* ARR Funds Premium Fintech Design System */
/* Design tokens are injected by @matrix/site-kit from theme.ts manifest      */
/* (see themeTokensCss). Override per-site via siteDefinition.themeOptions.    */

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

/* ─── Typography & Titles ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #00bfa6 0%, #1c5239 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 191, 166, 0.3);
}

.btn--secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(10, 54, 34, 0.05);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav__logo-accent {
  color: var(--accent);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--accent);
}

.nav.scrolled .nav__link {
  color: var(--text-dark);
}

.nav.scrolled .nav__link:hover {
  color: var(--accent);
}

.nav__cta {
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav__cta:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1100;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.25s ease;
}

/* ─── Hero Section ─── */
.hero {
  background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__badge {
  background-color: rgba(0, 191, 166, 0.15);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 191, 166, 0.2);
}

.hero__title {
  font-size: 48px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero__desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
}

/* ─── Fund Snapshot Card ─── */
.snapshot-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.snapshot-card__title {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.snapshot-card__desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 32px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.snapshot-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.snapshot-item__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.snapshot-item__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.snapshot-metrics {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-box__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.metric-box__value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.metric-box__value.highlight-green {
  color: var(--accent);
}

.snapshot-card__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 191, 166, 0.2);
}

.snapshot-card__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 191, 166, 0.3);
}

/* ─── Section Header ─── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-header__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-header__title {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-header__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 54, 34, 0.04);
}

.bento-card--large {
  grid-column: span 2;
  grid-row: span 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}

.bento-card--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card--medium {
  grid-column: span 1;
}

.bento-card__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--primary-light);
  background-color: rgba(10, 54, 34, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bento-card__title {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bento-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Bento Chart Mock */
.bento-card__visual--chart {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
}

.chart-mock {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  width: 100%;
  height: 140px;
}

.chart-bar {
  flex: 1;
  border-radius: 12px 12px 0 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.chart-bar--demo {
  height: 35%;
  background: var(--text-muted);
  color: #fff;
}

.chart-bar--arr {
  height: 100%;
  background: linear-gradient(to top, var(--primary) 0%, var(--accent) 100%);
  color: var(--primary-dark);
}

/* ─── Portfolio / Focus Areas ─── */
.portfolio-section {
  background-color: var(--bg-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-card {
  background-color: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  background-color: #fff;
  box-shadow: 0 12px 30px rgba(10, 54, 34, 0.04);
}

.portfolio-card__icon {
  margin-bottom: 20px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card__icon svg {
  width: 38px;
  height: 38px;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-card__title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.portfolio-card__desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.portfolio-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background-color: rgba(0, 191, 166, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ─── Process Timeline ─── */
.process-section {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
}

.process-step__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: rgba(0, 191, 166, 0.15);
  position: absolute;
  top: 20px;
  right: 24px;
}

.process-step__title {
  font-size: 18px;
  margin-bottom: 12px;
  margin-top: 10px;
}

.process-step__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Apply Section ─── */
.apply-section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.apply-card {
  background: radial-gradient(circle at 0% 0%, var(--primary-light) 0%, var(--primary-dark) 100%);
  border-radius: 30px;
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(5, 26, 18, 0.15);
}

.apply-card__title {
  color: #fff;
  font-size: 32px;
  margin-bottom: 16px;
}

.apply-card__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.apply-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* Apply Lead Form */
.apply-card__form {
  position: relative;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.lead-form.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.lead-form label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.lead-form input, .lead-form select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.lead-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lead-form select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.lead-form select option {
  color: var(--text-dark);
  background-color: #fff;
}

.lead-form input:focus, .lead-form select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 191, 166, 0.15);
}

.form-submit-btn {
  background-color: var(--accent);
  color: var(--primary-dark);
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 191, 166, 0.3);
}

.form-submit-btn:disabled {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-submit-btn:focus {
  outline: none;
}

.form-notice {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  text-align: center;
}

/* Success Toast */
.form-success-toast {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-success-toast.active {
  display: flex;
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 191, 166, 0.4);
}

.form-success-toast h4 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}

.form-success-toast p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 320px;
}

/* ─── Footer ─── */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 64px;
  margin-bottom: 60px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.footer__logo-accent {
  color: var(--accent);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: var(--accent);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-list a {
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer__col-list a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer__contact {
  color: rgba(255, 255, 255, 0.4);
}

.footer__copyright a:hover {
  color: var(--accent);
}

/* ─── 404 / NotFound Page ─── */
.not-found-page {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.not-found__code {
  font-size: 120px;
  font-weight: 800;
  color: rgba(10, 54, 34, 0.05);
  line-height: 1;
}

.not-found__title {
  font-size: 24px;
  margin-bottom: 12px;
}

.not-found__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.not-found__btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.not-found__btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* ─── Animations (IntersectionObserver) ─── */
.data-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.data-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Responsive Layout ─── */
@media (max-width: 991px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero__content {
    align-items: center;
  }
  
  .hero__title {
    font-size: 38px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card--large {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .chart-mock {
    justify-content: flex-start;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .apply-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .nav__right {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background-color: #fff;
    padding: 80px 24px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-color);
  }
  
  .nav__right.active {
    display: flex;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 1020;
    backdrop-filter: blur(5px);
  }
  
  .nav-overlay.active {
    display: block;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__columns {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
